diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2007-06-23 18:51:46 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2007-06-23 18:51:46 +0000 |
commit | 4f53ea70b9e88b951ba3de0c2640c5ac26e067a1 (patch) | |
tree | 070caef03993fd5f29f312f4aecc92e7b1955c4c | |
parent | 31768b7ba29c7d7a3c61ef78f923384721bafa59 (diff) |
Enable workaround for decrementer exception problem.
-rw-r--r-- | sys/arch/macppc/stand/Locore.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/arch/macppc/stand/Locore.c b/sys/arch/macppc/stand/Locore.c index bcec257ed36..f5dec3864cb 100644 --- a/sys/arch/macppc/stand/Locore.c +++ b/sys/arch/macppc/stand/Locore.c @@ -1,4 +1,4 @@ -/* $OpenBSD: Locore.c,v 1.12 2007/06/13 02:17:32 drahn Exp $ */ +/* $OpenBSD: Locore.c,v 1.13 2007/06/23 18:51:45 drahn Exp $ */ /* $NetBSD: Locore.c,v 1.1 1997/04/16 20:29:11 thorpej Exp $ */ /* @@ -41,6 +41,8 @@ #include "machine/cpu.h" */ +#define ENABLE_DECREMENTER_WORKAROUND + static int (*openfirmware)(void *); static void setup(void); @@ -97,7 +99,7 @@ _start(void *vpd, int res, int (*openfirm)(void *), char *arg, int argl) bat_init(); openfirmware = openfirm; /* Save entry to Open Firmware */ -#if 0 +#ifdef ENABLE_DECREMENTER_WORKAROUND patch_dec_intr(); #endif setup(); @@ -105,7 +107,7 @@ _start(void *vpd, int res, int (*openfirm)(void *), char *arg, int argl) exit(); } -#if 0 +#ifdef ENABLE_DECREMENTER_WORKAROUND void handle_decr_intr(); __asm ( " .globl handle_decr_intr\n" " .type handle_decr_intr@function\n" |