summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2003-07-29 12:44:16 +0000
committerdavidxu <davidxu@FreeBSD.org>2003-07-29 12:44:16 +0000
commit03e09c0e2d9c327f27848a56b682ade532e528e6 (patch)
treeaa46d51d1e095790f4cb6577961ff28e8bb2818b /sys
parentd77fd6ae884418b07affe6ebd99af9bfe1e71a2f (diff)
downloadFreeBSD-src-03e09c0e2d9c327f27848a56b682ade532e528e6.zip
FreeBSD-src-03e09c0e2d9c327f27848a56b682ade532e528e6.tar.gz
Use PSL_KERNEL as upcall thread's initial rflags, don't use
scratch user rflags.
Diffstat (limited to 'sys')
-rw-r--r--sys/amd64/amd64/vm_machdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/amd64/vm_machdep.c b/sys/amd64/amd64/vm_machdep.c
index d0cbdbe..e9422af 100644
--- a/sys/amd64/amd64/vm_machdep.c
+++ b/sys/amd64/amd64/vm_machdep.c
@@ -260,7 +260,7 @@ cpu_set_upcall(struct thread *td, struct thread *td0)
pcb2->pcb_rsp = (register_t)td->td_frame - sizeof(void *); /* trampoline arg */
pcb2->pcb_rbx = (register_t)td; /* trampoline arg */
pcb2->pcb_rip = (register_t)fork_trampoline;
- pcb2->pcb_rflags = td->td_frame->tf_rflags & ~PSL_I; /* ints disabled */
+ pcb2->pcb_rflags = PSL_KERNEL; /* ints disabled */
/*
* If we didn't copy the pcb, we'd need to do the following registers:
* pcb2->pcb_savefpu: cloned above.
OpenPOWER on IntegriCloud