summaryrefslogtreecommitdiff
path: root/emu
AgeCommit message (Collapse)Author
2024-04-16Assume UTF-8 from the X11 clipboard.Pete
This stops a lot of error spew from libxwhichever: almost everything's UTF-8, Plan 9 won.
2021-10-11remove duplicate vflag definitionCharles Forsyth
2021-10-11make message more helpfulCharles Forsyth
2021-10-11allow vflag > 1Charles Forsyth
2021-03-23update NOTICEs and other legal bits to reflect changes to Plan 9's licence ↵Charles Forsyth
and confirm MIT-template for Inferno base and revisions
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.
2020-03-07Silently ignore x-special/gnome-copied-files requests.Valery Ushakov
Modern desktops seem to like to send it a lot so don't spam the user with repeated messages about it.
2019-12-19G/c misguided NetBSD/powerpc kludge.Valery Ushakov
The problem was the alignment bug (alloc.c) that I thought I had fixed, but did't. Now that that bug is fixed properly drop the bogus kludge I left here while investigating the problem.
2019-12-19Properly ensure 16-byte alignment on NetBSD.Valery Ushakov
2019-08-21Merged in dboddie/inferno-os/hosted-devds (pull request #26)Charles Forsyth
Include devds in the hosted build
2019-05-25Include devds in the hosted build.hosted-devdsDavid Boddie
2018-12-21Merged in nbuwe/inferno-os/NetBSD/powerpc (pull request #10)Charles Forsyth
NetBSD/powerpc Approved-by: Charles Forsyth <charles.forsyth@gmail.com>
2018-12-21Merged in yk/inferno-os/AIX-power (pull request #17)Charles Forsyth
AIX-power port Approved-by: Charles Forsyth <charles.forsyth@gmail.com>
2018-12-21Merged in mechazoidal/inferno-os (pull request #19)Charles Forsyth
Fix building on OpenBSD
2018-03-24Added a function for drawing on 16-bit displays.David Boddie
2017-09-14Fix invisible tab/space confusion in the pattern.NetBSD/pthreadsValery Ushakov
2019-03-10G/c executeonnewstack and unlockandexit.Valery Ushakov
2019-03-10Merged default into NetBSD/pthreadsValery Ushakov
2019-03-09Work around a problem on macppc with kernel semaphores.Valery Ushakov
NetBSD/macppc 7 and later seems to have a bug in kernel based pthread semaphores. When running emu interactively shell would forever hang in sem_wait() after the first interactive command. I added sem_getvalue() after sem_init() as a debugging aid to get the semaphore id in ktrace output and it magically fixed the problem. For now just leave it here as a workaround under appropriate ifdef.
2017-09-13Bump Npadlong from 2 to 4 on NetBSD to preserve 16-byte alignment.Valery Ushakov
pthread interals depend on that as it uses lower bits in some pointers for flags.
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-08-17Merged with inferno-os/inferno-os via default.Valery Ushakov
2017-07-09Use pthreads instead of rthreads on OpenBSD and add back FPU supportScott Francis
2017-04-20remove assembly-language functions no longer needed because os-clone.c has goneCharles Forsyth
2017-04-20remove clone implementation of kprocCharles Forsyth
2017-04-20Merged default into AIX-powerAIX-powerYaroslav Kolomiiets
2017-04-16do not include Quicktime.h that is not currently needed and might not existCharles Forsyth
2017-02-27emu/port/win-x11a.c: keep the highest byte of a pixel in copy32to32Yaroslav Kolomiiets
2017-02-27emu/port/devfs-posix.c: POSIXly include fcntl.hYaroslav Kolomiiets
2017-02-27add AIX/power portYaroslav Kolomiiets
2017-02-22emu/port/portmkfile: pass $MKFLAGS downstreamYaroslav Kolomiiets
2017-02-21emu: fix conversion to windows UTF-16 and backYaroslav Kolomiiets
2017-02-20emu: do not drop successive scroll eventsYaroslav Kolomiiets
2017-02-20emu: windows scroll wheelYaroslav Kolomiiets
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.
2017-01-11Merged inferno-os/inferno-os into defaultValery Ushakov
2016-11-04double-up image pool to fit modern resolutionsYaroslav Kolomiiets
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.
2016-06-02Move definition of X11LIBS where it can actully be overridden.Valery Ushakov