summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
4 dayskernel: lib: Reset pad_width to 0 in vsnprintf()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel: pci: Add 'cam_hook' structure for PCI I/OIan Moffett
This change improves flexibility and allows for easy future integration of the PCI Express Enhanced Configuration Access Mechanism (ECAM) Signed-off-by: Ian Moffett <ian@osmora.org>
4 daysproject: Bump version to 1.9Ian Moffett
Changes introduced: - [usr.sbin]: Add userspace installer [0] - [usr.sbin & kernel]: Add lseek() [1, 2] - [kernel: ahci]: Improve port init + fix undetectable SATA devices [3] - [kernel & usr]: Add SYS_mmap and SYS_munmap [4] - [kernel]: Add basic ANSI escape sequences [5] - [usr: libc]: Add stdio.h [6] - [usr: osh]: Add input empty bell [7] - [kernel/amd64: isa]: Add /dev/beep for pcspkr [8] - [kernel/amd64: isa]: Add MC1468XX driver [9] - [usr: libc]: Add fread(), fgetc(), getc() and getchar() [10] - [usr: libc]: Add vsnprintf() [11] - [usr]: Add 'time' command [12] - [usr: osh]: Seperate builtin cmds from user cmds [13] ... Commits referenced: [0]: 5fda5742c087a5632be95433a3f4128454a9e1a4 [1]: cb6df4881c457e935f0d4b4597f891c471b96c1a [2]: 342bf7d468db9cd335716285a975ea63ef78823b [3]: 6c48e37379705763c340629fb759ead80fb3c4cf [4]: c667b53e5914288f999fed96d880e7afe98f03e3 [5]: 5fbb0c30cf78d811b86a432aada43e37544e16da [6]: d5def5b4e50a36f4b6e75b77658b5a1468861bcc [7]: d5cfd47668b3ba5de4ba03caef902fee570a5c0b [8]: 2ae664a84d218ca974c5dc4ceeb4420d62d7cba5 [9]: d62d43fc5efa250317f2c7b1533ab3b6b048f9f1 [10]: f7ed50328af7b6a5151f86126a3491a768a7d1ff [11]: 63fd2487e1d9060ce9df3388907cea4d3ee01231 [12]: 23dd48314900691c8f1cebbc7f592104a36fe2ab [13]: bb11f1ead4fe637678dab06bdc57dff1778dcaf2 Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel: Deprecate kern_instl for /usr/sbin/installIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 daysusr.sbin: install: Write ISO + disklabelIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel: ahci: Return length in sata_dev_rw()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 daysusr.sbin: install: lseek() back to zero after wipeIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 daysusr: libc: Add lseek()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel: syscall: Add SYS_lseekIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel: filedesc: Add fd_seek() as kernel lseek()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel: filedesc: Add _KERNEL guardIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayskernel: ahci: Fix issue of undetectable devicesIan Moffett
- Only check PxSCTL.SET within the port reset logic - Do not create device file for ATAPI devices (yet) Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayskernel: ahci: Improve port reset logicIan Moffett
- Set PxCMD.SUD if the HBA supports staggered spin-up to ensure the device will be detectable. - Wait for the device link to be established - Detect and log SATA link speed Signed-off-by: Ian Moffett <ian@osmora.org>
5 daysusr.sbin: Add initial installer sourcesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayskernel/amd64: bus: Make MMIO_OFFSET same as HDDMIan Moffett
Drivers may be invoked even while other processes are start up and therefore their MMIO mappings must be shared. Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayskernel: cons: Make ANSI_BLUE a darker shadeIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel/amd64: Flush TLB per cache attr updateIan Moffett
- Use pmap_update_tbl() to ensure that the TLB is flushed when caching attributes are updated. Signed-off-by: Ian Moffett <ian@osmora.org>
6 daysusr.bin: osh: Check bin_path with access()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 daysusr: libc: Add access() in unistd.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel: vfs: Add SYS_access syscallIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
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>
6 dayskernel: spawn: Wait on both PROC_SLEEP + PROC_ZOMBIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel: spawn: Set PROC_WAITED before td enqueueIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel: exit: Ensure PROC_WAITED is unset on exitIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 daysusr: libc: Add stat() in sys/stat.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel: physmem: Only set bits if memory is foundIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 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>
6 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>
6 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>
6 dayskernel: cons: Invert console cursor colorIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel: spawn: Ensure pathbuf is zeroedIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 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>
6 dayskernel: stat: Fix getattr result pointerIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel: spawn: Improve wait sleep handlingIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 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>
6 dayskernel: sched: Allow sleeping TDs to be enqueuedIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 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>
6 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>
6 daysusr.bin: time: Pad hour, min and sec to 2 digitsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 daysusr: libc: Reset pad_width if usedIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 daysusr: libc: Include stdbool.h in itoa.cIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 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>
6 daysusr.bin: osh: Make internal routines staticIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 daysusr: libc: Include stdint.h in string.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 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>