General cleanup:
- clean up kernel section of minix/com.h somewhat - remove ALLOCMEM and VM_ALLOCMEM calls - remove non-safecopy and minix-vmd support from Inet - remove SYS_VIRVCOPY and SYS_PHYSVCOPY calls - remove obsolete segment encoding in SYS_SAFECOPY* - remove DEVCTL call, svrctl(FSDEVUNMAP), map_driverX - remove declarations of unimplemented svrctl requests - remove everything related to swapping to disk - remove floppysetup.sh - remove traces of rescue device - update DESCRIBE.sh with new devices - some other small changes
This commit is contained in:
@@ -77,7 +77,6 @@ libsys_FILES=" \
|
||||
sys_vtimer.c \
|
||||
taskcall.c \
|
||||
ds.c \
|
||||
vm_allocmem.c \
|
||||
vm_brk.c \
|
||||
vm_ctl.c \
|
||||
vm_exec_newmem.c \
|
||||
|
||||
@@ -15,7 +15,7 @@ PUBLIC int sys_safecopyfrom(endpoint_t src_e,
|
||||
message copy_mess;
|
||||
|
||||
copy_mess.SCP_FROM_TO = src_e;
|
||||
copy_mess.SCP_INFO = SCP_MAKEINFO(my_seg);
|
||||
copy_mess.SCP_SEG = my_seg;
|
||||
copy_mess.SCP_GID = gr_id;
|
||||
copy_mess.SCP_OFFSET = (long) offset;
|
||||
copy_mess.SCP_ADDRESS = (char *) address;
|
||||
@@ -37,7 +37,7 @@ PUBLIC int sys_safecopyto(endpoint_t dst_e,
|
||||
message copy_mess;
|
||||
|
||||
copy_mess.SCP_FROM_TO = dst_e;
|
||||
copy_mess.SCP_INFO = SCP_MAKEINFO(my_seg);
|
||||
copy_mess.SCP_SEG = my_seg;
|
||||
copy_mess.SCP_GID = gr_id;
|
||||
copy_mess.SCP_OFFSET = (long) offset;
|
||||
copy_mess.SCP_ADDRESS = (char *) address;
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
|
||||
#include "syslib.h"
|
||||
|
||||
#include <minix/vm.h>
|
||||
|
||||
/*===========================================================================*
|
||||
* vm_allocmem *
|
||||
*===========================================================================*/
|
||||
PUBLIC int vm_allocmem(phys_clicks bytes, phys_clicks *retmembase)
|
||||
{
|
||||
message m;
|
||||
int result;
|
||||
|
||||
m.VMAM_BYTES = (char *) bytes;
|
||||
result = _taskcall(VM_PROC_NR, VM_ALLOCMEM, &m);
|
||||
if(result == OK)
|
||||
*retmembase = m.VMAM_MEMBASE;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user