diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2003-11-14 20:09:21 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2003-11-14 20:09:21 +0000 |
commit | 037123fc8b296e29fc25a0fb085eec3932c3d4cc (patch) | |
tree | ee771bd07d8d5d576c3fc00023e47d90d2e04e5a /sys/arch | |
parent | 00f193258bf5a5aa54bbbd848c575c173b70c08f (diff) |
More obsolete code/define removal.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/pegasos/stand/Locore.c | 43 | ||||
-rw-r--r-- | sys/arch/pegasos/stand/Makefile.inc | 4 |
2 files changed, 3 insertions, 44 deletions
diff --git a/sys/arch/pegasos/stand/Locore.c b/sys/arch/pegasos/stand/Locore.c index 5f7d42064e5..67251a52c97 100644 --- a/sys/arch/pegasos/stand/Locore.c +++ b/sys/arch/pegasos/stand/Locore.c @@ -1,4 +1,4 @@ -/* $OpenBSD: Locore.c,v 1.1 2003/10/31 03:54:34 drahn Exp $ */ +/* $OpenBSD: Locore.c,v 1.2 2003/11/14 20:09:20 drahn Exp $ */ /* $NetBSD: Locore.c,v 1.1 1997/04/16 20:29:11 thorpej Exp $ */ /* @@ -43,9 +43,6 @@ static int (*openfirmware)(void *); static void setup(void); -#ifdef XCOFF_GLUE -asm (".text; .globl _entry; _entry: .long _start,0,0"); -#endif asm(" .text .globl bat_init @@ -83,9 +80,7 @@ _start(void *vpd, int res, int (*openfirm)(void *), char *arg, int argl) { extern char etext[]; -#ifdef FIRMWORKSBUGS syncicache((void *)RELOC, etext - (char *)RELOC); -#endif bat_init(); openfirmware = openfirm; /* Save entry to Open Firmware */ #if 0 @@ -96,32 +91,6 @@ _start(void *vpd, int res, int (*openfirm)(void *), char *arg, int argl) exit(); } -#if 0 -void handle_decr_intr(); -__asm ( " .globl handle_decr_intr\n" - " .type handle_decr_intr@function\n" - "handle_decr_intr:\n" - " rfi\n"); - - -patch_dec_intr() -{ - int time; - unsigned int *decr_intr = (unsigned int *)0x900; - unsigned int br_instr; - - /* this hack is to prevent unexected Decrementer Exceptions - * when Apple openfirmware enables interrupts - */ - time = 0x40000000; - asm("mtdec %0" :: "r"(time)); - - /* we assume that handle_decr_intr is in the first 128 Meg */ - br_instr = (18 << 23) | (unsigned int)handle_decr_intr; - *decr_intr = br_instr; -} -#endif - __dead void _rtt() { @@ -368,16 +337,6 @@ OF_claim(void *virt, u_int size, u_int align) 1, }; -/* -#ifdef FIRMWORKSBUGS -*/ -#if 0 - /* - * Bug with Firmworks OFW - */ - if (virt) - return virt; -#endif args.virt = virt; args.size = size; args.align = align; diff --git a/sys/arch/pegasos/stand/Makefile.inc b/sys/arch/pegasos/stand/Makefile.inc index bbf7297f02a..cc927063a5c 100644 --- a/sys/arch/pegasos/stand/Makefile.inc +++ b/sys/arch/pegasos/stand/Makefile.inc @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.inc,v 1.1 2003/10/31 03:54:34 drahn Exp $ +# $OpenBSD: Makefile.inc,v 1.2 2003/11/14 20:09:20 drahn Exp $ # $NetBSD: Makefile.inc,v 1.1 1996/09/30 16:34:59 ws Exp $ .if !defined(__stand_makefile_inc) @@ -20,7 +20,7 @@ ENTRY?= _start INCLUDES+= -I. -I$(.OBJDIR) -I$(.CURDIR)/.. -I$(S)/arch -I$(S) INCLUDES+= -I$(S)/lib/libsa -DEFS+= -DSTANDALONE -DFIREPOWERBUGS +DEFS+= -DSTANDALONE CFLAGS+= $(INCLUDES) $(DEFS) $(EXTRACFLAGS) CFLAGS+= -fno-stack-protector LDFLAGS?= -X -N -Ttext $(RELOC) -e $(ENTRY) |