summaryrefslogtreecommitdiff
path: root/src/sys/include
AgeCommit message (Collapse)Author
8 daysnp: parse: Allocate new PIIR stack into work descIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
8 dayskern: np: Add initial IR engine (PIIR)Ian Moffett
This commit introduces the initial sources for the intermediate representation (IR) engine [called PIIR (PI-IR)] to PIRHO PIIR: [NOUN]: border, boundary, frontier Signed-off-by: Ian Moffett <ian@osmora.org>
8 daysnp: parse: Create proc AST, handle end/begin, ...Ian Moffett
This commit introduces AST object types and AST integer type definitions. We also now keep track of how deep we are in begin/end tags. - Introduce parsing for TT_BEGIN - Introduce parsing for TT_END Signed-off-by: Ian Moffett <ian@osmora.org>
8 daysnp: lex: Add LEX_EOF defineIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
8 daysnp: Add signed integer typesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
8 daysnp: parse: Parse procedure signatureIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
8 daysnp: lex: Add the rest of the UINT tokensIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
8 daysnp: parse: Add AST structure and initial logicIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
8 daysnp: lex: Add TT_NONE token for invalid typesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
8 daysnp: Allocate memory for identifierIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
8 daysnp: init: Keep track of objects with PTRBOXIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
8 dayskern: ptrbox: Add string duplicationIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
8 dayskern: lib: Introduce pointer boxesIan Moffett
Pointer boxes are a way to allocate memory and associate them with one location so that during error/exit paths, one may deallocate every buffer with a single call Signed-off-by: Ian Moffett <ian@osmora.org>
8 daysnp: lex: Detect colon (':')Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
8 daysnp: lex: Add left/right bracket tokensIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
8 daysnp: lex: Handle digits in the streamIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
8 dayslex: np: Add lexer arithmetic operatorsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
8 daysnp: lex: Detect '*' token (TT_STAR)Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
8 daysnp: lex: Annotate token typesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
8 daysnp: parse: Add initial parsing logicIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
8 daysnp: lex: Parse identifiers and commasIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
8 daysnp: lex: Cache last char during parseIan Moffett
Sometimes when parsing while we are scanning for a string, we might loose the last character if we don't save it Signed-off-by: Ian Moffett <ian@osmora.org>
9 daysnp: lex: Use foward declaration of np_workIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
9 dayskern: Add initial pirho compiler sourcesIan Moffett
The pirho compiler is a ring-0 compiler used to compile core parts of the kernel during updates and installs from the initramfs. Signed-off-by: Ian Moffett <ian@osmora.org>
9 dayskern: mac: Add MAC resource queryingIan Moffett
Introduce a feature where a program with the correct rights may get information about a MAC object Signed-off-by: Ian Moffett <ian@osmora.org>
9 dayskern: os: Document the mac_border structureIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
10 dayskern: fbdev: Create namespace object for fbdevIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
10 dayskern: ns: Include nsvar.h in os/ns.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
10 dayskern: ns: Remove unused length fieldIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
10 dayskern: Add initial object namespace sourcesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
10 dayskern: Add safe copyin() and copyout()Ian Moffett
Introduce new routines that make it safer to transfer data between userland and the kernel. Signed-off-by: Ian Moffett <ian@osmora.org>
10 dayskern: lib: Add strdup()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
11 dayskern: io: Fix typo in header guardIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
12 dayskern: fs: Add initial devfs implementationIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
12 dayskern: mount: Remove extra unwanted spaceIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
12 dayskern: Add initial signals workIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
12 dayskern: proc: Protect mapping list with spinlockIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
12 dayskern/amd64: mmu: pmap_set_cache() -> pmap_set_cache()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
12 dayskern/amd64: cpu: Add cpu_halt_others() functionIan Moffett
Add function to halt all processor cores on the machine excluding self. This may be used for emergency conditions on the system. Signed-off-by: Ian Moffett <ian@osmora.org>
12 dayskern/amd64: cpu: Add CPU halt ISR for IPIsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
13 dayskern/amd64: Support APIC inter-processor interruptsIan Moffett
This commit introduces support for sending inter-processor interrupts on the mainbus to other cores on the machine. Signed-off-by: Ian Moffett <ian@osmora.org>
13 dayssys: Add BSD sys/tree.h portIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
13 dayskernel: filedesc: Allocate standard streamsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
13 dayssys: Add initial sys/stat.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
13 dayssys: Add sys/fcntl.h for file I/O Related bitsIan Moffett
Introduce initial fcntl flags for file related I/O. This is to be included on both the user and kernel side. Signed-off-by: Ian Moffett <ian@osmora.org>
14 dayslibc: Add resource border crossing interfaceIan Moffett
Introduce a new libc cross() function which acts as a wrapper to the SYS_cross system call. Signed-off-by: Ian Moffett <ian@osmora.org>
14 dayskern: mac: Make mac_map() return ssize_tIan Moffett
The map callback within the MAC ops returns ssize_t, therefore the mac_map() wrapper should return the same Signed-off-by: Ian Moffett <ian@osmora.org>
14 dayssys: Add sys/_null.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-23usr: libc: Add libc syscall interfaceIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-23kern: security: Add initial support for MACIan Moffett
This commit introduces initial support for mandatory access control. As one may recall, L5 follows "everything is memory". In order to interact with a resource, a process must request it from the kernel in the form of a (sometimes) syncable memory buffer. Each resource as well as processes have an access level, if a process attempts to request a resource with a higher access level than it, the request is rejected by the kernel. However, if a process has a greater than or equal access level as a resource, the request can be granted. Signed-off-by: Ian Moffett <ian@osmora.org>