Fix bug with zeroing kernel page tables that I introduced yesterday.

This commit is contained in:
mark 1998-08-28 20:04:35 +00:00
parent 370a38c007
commit 808c0cca58
2 changed files with 12 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: rc7500_machdep.c,v 1.15 1998/08/28 17:15:46 mark Exp $ */
/* $NetBSD: rc7500_machdep.c,v 1.16 1998/08/28 20:04:35 mark Exp $ */
/*
* Copyright (c) 1994-1998 Mark Brinicombe.
@ -586,7 +586,7 @@ initarm(prom_id)
(var) = physical_freestart; \
physical_freestart += ((np) * NBPG); \
free_pages -= (np); \
bzero((char *)(var), ((np) * NBPG));
bzero((char *)(var) - physical_start, ((np) * NBPG));
loop1 = 0;
kernel_l1pt.physical = 0;
@ -839,6 +839,10 @@ initarm(prom_id)
setleds(LEDOFF); /* turns off LEDs */
/* Switch tables */
#ifdef VERBOSE_INIT_ARM
printf("switching to new L1 page table\n");
#endif
setttb(kernel_l1pt.physical);
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: rpc_machdep.c,v 1.18 1998/08/28 17:15:45 mark Exp $ */
/* $NetBSD: rpc_machdep.c,v 1.19 1998/08/28 20:04:35 mark Exp $ */
/*
* Copyright (c) 1994-1998 Mark Brinicombe.
@ -764,7 +764,7 @@ initarm(bootconf)
(var) = physical_freestart; \
physical_freestart += ((np) * NBPG); \
free_pages -= (np); \
bzero((char *)(var), ((np) * NBPG));
bzero((char *)(var) - physical_start, ((np) * NBPG));
loop1 = 0;
kernel_l1pt.physical = 0;
@ -980,6 +980,10 @@ initarm(bootconf)
bcopy((char *)KERNEL_TEXT_BASE, (char *)0x00000000, kerneldatasize);
/* Switch tables */
#ifdef VERBOSE_INIT_ARM
printf("switching to new L1 page table\n");
#endif
setttb(kernel_l1pt.physical);
/*