kernel: deep refactoring and cleanup
This large commit address several issues - removed 386 directory: Jehanne is 64bit only - simplified kernel options management - rewritten boot process - ported memory related stuff from 9front's 9/pc64 - removed devacpi - removed old code - deep refactor of awake syscall - removed MCACHE support for mount - fix libc's setjmp/longjmp
This commit is contained in:
@ -902,15 +902,13 @@ static int checkdc(int dc)
|
||||
static int
|
||||
bindmount(int dc, int fd, int afd, char* arg0, char* arg1, int flag, char* spec)
|
||||
{
|
||||
int i, flags;
|
||||
int i;
|
||||
Dev *dev;
|
||||
Chan *c0, *c1, *ac, *bc;
|
||||
|
||||
if((flag&~MMASK) || (flag&MORDER)==(MBEFORE|MAFTER))
|
||||
error(Ebadarg);
|
||||
|
||||
flags = flag & MCACHE;
|
||||
|
||||
if(dc){
|
||||
validaddr(spec, 1, 0);
|
||||
spec = validnamedup(spec, 1);
|
||||
@ -937,7 +935,7 @@ bindmount(int dc, int fd, int afd, char* arg0, char* arg1, int flag, char* spec)
|
||||
ac = fdtochan(afd, ORDWR, 0, 1);
|
||||
|
||||
dev = devtabget(dc, 0);
|
||||
c0 = dev->attach(bc, ac, spec, flags);
|
||||
c0 = dev->attach(bc, ac, spec, 0);
|
||||
|
||||
poperror(); /* ac bc */
|
||||
if(ac != nil)
|
||||
|
Reference in New Issue
Block a user