summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1994-09-05 05:20:29 +0000
committerdg <dg@FreeBSD.org>1994-09-05 05:20:29 +0000
commitb47ee85a344184f87de6b4a1474730e9764c7f38 (patch)
tree24825abb4d413504d2b2d5ed77cdee9cc40324e6 /sys/amd64
parente0ddbd275ac6f1988998226429cca1d93e013786 (diff)
downloadFreeBSD-src-b47ee85a344184f87de6b4a1474730e9764c7f38.zip
FreeBSD-src-b47ee85a344184f87de6b4a1474730e9764c7f38.tar.gz
DOn't allow I/O register access in process 1 (oops).
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/locore.S8
-rw-r--r--sys/amd64/amd64/locore.s8
2 files changed, 4 insertions, 12 deletions
diff --git a/sys/amd64/amd64/locore.S b/sys/amd64/amd64/locore.S
index b216f8f..edb566f 100644
--- a/sys/amd64/amd64/locore.S
+++ b/sys/amd64/amd64/locore.S
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)locore.s 7.3 (Berkeley) 5/13/91
- * $Id: locore.s,v 1.23 1994/09/04 00:33:00 davidg Exp $
+ * $Id: locore.s,v 1.24 1994/09/04 19:59:13 pst Exp $
*/
/*
@@ -535,16 +535,12 @@ reloc_gdt:
call _init386 /* wire 386 chip for unix operation */
popl %esi
-#if 0
- movl $0,_PTD
-#endif
-
.globl __ucodesel,__udatasel
pushl $0 /* unused */
pushl __udatasel /* ss */
pushl $0 /* esp - filled in by execve() */
- pushl $0x3200 /* eflags (ring 3, int enab) */
+ pushl $PSL_USERSET /* eflags (ring 0, int enab) */
pushl __ucodesel /* cs */
pushl $0 /* eip - filled in by execve() */
subl $(12*4),%esp /* space for rest of registers */
diff --git a/sys/amd64/amd64/locore.s b/sys/amd64/amd64/locore.s
index b216f8f..edb566f 100644
--- a/sys/amd64/amd64/locore.s
+++ b/sys/amd64/amd64/locore.s
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)locore.s 7.3 (Berkeley) 5/13/91
- * $Id: locore.s,v 1.23 1994/09/04 00:33:00 davidg Exp $
+ * $Id: locore.s,v 1.24 1994/09/04 19:59:13 pst Exp $
*/
/*
@@ -535,16 +535,12 @@ reloc_gdt:
call _init386 /* wire 386 chip for unix operation */
popl %esi
-#if 0
- movl $0,_PTD
-#endif
-
.globl __ucodesel,__udatasel
pushl $0 /* unused */
pushl __udatasel /* ss */
pushl $0 /* esp - filled in by execve() */
- pushl $0x3200 /* eflags (ring 3, int enab) */
+ pushl $PSL_USERSET /* eflags (ring 0, int enab) */
pushl __ucodesel /* cs */
pushl $0 /* eip - filled in by execve() */
subl $(12*4),%esp /* space for rest of registers */
OpenPOWER on IntegriCloud