Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/i386/i386 Use memory allocated for the ldt, not the...



details:   https://anonhg.NetBSD.org/src/rev/174cec72cdef
branches:  trunk
changeset: 445204:174cec72cdef
user:      cherry <cherry%NetBSD.org@localhost>
date:      Thu Oct 18 04:22:22 2018 +0000

description:
Use memory allocated for the ldt, not the idt.

This must have been a typo that we got away with because we were not
using the idt[] so far.

This fix should now allow -current i386 XEN to boot, as before.

diffstat:

 sys/arch/i386/i386/machdep.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 87e7cbe02940 -r 174cec72cdef sys/arch/i386/i386/machdep.c
--- a/sys/arch/i386/i386/machdep.c      Thu Oct 18 04:17:18 2018 +0000
+++ b/sys/arch/i386/i386/machdep.c      Thu Oct 18 04:22:22 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.811 2018/09/29 07:00:20 cherry Exp $     */
+/*     $NetBSD: machdep.c,v 1.812 2018/10/18 04:22:22 cherry Exp $     */
 
 /*
  * Copyright (c) 1996, 1997, 1998, 2000, 2004, 2006, 2008, 2009, 2017
@@ -67,7 +67,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.811 2018/09/29 07:00:20 cherry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.812 2018/10/18 04:22:22 cherry Exp $");
 
 #include "opt_beep.h"
 #include "opt_compat_freebsd.h"
@@ -1326,7 +1326,7 @@
            GSEL(GCODE_SEL, SEL_KPL), (unsigned long)hypervisor_callback,
            GSEL(GCODE_SEL, SEL_KPL), (unsigned long)failsafe_callback);
 
-       ldtstore = (union descriptor *)idt_vaddr;
+       ldtstore = (union descriptor *)ldt_vaddr;
 #endif /* XEN */
 
        /* make ldt gates and memory segments */



Home | Main Index | Thread Index | Old Index