mirror of
https://github.com/RGBCube/serenity
synced 2025-07-08 20:27:35 +00:00
![]() This reuses the existing `RPi::Mailbox` interface to read the command line via a VideoCore-specific mailbox message. This will have to be replaced if that interface starts being smarter, as this is needed very early, and nothing guarantees that a smarter Mailbox interface wouldn't need to allocate or log, which is a no-no during early boot. As the response string can be arbitrarily long, it's the caller's job to provide a long enough buffer for `Mailbox::query_kernel_command_line`. This commit chose 512 bytes, as it provides a large enough headroom over the 150-200 characters implicitly added by the VC firmware. The portable way would be to parse the `/chosen/bootargs` property of the device tree, but we currently lack the scaffolding for doing that. Support for this in QEMU relies on a patch that has not yet been accepted upstream, but is available via our `Toolchain/BuildQEMU.sh` script. It should, however, work on bare metal. Tested-By: Timon Kruiper <timonkruiper@gmail.com> |
||
---|---|---|
.. | ||
RPi | ||
ASM_wrapper.h | ||
boot.S | ||
BootPPMParser.cpp | ||
BootPPMParser.h | ||
CPU.h | ||
CPUID.cpp | ||
CPUID.h | ||
CurrentTime.cpp | ||
Dummy.cpp | ||
Exceptions.cpp | ||
InterruptManagement.cpp | ||
InterruptManagement.h | ||
Interrupts.cpp | ||
IRQController.h | ||
kprintf.cpp | ||
linker.ld | ||
MainIdRegister.cpp | ||
MainIdRegister.h | ||
mcontext.h | ||
MMU.cpp | ||
PageDirectory.cpp | ||
PageDirectory.h | ||
Panic.cpp | ||
pre_init.cpp | ||
Processor.cpp | ||
Processor.h | ||
Registers.h | ||
RegisterState.h | ||
SafeMem.cpp | ||
SerenityLogoRGB.ppm | ||
SmapDisabler.cpp | ||
ThreadRegisters.h | ||
TrapFrame.cpp | ||
TrapFrame.h | ||
vector_table.S |