Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/x86 use bootspace
details: https://anonhg.NetBSD.org/src/rev/43e618d35e56
branches: trunk
changeset: 356505:43e618d35e56
user: maxv <maxv%NetBSD.org@localhost>
date: Sat Sep 30 12:01:56 2017 +0000
description:
use bootspace
diffstat:
sys/arch/x86/x86/x86_machdep.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 8321c7542ff5 -r 43e618d35e56 sys/arch/x86/x86/x86_machdep.c
--- a/sys/arch/x86/x86/x86_machdep.c Sat Sep 30 11:43:57 2017 +0000
+++ b/sys/arch/x86/x86/x86_machdep.c Sat Sep 30 12:01:56 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: x86_machdep.c,v 1.94 2017/09/23 11:01:32 maxv Exp $ */
+/* $NetBSD: x86_machdep.c,v 1.95 2017/09/30 12:01:56 maxv Exp $ */
/*-
* Copyright (c) 2002, 2006, 2007 YAMAMOTO Takashi,
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: x86_machdep.c,v 1.94 2017/09/23 11:01:32 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: x86_machdep.c,v 1.95 2017/09/30 12:01:56 maxv Exp $");
#include "opt_modular.h"
#include "opt_physmem.h"
@@ -862,7 +862,8 @@
int
init_x86_vm(paddr_t pa_kend)
{
- paddr_t pa_kstart = (KERNTEXTOFF - KERNBASE);
+ extern struct bootspace bootspace;
+ paddr_t pa_kstart = bootspace.text.pa;
uint64_t seg_start, seg_end;
uint64_t seg_start1, seg_end1;
int x;
Home |
Main Index |
Thread Index |
Old Index