summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
20 hourslib: libc: Add "rb" mode for fopen()exptIan Moffett
This commit adds the "rb" mode for compatibility purposes. It is mapped to the same file seal as "r". Signed-off-by: Ian Moffett <ian@osmora.org>
20 hourslib: libc: Add isascii() in ctype.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
25 hourskernel/amd64: Introduce flexible IPI managementmainIan Moffett
This commit greatly improves the handling of how inter-processor interrupts are allocated and managed. Previously Hyra used handlers at fixed interrupt vectors for IPIs, however, that is very rigid and not very scalable at all. With the new IPI framework, one may allocate IPIs by calling 'md_ipi_alloc()' and initializing the handler field. To send an IPI to a specific processor, one can use cpu_ipi_send() and pass the specific CPU structure as well as the IPI identifier. Signed-off-by: Ian Moffett <ian@osmora.org>
30 hourskernel: xhci: Add USBSTS_CNR definitionIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
30 hoursdocs: readme: Fixup maintainers list + new entriesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
30 hoursdocs: readme: Add maintainers list and TODOIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2 dayskernel: xhci: Wait until xHC is ready in resetIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2 dayskernel: xhci: Ensure portno is valid for portscIan Moffett
In the previous implementation, passing 0 or values higher than 'hc->maxports' would not be filtered and would result in underflow/overflow Signed-off-by: Ian Moffett <ian@osmora.org>
2 dayskernel: xhci: Add xhci_stop_hc() to stop the xHCIan Moffett
Implement a new xhci_stop_hc() an call it before we perform a reset. We cannot be certain that the firmware (e.g., UEFI, BIOS) took the care to stop the xHCI before passing control over to us. Signed-off-by: Ian Moffett <ian@osmora.org>
2 dayskernel: xhci: Fake success if already runningIan Moffett
Do not return an error in xhci_start_hc() if it is already running as it complicates things. Signed-off-by: Ian Moffett <ian@osmora.org>
2 dayskernel: xhci: Log reset timeoutsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2 dayskernel: xhci: Fix zeroing of NULL pageIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2 dayskernel: xhci: Do not offset segment table baseIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2 dayskernel: xhci: Fix off-by-one bugIan Moffett
The DCBAA has indexing that starts at zero so 1 must be added to make it correct. Signed-off-by: Ian Moffett <ian@osmora.org>
2 dayslib: libc: Add POSIX symlink stubsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2 dayslib: libc: Add POSIX getwd() stubIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2 dayslib: libc: Add POSIX getcwd() stubIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2 dayslib: libc: Add POSIX dup stubsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2 dayslib: libc: Add POSIX unlinkat() stubIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2 dayslib: libc: Add POSIX unlink() stubIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2 dayslib: libc: Add POSIX fork() stubIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2 dayskernel: acpi: Add GAS I/O access definitionsIan Moffett
This commit adds ACPI address space ID (not to be confused with virtual memory ASIDs) definitions as well as ones describing various access sizes. Signed-off-by: Ian Moffett <ian@osmora.org>
2 dayskernel: acpi: Add handling of GPEs and notifyIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 daysusr: sysctl: Add parsing for 'hw.machine'Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel: sysctl: Add 'hw.machine' variableIan Moffett
Introduce the 'hw.machine' sysctl variable to represent the current machine architecture. Signed-off-by: Ian Moffett <ian@osmora.org>
4 daysusr.sbin: init: Refactor init_hostname()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 daysusr.bin: sysctl: Remove extra newlineIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel: descrip: Fix byte count on read()Ian Moffett
Byte count returned must be the number of bytes read() which may be less than the number of bytes actually requested. Signed-off-by: Ian Moffett <ian@osmora.org>
4 daysusr.bin: sysctl: Support non 'kern.*' variablesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 daysusr.bin: fetch: Remove unused globalIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel: sysctl: Report 'hw.*' variablesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 daysusr.sbin: init: Add basic loggingIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 daysusr.bin: osh: Add true hostname to promptIan Moffett
This commit puts the true hostname of the machine in the OSH prompt using gethostname() Signed-off-by: Ian Moffett <ian@osmora.org>
4 daysusr.sbin: init: Set hostname to /etc/hostnameIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel: sysctl: Set 'oldlenp' to NULL if neededIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayslib: libc: Implement gethostname() + sethostname()Ian Moffett
This commit adds the POSIX gethostname() and sethostname() functions to the Hyra C library. Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel: sysctl: Add 'kern.hostname' varIan Moffett
This commit introduces the 'kern.hostname' sysctl variable to store the machines hostname. Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel: Do not blacklist AHCIIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel: sysctl: Allow 'old*' fields to be NULLIan Moffett
When setting sysctl variables from userspace, the 'old' fields will unused and thus typically be set to NULL. This commit modifies the behaviour of do_sysctl() to enable this. Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel: sysctl: Be sure to set 'newlen' in argsIan Moffett
Since we are approaching the point to where we'll need to set sysctl variables from userspace. It would be a wise idea to actually set the length of the new data. Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel: sysctl: Add sysctl_clearstr()Ian Moffett
Introduce the sysctl_clearstr() function to clear string variables that aren't readonly to a known state. Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayslib: libc: Fix syntax issue in ctype.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 daysproject: Bump version to 2.6Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 daysusr: fetch: Add CPU brand informationIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 daysusr.bin: Add 'sysctl' programIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayslib: libc: Add sysctl()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel: vcache: Include '\0' in sysctl stringIan Moffett
The strlen() function does not count the null terminator when measuring the length of the string and therefore a value of 1 must be added to do so. Signed-off-by: Ian Moffett <ian@osmora.org>
5 daysman: cat(1): Add description of flagsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 daysusr.bin: cat: Add the '-n' and '-b' flagsIan Moffett
Introduce two new flags for cat(1) '-n': number all lines '-b': number only non-blank lines Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayslib: libc: Set 'optind' to initial value of 1Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>