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:
Jorrit Herder
2005-06-03 13:55:06 +00:00
parent 4904a5537a
commit f2a85e58d9
43 changed files with 245 additions and 222 deletions

View File

@@ -9,6 +9,8 @@ OBJECTS = \
$(LIBRARY)(_exit.o) \
$(LIBRARY)(access.o) \
$(LIBRARY)(alarm.o) \
$(LIBRARY)(allocmem.o) \
$(LIBRARY)(freemem.o) \
$(LIBRARY)(brk.o) \
$(LIBRARY)(cfgetispeed.o) \
$(LIBRARY)(cfgetospeed.o) \
@@ -117,6 +119,12 @@ $(LIBRARY)(access.o): access.s
$(LIBRARY)(alarm.o): alarm.s
$(CC1) alarm.s
$(LIBRARY)(allocmem.o): allocmem.s
$(CC1) allocmem.s
$(LIBRARY)(freemem.o): freemem.s
$(CC1) freemem.s
$(LIBRARY)(brk.o): brk.s
$(CC1) brk.s

7
lib/syscall/allocmem.s Normal file
View File

@@ -0,0 +1,7 @@
.sect .text
.extern __allocmem
.define _allocmem
.align 2
_allocmem:
jmp __allocmem

7
lib/syscall/freemem.s Normal file
View File

@@ -0,0 +1,7 @@
.sect .text
.extern __freemem
.define _freemem
.align 2
_freemem:
jmp __freemem