Various updates.
* Removed some variants of the SYS_GETINFO calls from the kernel; replaced them with new PM and utils libary functionality. Fixed bugs in utils library that used old get_kenv() variant. * Implemented a buffer in the kernel to gather random data. Memory driver periodically checks this for /dev/random. A better random algorithm can now be implemented in the driver. Removed SYS_RANDOM; the SYS_GETINFO call is used instead. * Remove SYS_KMALLOC from the kernel. Memory allocation can now be done at the process manager with new 'other' library functions.
This commit is contained in:
@@ -26,7 +26,6 @@ OBJECTS = \
|
||||
$(LIBSYS)(sys_xit.o) \
|
||||
$(LIBSYS)(sys_sdevio.o) \
|
||||
$(LIBSYS)(sys_getinfo.o) \
|
||||
$(LIBSYS)(sys_kmalloc.o) \
|
||||
$(LIBSYS)(sys_irqctl.o) \
|
||||
$(LIBSYS)(sys_eniop.o) \
|
||||
$(LIBSYS)(sys_segctl.o) \
|
||||
@@ -96,9 +95,6 @@ $(LIBSYS)(sys_sdevio.o): sys_sdevio.c
|
||||
$(LIBSYS)(sys_getinfo.o): sys_getinfo.c
|
||||
$(CC1) sys_getinfo.c
|
||||
|
||||
$(LIBSYS)(sys_kmalloc.o): sys_kmalloc.c
|
||||
$(CC1) sys_kmalloc.c
|
||||
|
||||
$(LIBSYS)(sys_irqctl.o): sys_irqctl.c
|
||||
$(CC1) sys_irqctl.c
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* printf() - kernel printf() Author: Kees J. Bot
|
||||
/* printf() - system services printf() Author: Kees J. Bot
|
||||
* 15 Jan 1994
|
||||
*/
|
||||
#define nil 0
|
||||
|
||||
@@ -34,7 +34,7 @@ int c;
|
||||
m.DIAG_PRINT_BUF = print_buf;
|
||||
m.DIAG_PROC_NR = SELF;
|
||||
m.m_type = DIAGNOSTICS;
|
||||
if (_sendrec(TTY, &m) != 0) {
|
||||
if (_sendrec(IS_PROC_NR, &m) != 0) {
|
||||
m.m1_i1 = 2;
|
||||
m.m1_i2 = buf_count;
|
||||
m.m1_p1 = print_buf;
|
||||
|
||||
Reference in New Issue
Block a user