summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2 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>
2 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>
2 dayskernel: physmem: Make globals staticIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 daysproject: Bump version to 2.0Ian Moffett
- [kernel: pci]: Add PCIe & ECAM space support [0] - [kernel: lib]: Fix up "%d" padding in vsnprintf() [1] - [kernel: elf]: Zero loadmap to avoid unload issues [2] - [kernel/amd64 & usr]: Require 'argv' in spawn() [3, 4] - [usr: libc]: Add printf() [5] - [usr: osh]: Add 'clear' command [6] - [usr]: Add 'mex' port [7] ... Commits referenced: [0]: f874dae43e8bb09cb15c652add7589899ed4799f [1]: 952caa186852ccf3fa82719d3e484918e89d17a8 [2]: f97ef6c0683fd6030e73466d32df9df03fe2be62 [3]: 68fbe4a2292dc5b4025dd4201fd4b892605079b7 [4]: 51b825d5bf18c4ad1a25328e91c58ef964110a05 [5]: 48b7c43ed1bad98200c3bdfed37d2b68ccf531ca [6]: c24be1ef0baef7734f6fdefda3c0cf44f534ce9c [7]: d1e42507dc4df33073881776e26ebf16437321bb Signed-off-by: Ian Moffett <ian@osmora.org>
3 daysusr.bin: osh: Add builtin 'clear' commandIan Moffett
- Clear the screen with the "\033[H" ANSI escape sequence - Add clear command to the builtin command list Signed-off-by: Ian Moffett <ian@osmora.org>
3 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>
3 daysusr.bin: Add 'mex' portIan Moffett
See https://osmora.org/cgit/mex Signed-off-by: Ian Moffett <ian@osmora.org>
3 daysusr: libc: Set argc/argv when calling main()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskernel: spawn: Add argv + stub envp argumentsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskernel: initramfs: Ensure n->size <= sio->lenIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskernel: Only free thread data on exitIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskernel: exit: Don't use thread data on exitIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 daysusr: libc: Support padding of hex digitsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskernel/amd64: Return stack top after stack initIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 daysusr: libc: Add printf()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel: elf: Ensure loadmap is zeroredIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel: pci: Add support for PCI ExpressIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayskernel: lib: Reset pad_width to 0 in vsnprintf()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 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>
5 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>
5 dayskernel: Deprecate kern_instl for /usr/sbin/installIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 daysusr.sbin: install: Write ISO + disklabelIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayskernel: ahci: Return length in sata_dev_rw()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 daysusr.sbin: install: lseek() back to zero after wipeIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 daysusr: libc: Add lseek()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayskernel: syscall: Add SYS_lseekIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayskernel: filedesc: Add fd_seek() as kernel lseek()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 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>
6 daysusr.sbin: Add initial installer sourcesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 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>
6 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>
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>