summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
41 hoursusr: Add 'dmidump' program for DMI infomationIan Moffett
Add dmidump utility that reports information from DMI (aka system management BIOS). Signed-off-by: Ian Moffett <ian@osmora.org>
41 hourskernel: dmi: Add '/ctl/dmi/board' ctl entryIan Moffett
Add ctlfs entry for DMI to allow for easy system information from userspace by reading '/ctl/dmi/*'. This commit implements a ctlfs node that reports information about the host board. Signed-off-by: Ian Moffett <ian@osmora.org>
41 hourskernel: dmi: Add dmi_prodfam()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
42 hourskernel: dmi: Add dmi_cpu_version()Ian Moffett
Add DMI helper to grab processor version string Signed-off-by: Ian Moffett <ian@osmora.org>
3 daysusr: libc: Implement additional socket routinesIan Moffett
Implements: - sendmsg() - recvmsg() - connect() Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskernel: Add SYS_connect syscallIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskernel: socket: Implement connect()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskernel: socket: Improve control message logicIan Moffett
- Zero new control buffer before usage - Block if the control message queue is empty Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskernel: socket: Block is recv queue is emptyIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskernel: socket: Block if cmsg queue is emptyIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskernel: socket: Log socket owner PID on SCM_RIGHTSIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskernel: socket: Create a socket file in /tmp/Ian Moffett
This commit adds logic to socket() that creates a temp file that represents it. Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskernel: socket: Keep track of socket ownerIan Moffett
Keep track of the process that created a socket. Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayssys: types: Use internal typenames for typedefsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel: descrip: Add 'td' parameter to fd routinesIan Moffett
Update the signature of 'fd_get()', 'fd_alloc()' and 'fd_dup()' to include a pointer to the process to target. This improves the flexibility of the file descriptor API. Signed-off-by: Ian Moffett <ian@osmora.org>
4 daysetc: oemu: Add examples for LSR and LSLIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 daysusr: libc: Add initial ctype.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 daysoemu: cpu: Add decoding for shiftinstructionIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 daysoasm: Introduce logical shift operationsIan Moffett
This commit introduces LSR/LSL which are used as bitwise shift operations. -- lsr x1, #1 !! x1 >>= 1 lsl x1, #1 !! x1 <<= 1 -- Signed-off-by: Ian Moffett <ian@osmora.org>
6 daysetc: oemu: Fix conflict in test-00.sIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel: socket: Ensure AF_UNIX in recvmsg()Ian Moffett
Ensure that the file descriptor represented by 'socket' is of type AF_UNIX before performing the rest of recvmsg() Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel: Add SYS_sendmsg and SYS_recvmsgIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel: socket: Add initial SCM + CMSG implIan Moffett
Introduce initial implementation for out-of-band socket control messages and an SCM_RIGHTS stub. Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel: uio: Add iovec copyin/copyout routinesIan Moffett
Introduce copyin() and copyout() type functions made for iovec/uio operation. Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel: posix: Add POSIX 'uio'Ian Moffett
See https://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/uio.h.html Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel: Introduce per-arch M_WORD_SIZEIan Moffett
The machine word size describes how many bytes of data can be processed at once. Add a per-arch M_WORD_SIZE constant to represent this platform specific characteristic. This commit also adds an MALIGN() helper macro to sys/param.h which can be used for optimization purposes in cases where you want data to be perfectly aligned on a machine word boundary. Signed-off-by: Ian Moffett <ian@osmora.org>
6 daysusr: libc: Add libc socket functionsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 dayskernel: net: Add socket syscallsIan Moffett
Introduce the following syscalls: - SYS_socket - SYS_bind - SYS_recv - SYS_send Signed-off-by: Ian Moffett <ian@osmora.org>
7 dayskernel: net: Introduce initial socket implIan Moffett
Introduce initial support for POSIX sockets. This commit currently implements the AF_UNIX family for IPC. Signed-off-by: Ian Moffett <ian@osmora.org>
7 daysetc: oemu: Add XOR example to test-00.sIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 daysusr: cat: Remove extra newlineIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 dayskernel: net: Add missing sys/types.h includeIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 daysoemu: cpu: Add decoding for XOR instructionIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 daysoasm: Introduce XOR mnemonicIan Moffett
Implement mnemonic for the XOR instruction: -- xor x4, #1 ! x4 = x4 ^ 1 -- Signed-off-by: Ian Moffett <ian@osmora.org>
7 daysetc: oemu: Add example for 'OR' in test-00.sIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 daysoemu: cpu: Add decoding for OR instructionIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 daysoasm: Introduce OR mnemonicIan Moffett
Implement mnemonic for the OR instruction: -- or x2, #3 ! x2 = x2 | 3 -- Signed-off-by: Ian Moffett <ian@osmora.org>
7 daysoemu: cpu: Add decoding for AND instructionIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 daysoasm: Introduce AND mnemonicIan Moffett
Implement mnemonic for the AND instruction: -- and x1, #7 ! x1 = x1 & 7 -- Signed-off-by: Ian Moffett <ian@osmora.org>
8 dayskernel: vsr: Add 'td' argument for most funcsIan Moffett
Allow specification of which process should be targeted for specific operations. Signed-off-by: Ian Moffett <ian@osmora.org>
9 dayskernel: Introduce initial VSR implIan Moffett
This commit introduces the initial implementation of Virtual System Resources (VSRs). Virtual system resources enable specific subsystems to control global state while the VSR acts as a middle man between the process, and the actual resource itself. This allows the products of certain operations to be routed to either the global state or a local (per-process) "shallow copy" whose data and side effects are only visible through that process. An example of something this would be useful for is some sort of transparent access control mechanism where if a process should not modify global system-wide state, it can at least modify the state for itself. Signed-off-by: Ian Moffett <ian@osmora.org>
9 dayskernel: lib: Add strdup() to string.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
9 dayskernel: termios: Add c_oflag bit definesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
9 dayskernel: termios: Add compatibility flagsIan Moffett
Adds compatibility flags for c_iflag as well as improved documentation for the defines. Signed-off-by: Ian Moffett <ian@osmora.org>
9 dayskernel: cons: Create seperate 'scr' var for rootIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
9 daysoasm: Remove redundant state->last updateIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
9 daysoasm: lex: lex_is_mro() -> tok_is_mro()Ian Moffett
Improve naming consistency Signed-off-by: Ian Moffett <ian@osmora.org>
9 daysoasm: parse: "instruction" -> "token"Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
9 daysusr: osh: Add "!!" to repeat last commandIan Moffett
Introduce a mechanism to repeat the last command using the "!!" shorthand. Signed-off-by: Ian Moffett <ian@osmora.org>
9 dayskernel: signal: Add SIGTERMIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>