From fe9c815e205e34548eab60d5af6ad089907f0fae Mon Sep 17 00:00:00 2001 From: phil Date: Tue, 26 Apr 1994 20:46:40 +0000 Subject: [PATCH] using the "autoboot rom", the pc532 will now actually reboot ... locore.s can now stop mapping and rerun the monitor as if the machine just had power applied. --- sys/arch/pc532/pc532/locore.s | 1 - sys/arch/pc532/pc532/machdep.c | 8 +------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/sys/arch/pc532/pc532/locore.s b/sys/arch/pc532/pc532/locore.s index bc164f7c0b1c..102faec4f13b 100644 --- a/sys/arch/pc532/pc532/locore.s +++ b/sys/arch/pc532/pc532/locore.s @@ -304,7 +304,6 @@ ENTRY(low_level_reboot) addr xxxlow(pc), r0 /* jump to low memory */ andd ~KERNBASE, r0 movd r0, tos - lmr ptb0, _rebootPTD(pc) /* get the right map */ ret 0 xxxlow: lmr mcr, 0 /* Turn off mapping. */ diff --git a/sys/arch/pc532/pc532/machdep.c b/sys/arch/pc532/pc532/machdep.c index 9da71ac1b4f1..61d09dfffecd 100644 --- a/sys/arch/pc532/pc532/machdep.c +++ b/sys/arch/pc532/pc532/machdep.c @@ -115,7 +115,6 @@ int maxmem = 0; vm_offset_t KPTphys; int IdlePTD; -int rebootPTD; int start_page; int _istack; @@ -217,11 +216,6 @@ _low_level_init () WR_ADR(int, p2 + ix*4, NS532_PAGE_SIZE * ix + 3); } - /* the PTD for the reboot process */ - rebootPTD = (int) avail_start; - avail_start += NS532_PAGE_SIZE; - bcopy ((char *)p0, (char *)rebootPTD, NS532_PAGE_SIZE); - /* Load the ptb0 register and start mapping. */ _mapped = 1; @@ -1095,7 +1089,7 @@ void reboot_cpu() extern void low_level_reboot(); /* Point Low MEMORY to Kernel Memory! */ - WR_ADR(int, PTD, RD_ADR(int,PTD+4*pdei(KERNBASE))); + PTD[0] = PTD[pdei(KERNBASE)]; low_level_reboot(); }