summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
34 hoursusr: Start shell + rc through /usr/sbin/initIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
36 hoursusr: Add init.rc for userspace startup flexibilityIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
37 hourskernel: exit: Only kill leaf if not exitingIan Moffett
During an exit(), the parent needs to kill all of the child processes that depend on it. However, there might be an occurrence where one or more is already exiting and trying to kill such processes would be problematic and may result in issues like double frees. This commit ensures that the exiting parent only kills child processes that aren't already exiting themselves. Signed-off-by: Ian Moffett <ian@osmora.org>
43 hourskernel: conf: Default to console fg of #B57614mainIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskernel: mman: Make MAP_ANON 0x0000Ian Moffett
MAP_ANON does not need to be treated as any specific flag bits as it isn't even checked with mmap() Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayssys: param: Add PTR_NOFFSET define to sub pointersIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskernel: Fix base-16 style in endian.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskernel: e1000: Reset the controller before initIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskernel: e1000: Read MAC address into `netif'Ian Moffett
This commit implements EEPROM reading logic as well as some code to read the ethernet address into a `netif' structure. Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskernel/amd64: Only print SIMD logs on BSP initIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskernel: e1000: Grant NIC PCI MMIO/DMA capabilitiesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskernel: e1000: Use raw register VAP offsetsIan Moffett
The E1000 may add padding in-between registers and for the sake of simplicity, we will deal with raw offsets instead of a silly structure. Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel: phy: Add initial E1000 sourcesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel/amd64: Add SIMD (SSE + AVX) supportIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel: ctlfs: Do not reclaim ctlfs entriesIan Moffett
There will likely be multiple times the reference count of a ctlfs entry will hit zero. Several programs may open and close a ctlfs node more than once and as these are hardwired kernel objects, they must always stay present. At the most we may set the vp->data field to NULL, indicating that it is currently unused. Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel/amd64: mc1468xx: Add year, month and dayIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel/amd64: intr: Add driver specific intr dataIan Moffett
Allow the intr_hand structure to carry driver specific and interrupt related data so that it can be passed to an interrupt handler when it is invoked. Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel/amd64: intr: Ensure intr_hand.name has '\0'Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel/amd64: Remove unused 'intr_entry' structIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel/aarch64: pmap: Handle PROT_EXEC prot flagIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel/aarch64: Implement vas and map/unmap stubsIan Moffett
- Implement pmap_map() - Implement pmap_unmap() - Implement pmap_read_vas() - Implement pmap_switch_vas() Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel: pmap: Add arch-shared pmap_init() routineIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 dayskernel/aarch64: Add exception code + frame fixupsIan Moffett
- Add handle_exception() as higher level logic to handle the exceptions - Simplify frame.h - Call C handler in vector.S - Clean up stack after creating frame - Add register dump on exception Signed-off-by: Ian Moffett <ian@osmora.org>
7 dayskernel: Add __aligned(n) attributeIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 dayskernel/aarch64: frame: Remove extra whitespaceIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 dayskernel/aarch64: Remove stray alignment directiveIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 dayskernel/aarch64: Implement initial vector stubsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 dayskernel/aarch64: Add intr_register() stubIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 dayskernel/aarch64: Make stubs up to dateIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 dayskernel/aarch64: cdefs: Make halt macro properIan Moffett
- md_halt() -> md_hlt() - Pass dummy operand Signed-off-by: Ian Moffett <ian@osmora.org>
9 dayskernel: time: Introduce SYS_sleepIan Moffett
Add SYS_sleep to put a thread to sleep for some time through a timespec Signed-off-by: Ian Moffett <ian@osmora.org>
9 dayskernel: Introduce timespec structIan Moffett
- Introduce timespec structure for nanosecond/second precision Signed-off-by: Ian Moffett <ian@osmora.org>
9 dayskernel: Remove deprecated func declarationIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
9 dayskernel: netinet: Implement ARP reply logicIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
9 dayskernel: netinet: Simply memcpy ether_saddrIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
10 dayskernel: rtl: Fix up includes and remove "TODO"Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
10 dayskernel: net: Implement IEEE 802.3 + ARP requestsIan Moffett
Introduce IEEE 802.3 related headers such as ones containing the structure of an ethernet frame as well as its types. This commit additionally introduces ARP request logic. Signed-off-by: Ian Moffett <ian@osmora.org>
10 dayskernel: Add sys/endian.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
10 dayskernel: rtl: Expose NIC properly through if_var.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
10 dayskernel: rtl: Remove TODO comment (completed)Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
10 dayskernel: rtl: Implement packet TXIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
11 dayskernel: ahci: Wait until ready before any I/OIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
12 dayskernel: ahci: Don't zero allocated PAs anymoreIan Moffett
This is no longer needed as the Hyra PMM now does this automatically by default. Signed-off-by: Ian Moffett <ian@osmora.org>
12 dayskernel: Prevent physmem clobbers + zero memoryIan Moffett
To prevent a situation where there is a data race between one thread freeing physical memory and one allocating physical memory. Do not immediately reuse freed physical memory. Instead, keep allocating upwards and once there is no more room, wrap the last_idx back to the bitmap free index. We now also zero allocated physical memory for security reasons. Signed-off-by: Ian Moffett <ian@osmora.org>
12 dayskernel: physmem: Make globals staticIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
12 dayskernel: cons: Clear entire screen on demandIan Moffett
- Flush the entire output buffer - Wipe the whole screen with "bg" - The entire console will now be cleared when a "\033[H" sequence is encountered Signed-off-by: Ian Moffett <ian@osmora.org>
12 dayskernel: spawn: Add argv + stub envp argumentsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
12 dayskernel: initramfs: Ensure n->size <= sio->lenIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
12 dayskernel: Only free thread data on exitIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
12 dayskernel: exit: Don't use thread data on exitIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>