From 30855829b6c4c7b8f58b6e9006388933a0c8a9b4 Mon Sep 17 00:00:00 2001 From: maxv Date: Sun, 25 Sep 2016 12:59:19 +0000 Subject: [PATCH] Fix outdated comment, and #ifdef. --- sys/arch/i386/i386/machdep.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/sys/arch/i386/i386/machdep.c b/sys/arch/i386/i386/machdep.c index 4bf3a1d7f0df..703626a574ab 100644 --- a/sys/arch/i386/i386/machdep.c +++ b/sys/arch/i386/i386/machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.761 2016/08/27 16:07:26 maxv Exp $ */ +/* $NetBSD: machdep.c,v 1.762 2016/09/25 12:59:19 maxv Exp $ */ /*- * Copyright (c) 1996, 1997, 1998, 2000, 2004, 2006, 2008, 2009 @@ -67,7 +67,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.761 2016/08/27 16:07:26 maxv Exp $"); +__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.762 2016/09/25 12:59:19 maxv Exp $"); #include "opt_beep.h" #include "opt_compat_ibcs2.h" @@ -1280,19 +1280,15 @@ init386(paddr_t first_avail) init386_msgbuf(); -#ifndef XEN +#if !defined(XEN) && NBIOSCALL > 0 /* * XXX Remove this * * Setup a temporary Page Table Entry to allow identity mappings of - * the real mode address. This is required by: - * - bioscall - * - MP bootstrap - * - ACPI wakecode + * the real mode address. This is required by bioscall. */ init386_pte0(); -#if NBIOSCALL > 0 KASSERT(biostramp_image_size <= PAGE_SIZE); pmap_kenter_pa((vaddr_t)BIOSTRAMP_BASE, (paddr_t)BIOSTRAMP_BASE, VM_PROT_ALL, 0); @@ -1302,7 +1298,6 @@ init386(paddr_t first_avail) /* Needed early, for bioscall() */ cpu_info_primary.ci_pmap = pmap_kernel(); #endif -#endif /* !XEN */ pmap_kenter_pa(idt_vaddr, idt_paddr, VM_PROT_READ|VM_PROT_WRITE, 0); pmap_kenter_pa(gdt_vaddr, gdt_paddr, VM_PROT_READ|VM_PROT_WRITE, 0);