summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
32 hoursusr: libc: Add realloc()Ian Moffett
Implement realloc() to resize allocated memory from malloc() Signed-off-by: Ian Moffett <ian@osmora.org>
33 hoursusr: libc: Add fileno()Ian Moffett
Add POSIX fileno() to grab a file descriptor number from a stream pointer. Signed-off-by: Ian Moffett <ian@osmora.org>
38 hourskernel: conf: Default to console fg of #B57614mainIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
42 hoursusr.bin: elfdump: Add missing operator in elftypeIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
43 hoursproject: Bump version to 2.1Ian Moffett
- [kernel: physmem]: Improve physical memory allocation [0] - [kernel: rtl]: Implement packet TX for the RTL81XX NIC driver [1] - [kernel: net]: Add if_var.h to describe network interfaces [2] - [kernel: net]: Implement IEEE 802.3 and ARP request/reply logic [3, 4] - [kernel]: Introduce timespec structure in sys/time.h [5] - [kernel/aarch64]: Implement interrupt vector table entries [6] - [kernel: pmap]: Introduce machine shared pmap_init() routine [7] - [kernel/aarch64]: Implement AARCH64 pmap stubs [8] - [kernel: intr]: Allow driver specific interrupt data [9] - [usr: libc]: Implement rand() and srand() with LSFR [10] - [kernel/amd64]: Add SSE and AVX support (SIMD) [11] - [usr: libc]: Implement initial malloc() and free() [12] - [kernel: sys]: Introduce PTR_NOFFSET macro for negative offsets [13] Commits referenced: [0]: a9fb11245f3ccc422089ed60a1ce57b7cb2d1c2a [1]: 9db4bb193ad12b0cf47125543bf7f3f36c0fb0ca [2]: 8224cdd1059aec4a1342863caa687a28690e6af9 [3]: b130e0e745ce3be4e28fc0eb50011f931157b49a [4]: 767547ed81651a4ff6977c34c3033c82e1ebee16 [5]: bd1f2f56adf87fbaf69135e2bfd650ff472982d9 [6]: caad8df87d20c5949ef4c1190bc5a63ccf75dc05 [7]: 4a45078c01dc83e95f70b65d244c388ec62c0b98 [8]: c15bb67a2a485eaa498fca20559078eafb4a2298 [9]: 66beb7829271712f6cd2bbe03b38a50c1d953f2c [10]: 723bb6544cf7a4bf8926e3ee3b07024250d8b68b [11]: 34eb3b3b8dbca30c0a0702dd7805ac7b811393c8 [12]: 224eb85c88d7cdb442758adc6277bfd4a1c3a214 [13]: 549a3f6ea5e13e39f006125c0f46b79645384604 Signed-off-by: Ian Moffett <ian@osmora.org>
44 hoursusr.bin: Add 'elfdump' toolIan Moffett
Introduce the 'elfdump' utility to dump information relating to ELF files. This is useful for debugging purposes. Signed-off-by: Ian Moffett <ian@osmora.org>
45 hoursgithub: Add Hyra screenshot to GitHub mirrorIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
45 hoursusr.bin: mrow: Randomize mouse y after collisionIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
45 hoursusr.bin: kfgwm: Allocate new windows with malloc()Ian Moffett
As malloc() has been recently introduced into the Hyra libc, we should take advantage of it to allow us to share windows between functions without relying on the stack. Signed-off-by: Ian Moffett <ian@osmora.org>
46 hoursusr.bin: kfgwm: Ensure x/y does not overflowIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayslibc: malloc: Add HEAP_ALIGN defineIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayslibc: malloc: Fix typos in commentIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 daysusr: libc: Implement initial malloc() and free()Ian 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>
3 dayskernel: phy: Add initial E1000 sourcesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskernel/amd64: Add SIMD (SSE + AVX) supportIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 daysbuild: Remove automatic installer warningIan Moffett
The Hyra installer now exists in usr.sbin/installer and is no longer automatic as it relies on user input for confirmation 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 daysusr.bin: date: Print month and day of the weekIan Moffett
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>
4 daysusr: usr.bin/time -> usr.bin/dateIan Moffett
Change the 'time' binary to be called 'date' as it is more fitting for the type of program it is. Signed-off-by: Ian Moffett <ian@osmora.org>
4 daysusr.bin: mrow: Set max mouse speed at 2Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 daysusr.bin: mrow: Add stdbool.h includeIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 daysusr.bin: mrow: Update mouse speed per hitIan Moffett
Every time the kitty catches the squeaky thing, the next one is faster making it even more fun! Signed-off-by: Ian Moffett <ian@osmora.org>
4 daysusr.bin: mrow: Log final score on exitIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 daysusr.bin: Add 'mrow' gameIan Moffett
Add fun mrow game with the goal of catching little mice like a silly kitty!!! Signed-off-by: Ian Moffett <ian@osmora.org>
4 daysusr.bin: beep: Fix payload orderIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 daysusr: libc: Add rand() and srand()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 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>
5 dayskernel/amd64: intr: Ensure intr_hand.name has '\0'Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 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>
6 daysusr: libc: Add AARCH64 stubsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 daysbuild: Define AARCH64 specific flags in configureIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 daysusr: libc: Look in src/arch/$(ARCH) for asm filesIan Moffett
This allows seperation of different architectures Signed-off-by: Ian Moffett <ian@osmora.org>
6 daysbuild: Pass "CC" makevar to user makefilesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 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>
6 dayskernel: Add __aligned(n) attributeIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 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>