From 7622db4ccaa0f68989f2600a567784962a0c5683 Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Thu, 11 Dec 1997 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 1997-12-11 --- carrera/main.c | 6 ++++++ port/chan.c | 1 + 2 files changed, 7 insertions(+) diff --git a/carrera/main.c b/carrera/main.c index a0cc26f416c7a8a048f580e02a18b173c2cfd3a5..de5cfd2552f4021b2b7117cab74d5a3054f1a57f 100644 --- a/carrera/main.c +++ b/carrera/main.c @@ -300,6 +300,12 @@ iomapinit(void) /* Invalidate the old entries */ IO(ulong, Tir) = 0; + + /* Invalidate R4030 I/O cache */ + for(i=0; i<8; i++){ + *(ulong*)0xE0000034 = i<<2; + *(ulong*)0xE000004C = 0; + } } /* diff --git a/port/chan.c b/port/chan.c index 44dec72bbc3739385c125fb604385973b4352a3e..a561be05d73ba30c8083f66100bcd70207e9d312 100644 --- a/port/chan.c +++ b/port/chan.c @@ -164,6 +164,7 @@ okchan(char *msg, int n) int s; Chan *c; + return; s = splhi(); for(c = chanalloc.list; c; c = c->link) okchan1(c, msg, n);