summaryrefslogtreecommitdiffstats
path: root/sys/amd64/ia32
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2003-09-22 22:09:02 +0000
committerpeter <peter@FreeBSD.org>2003-09-22 22:09:02 +0000
commit724da5f1117ddad235c7b38cbbe904a81c90bec2 (patch)
tree4a3425aa0235d810deb4d608a091ddc5209fed87 /sys/amd64/ia32
parent202f4eece1c4620798a768857dd94e475d44a899 (diff)
downloadFreeBSD-src-724da5f1117ddad235c7b38cbbe904a81c90bec2.zip
FreeBSD-src-724da5f1117ddad235c7b38cbbe904a81c90bec2.tar.gz
MFi386 by jhb: use symbolic constants for the IDT entries.
Diffstat (limited to 'sys/amd64/ia32')
-rw-r--r--sys/amd64/ia32/ia32_syscall.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/ia32/ia32_syscall.c b/sys/amd64/ia32/ia32_syscall.c
index 915b0cb..991c85b 100644
--- a/sys/amd64/ia32/ia32_syscall.c
+++ b/sys/amd64/ia32/ia32_syscall.c
@@ -263,14 +263,14 @@ static void
ia32_syscall_enable(void *dummy)
{
- setidt(0x80, &IDTVEC(int0x80_syscall), SDT_SYSIGT, SEL_UPL, 0);
+ setidt(IDT_SYSCALL, &IDTVEC(int0x80_syscall), SDT_SYSIGT, SEL_UPL, 0);
}
static void
ia32_syscall_disable(void *dummy)
{
- setidt(0x80, &IDTVEC(rsvd), SDT_SYSIGT, SEL_KPL, 0);
+ setidt(IDT_SYSCALL, &IDTVEC(rsvd), SDT_SYSIGT, SEL_KPL, 0);
}
SYSINIT(ia32_syscall, SI_SUB_EXEC, SI_ORDER_ANY, ia32_syscall_enable, NULL);
OpenPOWER on IntegriCloud