summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
6 dayskernel: vfs: Release vnode in vfs_dostat()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel: vfs: Use pathbuf in vfs_dostat()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel: vfs: Remove unused includeIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 dayskernel: spawn: Wait on both PROC_SLEEP + PROC_ZOMBIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 dayskernel: spawn: Set PROC_WAITED before td enqueueIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 dayskernel: exit: Ensure PROC_WAITED is unset on exitIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 daysusr: libc: Add stat() in sys/stat.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 dayskernel: physmem: Only set bits if memory is foundIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 dayskernel: proc: Make per-process flags volatileIan Moffett
The per process flags field is a frequently modified/read field and MUST NOT give stale data. Be very sure that the compiler does not optimize away accesses. Signed-off-by: Ian Moffett <ian@osmora.org>
7 dayskernel: sched: No yield on wait + intoff on yieldIan Moffett
Temporary workaround for issue relating to hangs on process yield with a sleeping parent Signed-off-by: Ian Moffett <ian@osmora.org>
7 dayskernel: cons: Add ANSI cursor pos reset sequenceIan Moffett
- Add support for the "\033[H" ANSI escape sequence to reset the cursor to the 'home' position Signed-off-by: Ian Moffett <ian@osmora.org>
7 dayskernel: cons: Invert console cursor colorIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 dayskernel: spawn: Ensure pathbuf is zeroedIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 dayskernel/amd64: Add `alloc` to pmap_update_tbl()Ian Moffett
Add an `alloc' paramater to pmap_update_tbl() to ensure that functions like pmap_map() and pmap_unmap() have control over, whether or not to allocate new page table entries. This is useful as unmapping memory does not require new page table entries to be allocated and doing so anyways may result in undefined behaviour such as hangs. Signed-off-by: Ian Moffett <ian@osmora.org>
7 dayskernel: stat: Fix getattr result pointerIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 dayskernel: spawn: Improve wait sleep handlingIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 dayskernel: 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>
7 dayskernel: sched: Allow sleeping TDs to be enqueuedIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 dayskernel: 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>
7 dayskernel: 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>
7 daysusr.bin: time: Pad hour, min and sec to 2 digitsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 daysusr: libc: Reset pad_width if usedIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 daysusr: libc: Include stdbool.h in itoa.cIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 daysusr.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>
7 daysusr.bin: osh: Make internal routines staticIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 daysusr: libc: Include stdint.h in string.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 dayskernel: 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>
7 dayskernel: spawn: Return process exit status on failIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 daysusr: 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>
7 dayskernel: exit: Wake up parent *only* if asleepIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 dayskernel/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>
8 daysusr.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>
8 daysusr: libc: Add snprintf() implIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
8 daysusr: 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>
8 daysusr: libc: Add itoa()Ian Moffett
- Add itoa() base 10 variant - Add itoa() base 16 variant Signed-off-by: Ian Moffett <ian@osmora.org>
8 daysusr: libc: Add memcpy() in string.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
8 daysusr.bin: kfgwm: Add initial window text supportIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
8 daysusr.bin: kfgwm: Include stddef.h in kfg/types.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
9 daysshare: man: Add kconf(9)Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
9 dayskernel: phy: Rename rtl8139 driver to rt81xxIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
9 dayskernel: rtl8139: Defer RTL8139 initializationIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
9 dayskernel: nvme: Defer NVMe initializationIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
9 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>
9 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>
9 dayskernel/amd64: isa: Add AT PC MC1468XX driverIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
9 dayskernel: Add sys/time.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
9 dayskernel/amd64: Save %RCX before calling handlerIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
10 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>
10 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>
10 dayskernel/amd64: isa: Add /dev/beep for pcspkrIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>