From 100d67d0f493a2a80073bc98a9e53c5e38a8e337 Mon Sep 17 00:00:00 2001 From: Valery Ushakov Date: Thu, 12 Jan 2017 02:19:49 +0300 Subject: Revert dbaf2f1a92f6 and instead move initialization of "coherence" to emu/NetBSD/os.c As explained in inferno-os issue 335: > The definition of coherence deliberately takes advantage of a C rule > to avoid anyone having to change an existing fork of emu (eg, for a > new platform), to account for the arrival of "coherence". If a > given port doesn't define it, it will be nil and main will fill it > in. If as on Windows or now NetBSD, it needs to be defined from the > start, the os.c for that platform should do it, but still no other > platforms need source changes. --- emu/port/main.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'emu/port/main.c') diff --git a/emu/port/main.c b/emu/port/main.c index da1aa432..158f6b03 100644 --- a/emu/port/main.c +++ b/emu/port/main.c @@ -27,10 +27,6 @@ extern int mflag; ulong displaychan; char *cputype; -/* For dynamic linking init/fini code that needs malloc */ -void (*coherence)(void) = nofence; - - static void usage(void) { -- cgit v1.2.3