summaryrefslogtreecommitdiff
path: root/src/init
AgeCommit message (Collapse)Author
2021-09-21make await() fail gracefully when callee has no alive children alreadydzwdz
2021-09-21`init`: add a test for await()dzwdz
2021-09-20add an offset parameter to read() and write()dzwdz
2021-09-20remove some unused variablesdzwdz
2021-09-20use a single struct for all fs_wait return valuesdzwdz
2021-09-18init: fix off-by-one error in tar_sizedzwdz
2021-09-18implement NULL mountsdzwdz
2021-09-18`init`: implement a working tar driverdzwdz
2021-09-18create `init/stdlib`dzwdz
2021-09-18merge `kernel/types.h` and `init/types.h`dzwdz
2021-09-18`init`: start work on the tar driverdzwdz
2021-09-16scaffolding for the initrd: init can read files appended to itdzwdz
currently this is just a text file, but it will be a tar archive later on
2021-09-16implement output from vfs callsdzwdz
2021-09-16fs_read stub, basic implementation in userlanddzwdz
2021-09-15fs_wait: pass the file ID toodzwdz
2021-09-14merge the `syscall_handler` and `_syscall` declarationsdzwdz
i think that making the call a bit more "transparent" makes the code nicer
2021-09-14add support for 4-parameter syscallsdzwdz
2021-09-12simplify `fs_respond`'s signaturedzwdz
2021-09-12first working access function!dzwdz
2021-09-12reorganise init, againdzwdz
2021-09-12implement part of `fs_respond`dzwdz
2021-09-12force init's main to be in .text.startupdzwdz
for some reason it's only there by default if you compile with `-O2`. because of this, you couldn't compile camellia with `-O1`
2021-09-12init: allocate bss at runtimedzwdz
2021-09-12barebones `memflag()` implementation - letting the user allocate pagesdzwdz
2021-09-12remove some useless code from initdzwdz
2021-09-12implement most of fs_waitdzwdz
awaited_req is a garbage name but i couldn't come up with a better one. i also have no idea how to handle all the failure states
2021-09-11replace `user_ptr` with a linux-style `__user` annotationdzwdz
2021-09-09basic _syscall_fs_wait() impl, doesn't pass the req yetdzwdz
2021-09-07reimplement _syscall_mountdzwdz
2021-09-07implement fs_create(), front/back fs handlesdzwdz
2021-09-05error out when <*/types.h> isn't included in headers which need itdzwdz
2021-09-05remove the fd_ / fs_ prefixes from syscall namesdzwdz
2021-09-04rename file descriptors to handlesdzwdz
2021-08-27make vfs_mount_resolve pass all the testsdzwdz
2021-08-25reorganise init/main.c, add some "tests"dzwdz
2021-08-25remove FD_STDOUTdzwdz
init can just open `/tty` instead
2021-08-25implement open() for FD_SPECIAL_TTY (`/tty`)dzwdz
2021-08-25implement vfs_mount_seed, which creates the vfs passed to initdzwdz
2021-08-25change the signature of _syscall_fd_mountdzwdz
2021-08-24switch to using user_ptr for pointers coming from userlanddzwdz
this avoid accidental dereferences, and now it's easy to tell apart which pointers are safe to directly read and which aren't. cons: - const is completely discarded
2021-08-24replace () with (void) in function definitionsdzwdz
`()` means that any amt of arguments will be accepted, which isn't what i want
2021-08-24move syscalls.h to shared/syscalls.hdzwdz
2021-08-24remove _syscall_debug_log, as it's not needed anymoredzwdz
2021-08-24implement FD_SPECIAL_TTY, an stdout equaliventdzwdz
2021-08-24add some scaffolding for file descriptorsdzwdz
2021-08-22fs_open() accepts a signed length, fixes an infinite loopdzwdz
it occureed if the path_simplify returned a negative value - instead of being interpreter as an error it just carried on, ending up in an infinite loop.
2021-08-22basic mount resolvingdzwdz
2021-08-22fs_open() stubdzwdz
2021-08-22fix almost all compiler warningsdzwdz
2021-08-22fix typo in _syscall_await definitiondzwdz