diff options
author | Nathan Ringo <nathan@remexre.com> | 2024-02-25 01:18:10 -0600 |
---|---|---|
committer | Nathan Ringo <nathan@remexre.com> | 2024-02-25 10:59:35 -0600 |
commit | 178cb5bb0755064a0824b1b3d564260db412ea92 (patch) | |
tree | c9917506abe9d2b9910f01a383b9320513a69c53 /boards | |
parent | c8de43bf43242c4ebac3d0ecb8e7951fe2371506 (diff) |
[console] Adds the start of a console subsystem to handle kernel logs.
The idea is that this is an output-only facility that log messages from
the log crate are written to. It has a small buffer, and relies on a log
destination regularly reading from the buffer.
In the next commit, platform-specific code will be able to provide a
"strict flush" routine, which runs after every write to the buffer and
drains the buffer. This is mainly to help kernel development, where it's
not assured that the kernel will even get as far in boot as initializing
its allocator.
Eventually, there will be a console fd that userspace can request, wait
on, and read from.
Diffstat (limited to 'boards')
-rw-r--r-- | boards/qemu-virt/qemu-virt.s | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/boards/qemu-virt/qemu-virt.s b/boards/qemu-virt/qemu-virt.s index 4813b57..4628564 100644 --- a/boards/qemu-virt/qemu-virt.s +++ b/boards/qemu-virt/qemu-virt.s @@ -10,6 +10,9 @@ _start: # Set up hart0's stack. la sp, hart0_initial_stack_top + + # Call hart0_boot with the address of the DeviceTree. + c.mv a1, a0 call hart0_boot # Fall through to a spin loop. |