summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
21 hourskern: omar: Implement VFS read vopIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
21 hourskern: namei: Return vnode before exiting functionIan Moffett
If there is a file that is found, we want to return the result before we return from the function, fixes issue with uninitialized vnodes on lookups Signed-off-by: Ian Moffett <ian@osmora.org>
21 hourskern: namei: Return -NOENT at function endIan Moffett
If we go through the entire function without getting a vnode, then there is no file to be found Signed-off-by: Ian Moffett <ian@osmora.org>
21 hourskern: vfs: Add vnode operation for readsIan Moffett
Introduces a read callback wrapper implementation for vnodes to simplify file reading Signed-off-by: Ian Moffett <ian@osmora.org>
21 hourskern: omar: Set vnode ops per looked up nodeIan Moffett
Everytime a look up is performed, we should set the vnode operations on the resulting vnode Signed-off-by: Ian Moffett <ian@osmora.org>
22 hourskern: filedesc: Don't stop searching without fdIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
22 hourskern: filedesc: Remove outdated commentIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
22 hourskern: vfs: Add NULL check for write vopIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
37 hourscmd: Add 'lsdisk' utilityIan Moffett
The 'lsdisk' utility is a simple too to list the disks present on the machine. Signed-off-by: Ian Moffett <ian@osmora.org>
37 hourskern: dms: Add DMS QUERY opcode for devinfoIan Moffett
Add a new QUERY operation code that is used to fetch information about a specific disk. Signed-off-by: Ian Moffett <ian@osmora.org>
37 hourslibc: Add DMS I/O syscall interfaceIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
37 hourskern: dms: Add initial DMS engine sourcesIan Moffett
The DMS engine handles performing I/O based on specific opcodes given to it and drives the callback wrappers. Signed-off-by: Ian Moffett <ian@osmora.org>
38 hourskern: ahci: Implement DMS read interfaceIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
38 hourskern: dms: Make DMS block size awareIan Moffett
In order to safely copy between disk and host memory through a programming interface, DMS must be aware of the hardware disk block size Signed-off-by: Ian Moffett <ian@osmora.org>
38 hourskern: ahci: Don't hardcode block sizesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
38 hourskern: ahci: Register SATA drives to DMSIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
38 hourskern: Add initial DMS frameworkIan Moffett
DMS stands for Disk Management and Supervision, drivers can register themselves to DMS so that they can be looked up and operated on. Signed-off-by: Ian Moffett <ian@osmora.org>
38 hourskern: ahci: Correct buffer order during ahci r/wIan Moffett
Move to the buffer given to us if there it is a read, move from the buffer given to us if it is a write Signed-off-by: Ian Moffett <ian@osmora.org>
42 hourskern: ahci: Implement r/w of SATA drivesIan Moffett
Introduces reading and writing of SATA drives via a bufargs structure to describe the buffer as well as its attributes Signed-off-by: Ian Moffett <ian@osmora.org>
42 hourslibc: Add __libc_init as well as cmdline argumentsIan Moffett
This commit introduces a libc initialization function @ __libc_init() a long with variables __argv __argc used for command line arguments Signed-off-by: Ian Moffett <ian@osmora.org>
42 hourskern: proc: Check argc after checking envblkIan Moffett
Fixes a crash with using this syscall Signed-off-by: Ian Moffett <ian@osmora.org>
2 dayscmd: hush: Ignore input if buffer is emptyIan Moffett
Do not try to test the input against anything if there is no input to test against. Signed-off-by: Ian Moffett <ian@osmora.org>
2 dayskern: ahci: Add cmdslot allocation + identifyIan Moffett
Implements command slot allocation, command submission and the ATA identify command Signed-off-by: Ian Moffett <ian@osmora.org>
2 dayskern: ahci: Allocate raw physical memoryIan Moffett
No need to overcomplicate things for now, just use a simple vm_alloc_frame() for DMA allocations Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskern: proc: Add NULL check for envblkIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskern: os: Remove extra newlineIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskern/amd64: Init LAPIC before PCI bus driverIan Moffett
A lot of PCI(e) devices rely in MSI-X which pokes the Local APIC via MMIO, we'll want the LAPIC up before PCI(e) Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayscmd: Add initial 'fetch' commandIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayscmd: hush: Wait for commands to finishIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayslibc: Add SYS_wait syscall interfaceIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskern: proc: Add initial waitpid() syscallIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskern: proc: Implement process sleeping and wakingIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskern: proc: Use seperate queue link for lookupsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskern/amd64: Try to continue if no proc on switchIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskern/amd64: Set RBP when kicking processesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskern: pci: Parse PCI capability list per deviceIan Moffett
This allows us to see what kind of capabilities the device has (e.g., MSI/MSI-X) Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskern: init: Turn off console logs before userlandIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskern/amd64: reboot: Add Intel PCH RST_CNT methodIan Moffett
Introduces support for platform reset via the RST_CNT control register on Intel chipsets that support it. Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskern/amd64: reboot: Add I8042_REBOOT optionIan Moffett
Adds I8042_REBOOT config option for the AMD64 port as a workaround against certain hardware that doesn't support the i8042 reset Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskern/amd64: cpu: Get processor family IDIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskern/amd64: Identify processor vendor in mdcoreIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayscmd: hush: Add initial program spawningIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayscmd: Add reboot commandIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskern: reboot: Add reboot system callIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskern/amd64: Add reboot functionIan Moffett
Add a function that reboots the system by attempting the softest method and incrementally becoming forceful if previous methods fail Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayslibc: stdio: Add snprintf() declIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskern: xhci: Allocate and init command ring / CRCRIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskern: xhci: Add NULL check to xhci_init_dcbaap()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskern: ahci: Enable PCI MMIO and bus masteringIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayskern: xhci: Add module creditIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>