summaryrefslogtreecommitdiff
path: root/emu/NetBSD
AgeCommit message (Collapse)Author
2021-01-04NetBSD/arm: segflush - use mprotect to add PROT_EXECValery Ushakov
ARM has separate read and execute protection bits so after writing out JIT code we need to make it executable.
2021-01-04NetBSD/arm: disable pax mprotect restrictions for emuValery Ushakov
ARM has separate read and execute protection bits so after writing out JIT code we need to make it executable with mprotect(2), but PAX wouldn't let us by default. Mark the emu binary so that this restriction is lifted. On other machines where this is not an issue set PAXCTL to a no-op.
2020-12-29NetBSD/asm-arm.S: use .L for local labels.Valery Ushakov
2020-12-29NetBSD/arm: initial supportValery Ushakov
This is more or less mechanical merge of existing NetBSD code and ARM-specific bits from Linux/arm files.
2019-03-10G/c executeonnewstack and unlockandexit.Valery Ushakov
2019-03-10Merged default into NetBSD/pthreadsValery Ushakov
2017-09-10Use SA_SIGINFO to report pc in error messages. Copied from Linux.Valery Ushakov
2017-09-10Switch NetBSD from clone(2) to kproc-pthreads.cValery Ushakov
This commit is mostly a pretty mechanical change. It works on NetBSD-6 where pthread uses userland semaphores. It doesn't work on NetBSD-7 where pthread uses kernel semaphores.
2017-08-28On PowerPC tell the JIT compiler it's not Plan9 ABI and it needs toValery Ushakov
explicitly clear %r0.
2017-08-26Tweak to reduce diff with Linux.Valery Ushakov
2017-08-26PowerPC needs segflush()Valery Ushakov
2017-01-14Normalize mixed tabs for tab width of 8.Valery Ushakov
2017-01-13Remove autogenerated emu.c - this copy was imported accidentally.Valery Ushakov
2017-01-13Don't hardcode OBJTYPE.Valery Ushakov
2017-01-13Copied from Linux version. Use <machine/asm.h> macros.Valery Ushakov
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-02Move definition of X11LIBS where it can actully be overridden.Valery Ushakov
2016-06-02This ancient file is not used any more.Valery Ushakov
2016-06-01emu-g config copied from FreeBSD.Valery Ushakov
2016-06-01Fix function name in .type executeonnewstackValery Ushakov
2016-06-01Fix typo in comment.Valery Ushakov
2016-06-01G/c wrong getcallerpc from here, we will get the correct one from lib9.Valery Ushakov
2016-06-01Split the list of X11 libraries into a separate X11LIBS variable soValery Ushakov
that it can be overridden using env section in config files.
2015-07-18fpuctl moving to lib9Charles Forsyth
2011-08-2020110820-1401forsyth
2011-02-2520110225-1104forsyth
2010-11-2720101127-1631forsyth
2010-11-2720101127-1629forsyth
2010-08-1020100810-2306forsyth
2009-09-3020090930-0258forsyth
2009-08-0620090806-2210forsyth
2009-07-2520090725-1300forsyth
2009-07-1920090719-2242forsyth
2009-07-19dis/mathcalc.disforsyth
2008-04-1620080416-1529Charles.Forsyth
2008-02-0420080204-1507Charles.Forsyth
2007-12-2720071227-1230Charles.Forsyth