diff options
Diffstat (limited to 'sys/kern/posix4_mib.c')
-rw-r--r-- | sys/kern/posix4_mib.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sys/kern/posix4_mib.c b/sys/kern/posix4_mib.c index 09af27d..d368593 100644 --- a/sys/kern/posix4_mib.c +++ b/sys/kern/posix4_mib.c @@ -92,12 +92,23 @@ P1B_SYSCTL(CTL_P1003_1B_TIMER_MAX, timer_max); /* p31b_setcfg: Set the configuration */ -void p31b_setcfg(int num, int value) +void +p31b_setcfg(int num, int value) { + if (num >= 1 && num < CTL_P1003_1B_MAXID) facility[num - 1] = value; } +int +p31b_getcfg(int num) +{ + + if (num >= 1 && num < CTL_P1003_1B_MAXID) + return (facility[num - 1]); + return (0); +} + /* * Turn on indications for standard (non-configurable) kernel features. */ |