summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
22 hourskernel: spawn: Improve wait sleep handlingIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
22 hourskernel: sched: Skip sleeping threads and get nextIan Moffett
If a thread is sleeping, skip it and try the next thread. Signed-off-by: Ian Moffett <ian@osmora.org>
22 hourskernel: sched: Allow sleeping TDs to be enqueuedIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
22 hourskernel: physmem: Allocate unfragmented phys memoryIan Moffett
- Ensure a contiguous region of physical memory is allocated in vm_alloc_frame() - Fix issues with physical memory being clobbered with excessive allocations - Clean up frame walk loop Signed-off-by: Ian Moffett <ian@osmora.org>
22 hourskernel: physmem: Ensure base is page alignedIan Moffett
- Use ALIGN_UP() on base address in vm_free_frame() Signed-off-by: Ian Moffett <ian@osmora.org>
24 hoursusr.bin: time: Pad hour, min and sec to 2 digitsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
24 hoursusr: libc: Reset pad_width if usedIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
24 hoursusr: libc: Include stdbool.h in itoa.cIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
24 hoursusr.bin: osh: Seperate builtin cmds from user cmdsIan Moffett
- Remove 'path' field from command structure - Rename 'command' structure to 'builtin_cmd' - Attempt to run as builtin command first and fallback to /usr/bin/* on failure Signed-off-by: Ian Moffett <ian@osmora.org>
24 hoursusr.bin: osh: Make internal routines staticIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
24 hoursusr: libc: Include stdint.h in string.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
24 hourskernel: exit: Handle stack VA/PA in proc_reap()Ian Moffett
User stacks are identity mapped and kernel stacks are not. Handle this properly or else suffer the consequences. Signed-off-by: Ian Moffett <ian@osmora.org>
24 hourskernel: spawn: Return process exit status on failIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
24 hoursusr: Discard .eh_frame and .note sectionsIan Moffett
- Add DISCARD section in user linker scripts to remove stupid compiler generated sections we have no use for and may cause problems. Signed-off-by: Ian Moffett <ian@osmora.org>
24 hourskernel: exit: Wake up parent *only* if asleepIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
24 hourskernel/amd64: proc: Cleanup user stack vm_map()Ian Moffett
- Add prot var to keep track of flags to map with - OR prot flags with PROT_USER if rpl is 3 Signed-off-by: Ian Moffett <ian@osmora.org>
44 hoursusr.bin: Add 'time' command to return current timeIan Moffett
- Add usr.bin/time/ program to read RTC - Add 'time' command to osh Signed-off-by: Ian Moffett <ian@osmora.org>
44 hoursusr: libc: Add snprintf() implIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
44 hoursusr: libc: Add initial vsnprintf() implIan Moffett
- Support %x specifier for base 16 strings - Support %d specifier for base 10 strings - Support %p specifier for pointer strings - Allow padding of %d strings Signed-off-by: Ian Moffett <ian@osmora.org>
45 hoursusr: libc: Add itoa()Ian Moffett
- Add itoa() base 10 variant - Add itoa() base 16 variant Signed-off-by: Ian Moffett <ian@osmora.org>
45 hoursusr: libc: Add memcpy() in string.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
46 hoursusr.bin: kfgwm: Add initial window text supportIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
46 hoursusr.bin: kfgwm: Include stddef.h in kfg/types.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2 daysshare: man: Add kconf(9)mainIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2 dayskernel: phy: Rename rtl8139 driver to rt81xxIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2 dayskernel: rtl8139: Defer RTL8139 initializationIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2 dayskernel: nvme: Defer NVMe initializationIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2 daysusr.bin: Use stdio for console accessQuinn Stephens
Modified fetch, kmsg, and osh to use stdio.h routines instead of just raw file descriptors. Signed-off-by: Quinn Stephens <quinn@osmora.org> Signed-off-by: Ian Moffett <ian@osmora.org>
2 daysusr: libc: Add stdio read routinesQuinn Stephens
Added fread(), fgetc(), getc(), and getchar() Signed-off-by: Quinn Stephens <quinn@osmora.org> Signed-off-by: Ian Moffett <ian@osmora.org>
2 dayskernel/amd64: isa: Add AT PC MC1468XX driverIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2 dayskernel: Add sys/time.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2 dayskernel/amd64: Save %RCX before calling handlerIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskernel: xhci: Allocate n bytes for scratchpadIan Moffett
Allocate in bytes rather than pages to keep things simple and fix broken logic. Signed-off-by: Ian Moffett <ian@osmora.org>
4 daysusr.bin: osh: Add backspace bellIan Moffett
Add optional bell that beeps when no more characters can be backspaced. This may be turned off by entering `bell off' Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel/amd64: isa: Add /dev/beep for pcspkrIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel: stub: Always show exceptions in userlandIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 daysshare: man: Add vm_map(9)Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 daysusr: libc: Add stdio.hQuinn Stephens
* Added stdio.h and various definitions * Added fwrite(), fputc(), putc(), putchar(), fputs(), and puts() Signed-off-by: Quinn Stephens <quinn@osmora.org> Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel: cons: Add initial ANSI escape seq implIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel: cons: Handle ASCII_NULIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel: cons: Add color attribute helpersIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel: vm: Support NULL `addr' for private mmap()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel: vm: Map at `va + page_off'Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 daysusr: libc: Add stdlib.h exit routinesQuinn Stephens
* Added stdlib.h * Added abort(), exit(), and _Exit() Signed-off-by: Quinn Stephens <quinn@osmora.org> Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayskernel: xhci: Fix scratchpad page countIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 daysusr.bin: kfgwm: Use kfgpos_t for x,yIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 daysusr.bin: kfgwm: Add initial WM sourcesIan Moffett
- Add basic structures and defines for describing a window - Add basic window drawing routines - Draw demo/test window Signed-off-by: Ian Moffett <ian@osmora.org>
6 daysbuild: bootstrap: Default to limine v9.3.0Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 daysusr: libc: Improve stddef.hQuinn Stephens
* Used __need_* to improve compatibility with some programs/libraries. * Used compiler built-in types (with fallbacks) to define size_t, ptrdiff_t, wchar_t, and wint_t. * Added other definitions as specified in C23. Signed-off-by: Quinn Stephens <quinn@osmora.org> Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel: video: Add /ctl/fb0/attrIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>