diff options
| author | Miquel Sabaté Solà <mikisabate@gmail.com> | 2024-12-03 07:47:56 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <mikisabate@gmail.com> | 2024-12-03 07:47:56 +0100 |
| commit | 4ab2ce3fb0e6b8085742c734a8f5437db5979046 (patch) | |
| tree | ed1312f2b0e75fb5f4a4d1aea9c862616dbde41a /kernel/head.S | |
| parent | 58fcecc381be82992f718a6ef9bf7ddcd3bca369 (diff) | |
| download | fbos-4ab2ce3fb0e6b8085742c734a8f5437db5979046.tar.gz fbos-4ab2ce3fb0e6b8085742c734a8f5437db5979046.zip | |
Simplify how we fetch the load address
Similarly to 58fcecc381be ("Simplify the constant on the size of the
stack"), the base and offset load addresses where taken from the Linux
kernel, which has to account for way more stuff than this poor kernel.
Hence, let's be more explicit about the base address and the offset
where the kernel will be located, so it's actually more clear both on
the linker, and on the kernel's header.
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'kernel/head.S')
| -rw-r--r-- | kernel/head.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/head.S b/kernel/head.S index ac69967..74f83d8 100644 --- a/kernel/head.S +++ b/kernel/head.S @@ -27,9 +27,9 @@ _start: // Ensure alignment for the next double word. .balign 8 - // Load offset. Note that this matches the PAGE_OFFSET as defined in + // Load offset. Note that this matches the LOAD_BASE_OFFSET as defined in // `include/mm.h`. - .dword 0x200000 + .dword LOAD_BASE_OFFSET // Size of the image. This is *mandatory* as per bootloader request. .dword _end - _start |
