summaryrefslogtreecommitdiff
path: root/sys/arch/amd64/stand/libsa/gidt.S
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/amd64/stand/libsa/gidt.S')
-rw-r--r--sys/arch/amd64/stand/libsa/gidt.S10
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/arch/amd64/stand/libsa/gidt.S b/sys/arch/amd64/stand/libsa/gidt.S
index c280c64a9ab..fefd7890778 100644
--- a/sys/arch/amd64/stand/libsa/gidt.S
+++ b/sys/arch/amd64/stand/libsa/gidt.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: gidt.S,v 1.1 2004/02/03 12:09:47 mickey Exp $ */
+/* $OpenBSD: gidt.S,v 1.2 2004/03/21 21:37:41 tom Exp $ */
/*
* Copyright (c) 1997 Michael Shalayeff
@@ -35,11 +35,7 @@
#undef _LOCORE
#include <assym.h>
-#define SNULL 0x00
-#define S32TEXT 0x08
-#define S32DATA 0x10
-#define S16TEXT 0x18
-#define S16DATA 0x20
+#include "gidt.h"
#ifdef GIDT_DEBUG
#define gidt_debug0 ; \
@@ -203,11 +199,13 @@ idt:
idtb(36); idtb(37); idtb(38); idtb(39); idtb(40); idtb(41)
idtb(42); idtb(43); idtb(44); idtb(45); idtb(46); idtb(47)
#undef idte
+ .globl Idtr
Idtr: .word . - idt - 1
.long idt
.word 0
.align 8
+ .globl Idtr_real
Idtr_real: .word 1023
.long 0
.word 0