src/version.h.in

Mon, 14 Jan 2013 09:22:12 +0000

author
Philip Pemberton <philpem@philpem.me.uk>
date
Mon, 14 Jan 2013 09:22:12 +0000
changeset 118
feee84e0b3bf
parent 14
7a98c853715e
permissions
-rw-r--r--

More bus error fixes for FreeBee

I have fixed two more bus error handling bugs in FreeBee. First, the CPU core was executing the instruction regardless of whether a bus error occurs when fetching the opcode (which caused it to execute a bogus instruction in such cases). The other one was related to one of my previous fixes - the jump to the bus error vector was at the beginning of the main loop, so it wouldn't be called immediately after the bus error occurred if the timeslot expired, causing the return address to be off.

With these fixes, Unix now runs enough to get into userspace and run the install script (it is also possible to break out and get a shell prompt). However, many commands segfault semi-randomly (or more specifically, it seems that some child processes forked by the shell might be segfaulting before they can exec the command program), so installing the system isn't possible yet. I am not sure exactly what the bug is, but it seems to be related to some function in the shell returning null when the code calling it is assuming that it won't. What the function is, or why it is returning null, I'm not sure (the shell is built without the shared libc and is stripped, making identifying the function harder). I suspect that the function might be in libc, but that is hard to tell.

Author: Andrew Warkentin <andreww591 gmail com>

philpem@13 1 #define VER_COMPILE_DATETIME "@@datetime@@"
philpem@14 2 #define VER_COMPILE_DATE "@@date@@"
philpem@14 3 #define VER_COMPILE_TIME "@@time@@"
philpem@14 4 #define VER_COMPILE_BY "@@whoami@@"
philpem@14 5 #define VER_COMPILE_HOST "@@hostname@@"
philpem@14 6 #define VER_COMPILER "@@compiler@@"
philpem@14 7 #define VER_BUILD_TYPE "@@buildtype@@"
philpem@14 8 #define VER_CFLAGS "@@cflags@@"
philpem@0 9
philpem@14 10 #define VER_MAJOR @@majorver@@
philpem@14 11 #define VER_MINOR @@minorver@@
philpem@14 12 #define VER_BUILDNUM @@buildnum@@
philpem@14 13 #define VER_EXTRA "@@extraver@@"
philpem@14 14 #define VER_VCSREV "@@vcsstr@@"
philpem@0 15
philpem@13 16 #define VER_FULLSTR "@@fullverstr@@"
philpem@0 17