Don't spew so much to the console without DEBUG.
This commit is contained in:
parent
aa7e03f796
commit
e716d57285
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: svr4_machdep.c,v 1.58 2001/12/21 07:02:23 jdolecek Exp $ */
|
||||
/* $NetBSD: svr4_machdep.c,v 1.59 2002/02/07 23:23:29 tv Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1994, 2000 The NetBSD Foundation, Inc.
|
||||
@ -37,7 +37,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: svr4_machdep.c,v 1.58 2001/12/21 07:02:23 jdolecek Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: svr4_machdep.c,v 1.59 2002/02/07 23:23:29 tv Exp $");
|
||||
|
||||
#if defined(_KERNEL_OPT)
|
||||
#include "opt_vm86.h"
|
||||
@ -474,13 +474,17 @@ svr4_sys_sysarch(p, v, retval)
|
||||
return error;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
printf("s=%x, b=%x, l=%x, a1=%x a2=%x\n",
|
||||
ssd.selector, ssd.base, ssd.limit,
|
||||
ssd.access1, ssd.access2);
|
||||
#endif
|
||||
|
||||
/* We can only set ldt's for now. */
|
||||
if (!ISLDT(ssd.selector)) {
|
||||
#ifdef DEBUG
|
||||
printf("Not an ldt\n");
|
||||
#endif
|
||||
return EPERM;
|
||||
}
|
||||
|
||||
@ -508,18 +512,14 @@ svr4_sys_sysarch(p, v, retval)
|
||||
sap = stackgap_alloc(&sg,
|
||||
sizeof(struct i386_set_ldt_args));
|
||||
|
||||
if ((error = copyout(&sa, sap, sizeof(sa))) != 0) {
|
||||
printf("Cannot copyout args\n");
|
||||
if ((error = copyout(&sa, sap, sizeof(sa))) != 0)
|
||||
return error;
|
||||
}
|
||||
|
||||
SCARG(&ua, op) = I386_SET_LDT;
|
||||
SCARG(&ua, parms) = (char *) sap;
|
||||
|
||||
if ((error = copyout(&bsd, sa.desc, sizeof(bsd))) != 0) {
|
||||
printf("Cannot copyout desc\n");
|
||||
if ((error = copyout(&bsd, sa.desc, sizeof(bsd))) != 0)
|
||||
return error;
|
||||
}
|
||||
|
||||
return sys_sysarch(p, &ua, retval);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user