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:
David van Moolenbroek
2010-01-05 19:39:27 +00:00
parent be992434e7
commit ac9ab099c8
75 changed files with 388 additions and 2178 deletions

View File

@@ -10,7 +10,6 @@ libc_FILES=" \
_brk.c \
_cprofile.c \
_deldma.c \
_devctl.c \
_getdents.c \
_getdma.c \
_getnpid.c \
@@ -22,7 +21,7 @@ libc_FILES=" \
_getsigset.c \
_getsysinfo.c \
_lseek64.c \
_mapdriver5.c \
_mapdriver.c \
_mount.c \
_reboot.c \
_sbrk.c \

View File

@@ -1,18 +0,0 @@
#include <lib.h>
#define devctl _devctl
#include <unistd.h>
PUBLIC int devctl(int ctl_req, int proc_nr, int dev_nr, int dev_style,
int force)
{
message m;
m.m4_l1 = ctl_req;
m.m4_l2 = proc_nr;
m.m4_l3 = dev_nr;
m.m4_l4 = dev_style;
m.m4_l5 = force;
if (_syscall(FS, DEVCTL, &m) < 0) return(-1);
return(0);
}

View File

@@ -1,18 +1,18 @@
#include <lib.h>
#define mapdriver5 _mapdriver5
#define mapdriver _mapdriver
#include <string.h>
#include <unistd.h>
PUBLIC int mapdriver5(label, len, major, dev_style, force)
PUBLIC int mapdriver(label, major, dev_style, force)
char *label;
size_t len;
int major;
int dev_style;
int force;
{
message m;
m.m2_p1 = label;
m.m2_l1 = len;
m.m2_l1 = strlen(label);
m.m2_i1 = major;
m.m2_i2 = dev_style;
m.m2_i3 = force;

View File

@@ -22,7 +22,6 @@ libc_FILES=" \
cprofile.s \
creat.s \
deldma.s \
devctl.s \
dup.s \
dup2.s \
execl.s \
@@ -66,7 +65,7 @@ libc_FILES=" \
lseek.s \
lseek64.s \
lstat.s \
mapdriver5.s \
mapdriver.s \
mkdir.s \
mkfifo.s \
mknod.s \

View File

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

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

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

View File

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

View File

@@ -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 \

View File

@@ -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;

View File

@@ -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;
}

View File

@@ -18,7 +18,6 @@ long ticks; /* number of ticks to wait */
if (ticks <= 0) return OK; /* check for robustness */
m.ALRM_ENDPT = SELF; /* SELF means this process nr */
m.ALRM_EXP_TIME = ticks; /* request message after ticks */
m.ALRM_ABS_TIME = 0; /* ticks are relative to now */
s = _taskcall(SYSTASK, SYS_SETALARM, &m);