*** empty log message ***

This commit is contained in:
Jorrit Herder 2005-08-02 15:50:00 +00:00
parent 61a4e15bb0
commit 7af2b107d4
2 changed files with 23 additions and 0 deletions

16
lib/other/_devctl.c Normal file
View file

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

7
lib/syscall/devctl.s Normal file
View file

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