From 132026d9aa6f8b33bdc887b6c07d7539df39941a Mon Sep 17 00:00:00 2001 From: scottr Date: Fri, 24 Apr 1998 05:11:11 +0000 Subject: [PATCH] Garbage collection. (Wow, some of this stuff was _old_.) --- sys/arch/mac68k/mac68k/machdep.c | 32 +++----------------------------- 1 file changed, 3 insertions(+), 29 deletions(-) diff --git a/sys/arch/mac68k/mac68k/machdep.c b/sys/arch/mac68k/mac68k/machdep.c index 39552acbeadb..0fb940582c0b 100644 --- a/sys/arch/mac68k/mac68k/machdep.c +++ b/sys/arch/mac68k/mac68k/machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.188 1998/04/24 05:08:58 scottr Exp $ */ +/* $NetBSD: machdep.c,v 1.189 1998/04/24 05:11:11 scottr Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -906,24 +906,6 @@ dumpsys() printf("succeeded\n"); } -/* - * Doadump comes here after turning off memory management and - * getting on the dump stack, either when called above, or by - * the auto-restart code. - */ -#define BYTES_PER_DUMP NBPG /* Must be a multiple of pagesize XXX small */ -static vm_offset_t dumpspace; - -vm_offset_t reserve_dumppages __P((vm_offset_t)); - -vm_offset_t -reserve_dumppages(p) - vm_offset_t p; -{ - dumpspace = p; - return (p + BYTES_PER_DUMP); -} - /* * Return the best possible estimate of the time in the timeval * to which tvp points. We do this by returning the current time @@ -2134,7 +2116,6 @@ void setmachdep __P((void)); void setmachdep() { - static int firstpass = 1; int setup_mrg_vectors = 0; struct cpu_model_info *cpui; int i; @@ -2144,17 +2125,12 @@ setmachdep() * Ideally, we'd only call this once, but for some reason, the * VIAs need interrupts turned off twice !? */ - if (firstpass) { - get_machine_info(); + get_machine_info(); - load_addr = 0; - } + load_addr = 0; cpui = &(cpu_models[mac68k_machine.cpu_model_index]); current_mac_model = cpui; - if (!firstpass) - return; - /* * Set up any machine specific stuff that we have to before * ANYTHING else happens @@ -2282,8 +2258,6 @@ setmachdep() */ if ((mac68k_machine.serial_console & 0x03) == 0 || setup_mrg_vectors) mrg_MacOSROMVectors = cpui->rom_vectors; - - firstpass = 0; } /*