Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbarm/adi_brh Use high vectors on the BRH.
details: https://anonhg.NetBSD.org/src/rev/7a3a80521b07
branches: trunk
changeset: 546203:7a3a80521b07
user: thorpej <thorpej%NetBSD.org@localhost>
date: Tue Apr 22 13:51:11 2003 +0000
description:
Use high vectors on the BRH.
diffstat:
sys/arch/evbarm/adi_brh/brh_machdep.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r a74be77e8825 -r 7a3a80521b07 sys/arch/evbarm/adi_brh/brh_machdep.c
--- a/sys/arch/evbarm/adi_brh/brh_machdep.c Tue Apr 22 13:49:48 2003 +0000
+++ b/sys/arch/evbarm/adi_brh/brh_machdep.c Tue Apr 22 13:51:11 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: brh_machdep.c,v 1.4 2003/04/19 21:52:03 thorpej Exp $ */
+/* $NetBSD: brh_machdep.c,v 1.5 2003/04/22 13:51:11 thorpej Exp $ */
/*
* Copyright (c) 2001, 2002, 2003 Wasabi Systems, Inc.
@@ -584,7 +584,7 @@
l1pagetable = kernel_l1pt.pv_pa;
/* Map the L2 pages tables in the L1 page table */
- pmap_link_l2pt(l1pagetable, 0x00000000,
+ pmap_link_l2pt(l1pagetable, ARM_VECTORS_HIGH & ~(0x00400000 - 1),
&kernel_pt_table[KERNEL_PT_SYS]);
for (loop = 0; loop < KERNEL_PT_KERNEL_NUM; loop++)
pmap_link_l2pt(l1pagetable, KERNEL_BASE + loop * 0x00400000,
@@ -686,7 +686,7 @@
kernel_ptpt.pv_pa, VM_PROT_READ|VM_PROT_WRITE, PTE_PAGETABLE);
#endif
pmap_map_entry(l1pagetable,
- PTE_BASE + (0x00000000 >> (PGSHIFT-2)),
+ trunc_page(PTE_BASE + (ARM_VECTORS_HIGH >> (PGSHIFT-2))),
kernel_pt_table[KERNEL_PT_SYS].pv_pa,
VM_PROT_READ|VM_PROT_WRITE, PTE_CACHE);
for (loop = 0; loop < KERNEL_PT_VMDATA_NUM; loop++)
@@ -697,7 +697,7 @@
VM_PROT_READ|VM_PROT_WRITE, PTE_CACHE);
/* Map the vector page. */
- pmap_map_entry(l1pagetable, vector_page, systempage.pv_pa,
+ pmap_map_entry(l1pagetable, ARM_VECTORS_HIGH, systempage.pv_pa,
VM_PROT_READ|VM_PROT_WRITE, PTE_CACHE);
/*
@@ -810,7 +810,7 @@
physmem = (physical_end - physical_start) / PAGE_SIZE;
- arm32_vector_init(ARM_VECTORS_LOW, ARM_VEC_ALL);
+ arm32_vector_init(ARM_VECTORS_HIGH, ARM_VEC_ALL);
/*
* Pages were allocated during the secondary bootstrap for the
Home |
Main Index |
Thread Index |
Old Index