Age | Commit message (Collapse) | Author |
|
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>
|
|
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>
|
|
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>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
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>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
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>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Introduce the 'hw.machine' sysctl variable to represent the current
machine architecture.
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
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>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
This commit puts the true hostname of the machine in the OSH prompt
using gethostname()
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
This commit adds the POSIX gethostname() and sethostname() functions to
the Hyra C library.
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
This commit introduces the 'kern.hostname' sysctl variable to store the
machines hostname.
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
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>
|
|
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>
|
|
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>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
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>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
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>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
This commit introduces an initial implementation of the POSIX getopt()
argument parser.
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
|
|
A backtrace usually occurs during critcal system events like panics.
When the system in a error state, we cannot trust the correctness of the
stack. This commit aims to improve checks done in a731d4e by adding a
max frame depth that limits how many frames can be walked.
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Improve handling within the stacktrace logic used during system panics
and critical events.
- Perform checks on 'rbp' *before* logging
- Ensure RBP is 8-byte aligned
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Improve handling within the stacktrace logic used during system panics
and critical events.
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Introduce new SHAPE_SQUARE_BORDER shape type to draw unfilled (bordered)
squares.
Signed-off-by: Ian Moffett <ian@osmora.org>
|