summaryrefslogtreecommitdiff
path: root/src/sys
AgeCommit message (Collapse)Author
3 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>
3 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 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 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 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>
5 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>
5 dayskern: xhci: Initialize the DCBAAP register on initIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayskern: vm: Add BYTES_TO_PAGES helper macroIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayskern: pci: Initialize PCI bus mastering + MMIOIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayskern: xhci: Fixup xHCI opregs field sizesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayskern: usb: Extract HCSPARAMS1 register fieldsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayskern: usb: Poll USBSTS.CNR after resetIan Moffett
The host needs to wait for the controller to be ready by polling the CNR bit as per section 4.2 of the spec Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayskern: xhci: Comment USBCMD bitsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayskern: xhci: Implement controller hard resetIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayskern: io: Add initial xHCI skeletonIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayskern/amd64: pci: Handle 64-bit BAR addressesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayskern/amd64: bus: Use higher half VA for MMIOIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayskern: pci: Support lookups via programming ifaceIan Moffett
Introduce programming interface based lookups for devices with different kinds of interfaces Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayskern: pci: Get programming interface from deviceIan Moffett
Some devices are identified by very specific programming interfaces, therefore this is important to have. Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayskern: pci: Use LU types instead of classrev fieldIan Moffett
Instead of using bitfields to say which kind identification we are doing, it is a better idea to just use the lookup type directly as it is more scalable Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayskern: proc: Remove redundant flag setIan Moffett
The PROC_EXITING flag is already set within the MI layer of the process management core Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayskern: proc: Add process lookups by PIDIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayskern: mac: Document the MAC border tableIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayskern: Bump version up to v0.0.4Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayskern/amd64: proc: Mark process as exiting on killIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayskern: proc: Documented rest of structure fieldsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 daysconf: Beautify default boot w/ console + log tweakIan Moffett
- Do not dump memory map by default - Use a gruvbox style theme for the console Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskern: cons: Implement console backspaceIan Moffett
Backspace is implemented by moving the text and cursor position back and overwriting the old characters with a '*' blending into the background. Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskern: proc: Add getargv system callIan Moffett
Introduce a getargv system call that allows one to fetch an argument string using an index into the argument vector. Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskern: systm: Add copyoutstr()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskern: proc: Add initial penv block supportIan Moffett
This commit introduces the initial support for the process environment block and implements argv and argc. Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskern: conf: Make default fg/bg configurableIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskern/amd64: Attempt to dequeue on a cores first goIan Moffett
When a CPU core first starts up, it has no proceses to assign to itself. This commit ensures that the processor will right away start trying to find tasks to grab from its runqueue. Signed-off-by: Ian Moffett <ian@osmora.org>