KERNEL_SPACE_START -> KERNEL_BASE
This commit is contained in:
parent
e80bfdc1a3
commit
2488d00e5f
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: vmparam.h,v 1.8 2002/03/23 02:22:57 thorpej Exp $ */
|
/* $NetBSD: vmparam.h,v 1.9 2002/03/23 19:38:30 thorpej Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2001, 2002 Wasabi Systems, Inc.
|
* Copyright (c) 2001, 2002 Wasabi Systems, Inc.
|
||||||
|
@ -90,7 +90,7 @@
|
||||||
#define PAGE_TABLE_SPACE ((1 << (32 - PGSHIFT)) * sizeof(pt_entry_t))
|
#define PAGE_TABLE_SPACE ((1 << (32 - PGSHIFT)) * sizeof(pt_entry_t))
|
||||||
|
|
||||||
/* Address where the page talbles are mapped. */
|
/* Address where the page talbles are mapped. */
|
||||||
#define PTE_BASE (KERNEL_SPACE_START - PAGE_TABLE_SPACE)
|
#define PTE_BASE (KERNEL_BASE - PAGE_TABLE_SPACE)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Mach derived constants
|
* Mach derived constants
|
||||||
|
@ -98,7 +98,7 @@
|
||||||
#define VM_MIN_ADDRESS ((vaddr_t) 0x00001000)
|
#define VM_MIN_ADDRESS ((vaddr_t) 0x00001000)
|
||||||
#define VM_MAXUSER_ADDRESS ((vaddr_t) (PTE_BASE - UPAGES * NBPG))
|
#define VM_MAXUSER_ADDRESS ((vaddr_t) (PTE_BASE - UPAGES * NBPG))
|
||||||
#define VM_MAX_ADDRESS ((vaddr_t) (PTE_BASE + \
|
#define VM_MAX_ADDRESS ((vaddr_t) (PTE_BASE + \
|
||||||
(KERNEL_SPACE_START >> PGSHIFT) * \
|
(KERNEL_BASE >> PGSHIFT) * \
|
||||||
sizeof(pt_entry_t)))
|
sizeof(pt_entry_t)))
|
||||||
#define VM_MIN_KERNEL_ADDRESS ((vaddr_t) KERNEL_TEXT_BASE)
|
#define VM_MIN_KERNEL_ADDRESS ((vaddr_t) KERNEL_TEXT_BASE)
|
||||||
#define VM_MAX_KERNEL_ADDRESS ((vaddr_t) 0xffffffff)
|
#define VM_MAX_KERNEL_ADDRESS ((vaddr_t) 0xffffffff)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: mainbus_io.c,v 1.6 2001/11/23 17:23:42 thorpej Exp $ */
|
/* $NetBSD: mainbus_io.c,v 1.7 2002/03/23 19:38:31 thorpej Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1997 Mark Brinicombe.
|
* Copyright (c) 1997 Mark Brinicombe.
|
||||||
|
@ -144,7 +144,7 @@ mainbus_bs_map(t, bpa, size, cacheable, bshp)
|
||||||
vaddr_t va;
|
vaddr_t va;
|
||||||
pt_entry_t *pte;
|
pt_entry_t *pte;
|
||||||
|
|
||||||
if ((u_long)bpa > (u_long)KERNEL_SPACE_START) {
|
if ((u_long)bpa > (u_long)KERNEL_BASE) {
|
||||||
/* XXX This is a temporary hack to aid transition. */
|
/* XXX This is a temporary hack to aid transition. */
|
||||||
*bshp = bpa;
|
*bshp = bpa;
|
||||||
return(0);
|
return(0);
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: sa11x0_io.c,v 1.5 2001/11/23 17:23:42 thorpej Exp $ */
|
/* $NetBSD: sa11x0_io.c,v 1.6 2002/03/23 19:38:31 thorpej Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1997 Mark Brinicombe.
|
* Copyright (c) 1997 Mark Brinicombe.
|
||||||
|
@ -147,7 +147,7 @@ sa11x0_bs_map(t, bpa, size, cacheable, bshp)
|
||||||
vaddr_t va;
|
vaddr_t va;
|
||||||
pt_entry_t *pte;
|
pt_entry_t *pte;
|
||||||
|
|
||||||
if ((u_long)bpa > (u_long)KERNEL_SPACE_START) {
|
if ((u_long)bpa > (u_long)KERNEL_BASE) {
|
||||||
/* XXX This is a temporary hack to aid transition. */
|
/* XXX This is a temporary hack to aid transition. */
|
||||||
*bshp = bpa;
|
*bshp = bpa;
|
||||||
return(0);
|
return(0);
|
||||||
|
|
Loading…
Reference in New Issue