summaryrefslogtreecommitdiff
path: root/emu/port/fns.h
AgeCommit message (Collapse)Author
2017-01-12Revert dbaf2f1a92f6 and instead move initialization of "coherence" toValery Ushakov
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.
2016-06-02fns.h should declare "coherence", not define it. Move the definitionValery Ushakov
to main.c and init it "nofence". This is required because with dynamic linking init/fini code runs before main() has a chance to init it. Since emu provides its own malloc, init/fini code that uses malloc will eventually call coherence() and crash if it's not inited.
2015-04-02rename noop to extern nofenceCharles Forsyth
2015-03-28add coherence call for weakly-ordered cpus, default to nopCharles Forsyth
2014-05-18revert to 626 to undo unintended pushCharles Forsyth
2014-05-1820140518-1419charles forsyth
2011-02-2520110225-1104forsyth
2009-08-2520090825-1935forsyth
2008-01-1620080116-1359Charles.Forsyth
2006-12-2320061220Charles.Forsyth
2006-12-2220060303aCharles.Forsyth