summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
30 hourskernel: devfs: Add block device stat mechanismIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
31 hourskernel: synch: Use md_pause() in spinwait loopIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
31 hourskernel: synch: Add mutual exclusion locksIan Moffett
Add mutex locks, these differ from spinlocks as they are named and also yield to the scheduler instead of just spinning if the lock is acquired. Signed-off-by: Ian Moffett <ian@osmora.org>
31 hoursusr: libc: Add POSIX getpid() and getppid()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
31 hourskernel: proc: Add getpid() and getppid()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
31 hourskernel: driver: Implement driver blacklistIan Moffett
Sometimes one may not want *all* of the drivers to start up during system boot. The driver blacklist allows one to mark a driver to be ignored during startup. Signed-off-by: Ian Moffett <ian@osmora.org>
31 hourskernel: driver: Assign names to all driversIan Moffett
Assign a name to each driver through the DRIVER_EXPORT() or DRIVER_DEFER() macros. This can be used for blacklisting driver startups. Signed-off-by: Ian Moffett <ian@osmora.org>
2 dayskernel/aarch64: Add 'board_info' structureIan Moffett
Introduce a 'board_info' structure as well as an md_get_board() routine to get information about the host Signed-off-by: Ian Moffett <ian@osmora.org>
2 dayskernel: console: Add 'show_curs' feat flagIan Moffett
Add 'show_curs' feat flag to enable/disable whether or not the cursor should be drawn Signed-off-by: Ian Moffett <ian@osmora.org>
2 dayskernel: console: Remove extra newlineIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskernel: console: Introduce /ctl/console/featmainIan Moffett
Introduce a ctlfs entry for configuring various console features such as the ability to parse ANSI escape codes. Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskernel: ctlfs: Implement ctlfs write() operationsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskernel: ctlfs: Add ctlfs_get_ops() to fetch ctlopsIan Moffett
This commit cleans up the read routine by creating a helper that fetches common fields from the ctlfs entry while checking things such as its magic number. Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskernel: console: Introduce cons_screen featuresIan Moffett
Introduce a 'feat' field in the cons_screen structure to allow certain console features to be turned on or off. Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskernel: cons_ansi: Use `scr' var for console callsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 daysdev: uacpi: Always include machine/intr.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 daysusr: libc: Implement ftell()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel: tmpfs: Add tmpfs getattr callbackIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel: tmpfs: Add 'mode' field to tmpfs nodesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel: descrip: Return new offset in fd_seek()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel: tmpfs: Store the *real* size in a nodeIan Moffett
The 'len' field within the tmpfs node stores the buffer length which is relative to the tmpfs block size. Introduce a real size which returns the amount of data actually present within those buffers. Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel: tmpfs: Remove debugging kprintf()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel: vnode: Only include vm/*.h ifdef _KERNELIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayskernel: driver: Only init non-deferred driversIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayskernel: syslog: Remove unused variableIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 daysrc: Execute /usr/sbin/inject on initIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 daysusr.sbin: Add 'inject' program for loading KRQsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 daysusr: libc: Add inject() implementationIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 daysusr.bin: osh: Allow execution of direct pathsIan Moffett
This commit allows the end-user to supply a path (e.g., /usr/bin/mrow) straight to the shell to be interpreted as a binary executable path. Signed-off-by: Ian Moffett <ian@osmora.org>
5 daysusr: Add 'echo' program to replace osh builtinIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 daysusr.bin: osh: Rename 'i' to 'buf_i'Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayskernel: Introduce SYS_inject syscallIan Moffett
The SYS_inject syscall will allow the user to inject Kernel Runtime Quantums (KRQs) into the running kernel. As of now, set paths are not supported and the initial implementation includes a NULL path used to load all deferrable drivers. Previously during kernel startup, all deferrable drivers were loaded automatically. This commit makes it so that they are only loaded when sys_inject() is called with a NULL path. Signed-off-by: Ian Moffett <ian@osmora.org>
5 daysusr.sbin: init: Allow start path to be overriddenIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 daysbuild: Rename hyra-kernel to hyra.krqIan Moffett
This commit prepares for Hyra Kernel Runtime Quantums (KRQs) which allows one to make the kernel more modular Signed-off-by: Ian Moffett <ian@osmora.org>
5 daysusr.bin: osh: Ensure argv is zerored per commandIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel: panic: Implement fresh panic screenIan Moffett
Clear the screen and tweak console foreground/background to urgent looking colors during a system panic Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel: panic: Remove redundant newlineIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel: syslog: Remove problematic lockIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel/amd64: trap: Wrap regdump into a panic()Ian Moffett
- Rename regdump() to trap_fatal() - Use panic() rather than kprintf() Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel/amd64: trap: Restore IPL during user trapsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 daysusr.bin: Add initial getconf implIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 daysusr: libc: Implement POSIX sysconf()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 daysusr: libc: Store auxiliary vector tag/value pairsIan Moffett
This commit introduces the global libc '__libc_auxv' containing auxiliary vector entries as per the System V Application Binary Interface Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel: exec_elf64: Ensure '.bss' is zero filledIan Moffett
Implement logic to go through the section header table and explicitly zero fill all entries of type SHT_NOBITS Signed-off-by: Ian Moffett <ian@osmora.org>
6 daysusr.bin: osh: Ignore tab as inputIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel: cons: Handle horizontal tabs ('\t')Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 daysusr.bin: cat: Use fgets() in catIan Moffett
Implement line-by-line reading with fgets() instead of relying on read() Signed-off-by: Ian Moffett <ian@osmora.org>
6 daysusr: libc: Implement fgets()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 daysusr: libc: Implement fopen() and fclose()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 dayskernel/amd64: mp: Give each core an idle threadIan Moffett
Having the same amount of idle threads per core allow the CPU to always have a thread assigned to one of its cores even when there are currently no other threads for it to take. Signed-off-by: Ian Moffett <ian@osmora.org>