There's no reason to use splhigh() here.
This commit is contained in:
parent
cf0bcbc9b6
commit
2563167e16
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: sys_machdep.c,v 1.31 1996/10/17 05:26:25 jonathan Exp $ */
|
/* $NetBSD: sys_machdep.c,v 1.32 1997/02/28 04:44:08 mycroft Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1995 Charles M. Hannum. All rights reserved.
|
* Copyright (c) 1995 Charles M. Hannum. All rights reserved.
|
||||||
|
@ -211,7 +211,6 @@ i386_set_ldt(p, args, retval)
|
||||||
int error, i, n;
|
int error, i, n;
|
||||||
struct pcb *pcb = &p->p_addr->u_pcb;
|
struct pcb *pcb = &p->p_addr->u_pcb;
|
||||||
int fsslot, gsslot;
|
int fsslot, gsslot;
|
||||||
int s;
|
|
||||||
struct i386_set_ldt_args ua;
|
struct i386_set_ldt_args ua;
|
||||||
union descriptor desc;
|
union descriptor desc;
|
||||||
|
|
||||||
|
@ -322,8 +321,6 @@ i386_set_ldt(p, args, retval)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
s = splhigh();
|
|
||||||
|
|
||||||
/* Now actually replace the descriptors. */
|
/* Now actually replace the descriptors. */
|
||||||
for (i = 0, n = ua.start; i < ua.num; i++, n++) {
|
for (i = 0, n = ua.start; i < ua.num; i++, n++) {
|
||||||
if ((error = copyin(&ua.desc[i], &desc, sizeof(desc))) != 0)
|
if ((error = copyin(&ua.desc[i], &desc, sizeof(desc))) != 0)
|
||||||
|
@ -335,7 +332,6 @@ i386_set_ldt(p, args, retval)
|
||||||
*retval = ua.start;
|
*retval = ua.start;
|
||||||
|
|
||||||
out:
|
out:
|
||||||
splx(s);
|
|
||||||
return (error);
|
return (error);
|
||||||
}
|
}
|
||||||
#endif /* USER_LDT */
|
#endif /* USER_LDT */
|
||||||
|
|
Loading…
Reference in New Issue