Jehanne is going to use a new file protocol, but Plan 9 is really
coupled with 9P2000.
Renamed fcall.h as 9P2000.h and introduced specific constants such
as NP_OREAD, NP_OWRITE and so on, so that we can use different values
in the kernel and new protocol.
Renamed devmnt to devninep, since it's actually a device serving 9P2000
file systems.
Also, fixed 9P2000 support in Jehanne, that was broken with the introduction
of OSTAT.
After the removal of dumb push in crt0 (commit 929014ebca5c738d3854758326de7abfb77c1ef1)
the first byte of the c integer is not zeroed anymore (which is correct).
But since ms.c reads and bit-match a single byte in c, when it's an int some test success/fail
due to the state of the unused bytes.
This makes the mouse turn crazy.
So we turn it into a char, so that bitmasks and tests work as expected.
Added cross-compiler to $PATH in continuous-build.sh
and enabled sudo in .travis.yml.
NOTES:
- travis is unable to update submodules pointing to commits out of their master branch,
so if you push to devtools, you need to push into master branch or your build will be broken
- travis caches conflicts with submodule managements, so we use tmp/toolchain instead of
hacking/cross/toolchain in .travis.yml and continuous-build.sh will mv binaries as required.
Note that libc is what distinguish "native" software from "non-native"
in Jehanne: further C libraries can be ported to Jehanne, but this libc
will remain the main building block of the system.
Also note that a few files have not been ported from Harvey:
- 9sys/pushtls.c
- port/rijndael.c
- port/rijndael.tbl
- port/sha2.c
Pushtls.c depends on libmp and libsec so libc is not the appropriate place
for it. The other three will be moved to libsec.
PRO MEMORIA: in arch/amd64/include/ureg.h the commented registers are preserved.
They were removed at 6ab2e16c9f
but apparently the es register is used by vesavga (386 version) in both Plan9, 9front and 9atom.