From: Ben Gras Date: Mon, 6 Feb 2006 15:16:14 +0000 (+0000) Subject: Moved ipc debug out of conditional. X-Git-Tag: v3.1.2a~375 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/Bv9ARM.ch09.html?a=commitdiff_plain;h=0a02bfb0560fe3823fa263c6926fba3f4e9cc6e4;p=minix.git Moved ipc debug out of conditional. Gave pci server sys_getinfo privilege. --- diff --git a/kernel/debug.h b/kernel/debug.h index c5bdb71fe..0e067feed 100644 --- a/kernel/debug.h +++ b/kernel/debug.h @@ -9,15 +9,6 @@ #include "config.h" -/* It's interesting to measure the time spent withing locked regions, because - * this is the time that the system is deaf to interrupts. - */ -#if DEBUG_TIME_LOCKS - -#define TIMING_POINTS 20 /* timing resolution */ -#define TIMING_CATEGORIES 20 -#define TIMING_NAME 10 - /* Enable prints such as * . send/receive failed due to deadlock or dead source or dead destination * . trap not allowed @@ -29,6 +20,15 @@ */ #define DEBUG_ENABLE_IPC_WARNINGS 0 +/* It's interesting to measure the time spent withing locked regions, because + * this is the time that the system is deaf to interrupts. + */ +#if DEBUG_TIME_LOCKS + +#define TIMING_POINTS 20 /* timing resolution */ +#define TIMING_CATEGORIES 20 +#define TIMING_NAME 10 + /* Definition of the data structure to store lock() timing data. */ struct lock_timingdata { char names[TIMING_NAME]; diff --git a/kernel/table.c b/kernel/table.c index 5fc2fc8e1..a937c8f3c 100755 --- a/kernel/table.c +++ b/kernel/table.c @@ -82,7 +82,7 @@ PUBLIC char *t_stack[TOT_STACK_SPACE / sizeof(char *)]; #define PM_C ~(c(SYS_DEVIO) | c(SYS_SDEVIO) | c(SYS_VDEVIO) | c(SYS_IRQCTL) | c(SYS_INT86)) #define FS_C (c(SYS_KILL) | c(SYS_VIRCOPY) | c(SYS_VIRVCOPY) | c(SYS_UMAP) | c(SYS_GETINFO) | c(SYS_EXIT) | c(SYS_TIMES) | c(SYS_SETALARM)) #define DRV_C (FS_C | c(SYS_SEGCTL) | c(SYS_IRQCTL) | c(SYS_INT86) | c(SYS_DEVIO) | c(SYS_VDEVIO) | c(SYS_SDEVIO)) -#define PCI_C (c(SYS_VIRCOPY) | c(SYS_DEVIO) | c(SYS_VDEVIO) | c(SYS_SDEVIO) | c(SYS_PRIVCTL)) +#define PCI_C (c(SYS_VIRCOPY) | c(SYS_DEVIO) | c(SYS_VDEVIO) | c(SYS_SDEVIO) | c(SYS_PRIVCTL) | c(SYS_GETINFO)) #define TTY_C (DRV_C | c(SYS_ABORT) | c(SYS_VM_MAP) | c(SYS_IOPENABLE)) #define MEM_C (DRV_C | c(SYS_PHYSCOPY) | c(SYS_PHYSVCOPY) | c(SYS_VM_MAP) | \ c(SYS_IOPENABLE))