From e95c42c072124eda07ce686a4d48789eb13f00d0 Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Wed, 30 Mar 1994 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 1994-03-30 --- carrera/l.s | 3 +++ carrera/main.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/carrera/l.s b/carrera/l.s index df86841bf0539e1819e44c8c65c26a9d6be13f0b..c03eb17ec44020818165b3cd933bcb54f508540e 100644 --- a/carrera/l.s +++ b/carrera/l.s @@ -782,6 +782,9 @@ ccache: BGTZ R9, ccache MOVW R10, M(STATUS) WAIT + MOVW M(CONFIG), R1 + OR $((1<<4)|(1<<5)), R1 + MOVW R1, M(CONFIG) RET TEXT getcallerpc(SB), $0 diff --git a/carrera/main.c b/carrera/main.c index 118f48451fcd837c545be053d08bec1f27eddda1..9db41f092b64793de522c6d9be48128760a6b351 100644 --- a/carrera/main.c +++ b/carrera/main.c @@ -143,7 +143,7 @@ machinit(void) clrfpintr(); /* scrub cache */ - cleancache(); + ((void(*)(void))((ulong)cleancache|0xA0000000))(); memset(m, 0, sizeof(Mach)); @@ -209,7 +209,7 @@ ioinit(int mapeisa) puttlbx(2, Intctlvirt, intphys, isamphys, PGSZ1M); /* Enable all device interrupts */ - IO(ushort, Intenareg) = 0xffff; + IO(ushort, Intenareg) = 0xfff7; /* Map the rom back into Promvirt to allow NMI handling */ promphys = IOPTE|PPN(Promphys);