Merge pull request #106 from davidgiven/dtrg-libc
David Given
2018-06-23 23:28:21 +0200
fd94e219d4Remove the attic.
David Given
2018-06-23 23:16:22 +0200
59dbdea48aMove mktemp to sys; attic getgrent as noone will ever use this.
David Given
2018-06-23 23:15:42 +0200
3f10299f43Move the portable time code into core. clock() goes into sys (as it calls times()).
David Given
2018-06-23 19:49:29 +0200
64ae1d7583Move time() into sys; change the name of the variable which controls it.
David Given
2018-06-23 19:40:50 +0200
bb78fd158cMove the big gnarly functions like system() and popen() into sys, and make them build.
David Given
2018-06-23 19:18:16 +0200
6a729b846aMove stdio into (mostly) sys.
David Given
2018-06-23 18:54:40 +0200
af22b7ea85Change stdio to use atexit() rather than the internal __clean variable; this breaks the dependency between exit/atexit and stdio. Buffers are no longer flushed on abort() (because it's pretty risky). Move the relevant functions into sys/core.
David Given
2018-06-23 18:35:45 +0200
f744a21699All the opendir()/readdir() stuff is obsolete because it's all implemented in terms of open() and read(), which isn't how it's done any more; move the functions into an attic.
David Given
2018-06-23 18:25:26 +0200
df1cdf7762Add the sys directory for libc functions which use system calls; move the malloc functions in there.
David Given
2018-06-23 18:08:03 +0200
c4e4505a73Move the errno functions into core.
David Given
2018-06-23 17:52:15 +0200
538eefb573Get em22 working. Remove the leading-underscore system calls from its libsys.
David Given
2018-06-23 15:57:57 +0200
74d166ef9aGet the pdp7 plat working; remove the leading-underscore syscalls.
David Given
2018-06-23 15:18:26 +0200
3e40374297Made the rpi platform work with the new libc layout.
David Given
2018-06-23 13:05:27 +0200
dbb2062d03Made pc86 work with the new libc.
David Given
2018-06-23 12:59:40 +0200
680b4071b7Made the two OSX platforms work with the new libc layout.
David Given
2018-06-23 12:55:59 +0200
b727b7affdMake linuxppc work.
David Given
2018-06-23 12:41:54 +0200
b267b56ad9Made linux68k work; commoned up all the generic linux includes.
David Given
2018-06-23 12:35:17 +0200
66815ff987Make linux386 work with the new libc layout.
David Given
2018-06-23 12:13:33 +0200
32c881474eCreate a basic and probably wrong common unistd.h, which replaces the plat one. Made this work with cpm (but nothing else yet).
David Given
2018-06-23 11:46:55 +0200
dd0f959245Move assert into core.
David Given
2018-06-23 11:16:06 +0200
fe3951d4aeWarning fix.
David Given
2018-06-23 11:14:49 +0200
fac0764621Don't crash and burn if there are no tests to run.
David Given
2018-06-23 11:14:40 +0200
5fd8d772fdMove the string-to-float functions into core, after marking them as ACKCONF_WANT_FLOAT.
David Given
2018-06-23 11:14:24 +0200
94ffa3ba88libc floating point and stdio floating point can now be turned on and off using ACKCONF variables.
David Given
2018-06-23 00:04:14 +0200
9bf1d548fcRearrange the libc config files, ready for adding new options.
David Given
2018-06-22 23:43:15 +0200
b21c099a57Get the em libc working again: remove the modula-2 termcap library, as it's a straight copy of the libc one and having two symbols defined at once gets ass upset.
David Given
2018-06-22 23:17:14 +0200
035c9558e8Merge from default.
David Given
2018-06-22 22:43:02 +0200
Merge pull request #105 from davidgiven/dtrg-ass
David Given
2018-06-22 22:42:11 +0200
a0c6fea32cReplace fake-varargs, which doesn't work on 64-bit machines, with real varargs.
David Given
2018-06-22 22:29:52 +0200
c5fd338300Replace fake-varargs, which doesn't work on 64-bit machines, with real varargs.
David Given
2018-06-22 22:29:52 +0200
c0276416d8Move some more libc functions into core.
David Given
2018-06-22 22:20:02 +0200
d1cdb07719Realise that the libc core can safely call other libc core functions, even if they're not defined in the core: so putw() can call stdio stuff, for example. So the earlier concept of pureness isn't necessary. Rename accordingly.
David Given
2018-06-21 23:24:23 +0200
62025c92bdThe ctype functions are pure.
David Given
2018-06-21 23:06:29 +0200
d9d7ffe0d7The maths library is pure.
David Given
2018-06-21 23:00:33 +0200
f9c059812bMoved the setjmp functions into the new pure directoy.
David Given
2018-06-21 22:55:42 +0200
32f47b1d24Move the pure locale functions into the new pure directory.
David Given
2018-06-21 22:54:25 +0200
b9d2f353d9Move the pure stdlib functions into the new pure directory.
David Given
2018-06-21 22:52:31 +0200
4dbdb7d8d5Rethink the libc layout.
David Given
2018-06-21 22:47:02 +0200
83e1b2ad94Move the str and mem functions into the new src/core.
David Given
2018-06-21 22:39:08 +0200
93f39e4bbfRun libcc.ansi through clang-format.
David Given
2018-06-21 22:33:47 +0200
Merge pull request #103 from davidgiven/dtrg-warnings
David Given
2018-06-18 22:31:35 +0200
698613cd7dTurns out that the compiler needs access to the libpc headers too; refactor into a separate target to avoid build loops and make it work.
David Given
2018-06-18 22:17:38 +0200
11854f4dfeAnsify and warning fix.
David Given
2018-06-17 22:30:27 +0200
5784f5fabeRun C files through clang-format.
David Given
2018-06-17 16:11:29 +0200
9ede428e3cUse cproto to extract all the prototypes.
David Given
2018-06-17 16:10:57 +0200
9947e7ac63Added a pc.h to contain libpc prototypes; some ansification.
David Given
2018-06-17 15:54:18 +0200
d1671fc2e3Move the private Pascal headers into libpc where they belong.
David Given
2018-06-17 15:44:33 +0200
13e195d19fWarning fixes.
David Given
2018-06-17 15:42:26 +0200
ce249649b2Warning fix.
David Given
2018-06-17 15:34:29 +0200
Merge pull request #102 from davidgiven/dtrg-powerpc
David Given
2018-06-17 11:45:26 +0200
89e8956bb2Fix edge case in rlwnm when the mask is 32 bits wide. All tests now pass.
David Given
2018-06-17 11:00:01 +0200
7ec9f54679Turns out that andi and andis only have . forms. Fixed; another test passes.
David Given
2018-06-17 10:43:39 +0200
78eaf836beTurns out I was returning values from syscalls in the wrong register; fixed. More tests pass.
David Given
2018-06-17 10:22:20 +0200
ab660a44e9Lots of floating point, bugfixes, and system calls. Most of the tests pass now.
David Given
2018-06-17 09:24:01 +0200
67efbb5f7fDo a bit of floating point stuff; added brk(); fixed a horrible bug where stores with 16-bit displacements were storing the register number and not the contents of the register.
David Given
2018-06-16 22:55:23 +0200
5d7cdd2c67Fix a setcr0 bug which was trashing the condition register; some system calls are now implemented. A few tests more-or-less pass (but crash on exit).
David Given
2018-06-16 08:35:36 +0200
Merge pull request #100 from kernigh/kernigh-pdp
David Given
2018-06-15 15:40:24 +0900
5db312a1c0Prevent crash in isatty()
George Koehler
2018-06-15 00:48:29 -0400
5de5611c24Use 2-byte alignment in pdpv7 to prevent SIGBUS.
George Koehler
2018-06-15 00:17:12 -0400
5111556d14Got the emulator to the point where we're hitting the first major emulation bug (the calloc test hangs).
David Given
2018-06-14 05:53:39 -0700
853af4c4ddSome code runs (up to needing setcr0).
David Given
2018-06-14 04:41:21 -0700
b71145f79dImplement a non-functional skeleton of the PowerPC emulator (with, hopefully, most of the instruction decode done).
David Given
2018-06-14 03:07:36 -0700
Merge pull request #99 from davidgiven/dtrg-ass
David Given
2018-06-14 10:08:17 +0900
519eef933cMerge from trunk.
David Given
2018-06-13 21:47:25 +0900
31c2ba3f94File cleanup.
David Given
2018-06-13 21:47:08 +0900
7eaa235fd1Bodge the ancient em monitor library into building as a libsys for the em22 plat. It's completely untested, but it builds and makes e.out executables.
David Given
2018-06-13 21:44:25 +0900
13a7abdd69Rename a function to avoid a clash with an em system call.
David Given
2018-06-13 21:34:14 +0900
670c7ce96fAfter finding the em_table documentation, move it somewhere where other people can find it.
David Given
2018-06-13 20:58:44 +0900
15161ebb35Remember to always link the libsys and libend.
David Given
2018-06-13 20:57:31 +0900
7f2ca76663Expose our custom Lua interpreter to the build system so utility scripts can be written in it.
David Given
2018-06-13 20:56:49 +0900
Merge pull request #98 from davidgiven/dtrg-m68k
David Given
2018-06-12 14:24:32 +0200
3892b7e0e6Remove bogus conversion from test which was causing failure; you're not allowed to do cui or ciu with sizes smaller than a word.
David Given
2018-06-12 21:04:27 +0900
6ae38887a7It appears that the parameter to lol technically has to be word aligned; having a non-word aligned parameter is illegal (but most of the toolchain accepts it). So, word align data structures for em22.
David Given
2018-06-12 20:54:15 +0900
a000c62808Get moncalls.c to compile on OpenBSD.
George Koehler
2018-06-10 16:29:52 -0400
250777d1caRename setmode() to set_mode() to avoid BSD prototype.
George Koehler
2018-06-10 16:26:54 -0400
6f9e418f94Remove extra #include <stdio.h> to fix uint
George Koehler
2018-06-10 16:24:35 -0400
5404dace3aStop using <X11/Xfuncproto.h> from x86emu.
George Koehler
2018-06-10 16:00:23 -0400
Merge pull request #95 from davidgiven/dtrg-b
David Given
2018-06-10 21:22:26 +0900
4a249b1bdbMerge.
David Given
2018-06-10 20:26:10 +0900
d623440c77Add the core of a simple em22 platform. Unfortunately it doesn't work; the old em libmon vanished decades ago (or never existed), and also ass appears to have a different idea of what the em opcodes are to everything else and gets confused.
David Given
2018-06-10 20:25:48 +0900
cebb238036Merge.
David Given
2018-06-10 18:09:18 +0900
003799f898Fix table underrun when looking up the character class of the EOF character, -1.
David Given
2018-06-10 17:52:45 +0900