diff options
author | Wojtek Kosior <kwojtus@protonmail.com> | 2019-12-26 19:06:18 +0100 |
---|---|---|
committer | Wojtek Kosior <kwojtus@protonmail.com> | 2019-12-26 19:06:18 +0100 |
commit | d9ac897bd8aa7a8b6471bca1eb8a2bd314fdb133 (patch) | |
tree | 647ea237239c632bcf56b054cb4672e80ef641e4 | |
parent | 4d3cd9bd400b3d07d752d60ce2b3c425a53b72d6 (diff) | |
download | rpi-MMU-example-d9ac897bd8aa7a8b6471bca1eb8a2bd314fdb133.tar.gz rpi-MMU-example-d9ac897bd8aa7a8b6471bca1eb8a2bd314fdb133.zip |
minor changes (comments, whitespace)
-rw-r--r-- | linker.ld | 19 |
1 files changed, 9 insertions, 10 deletions
@@ -2,16 +2,17 @@ ENTRY(_boot) /* defined in boot.S; qemu needs it to run elf file */ SECTIONS { - /* Starts at 0x8000 - that's where RPis in 32-bit mode load kernel at. */ - /* My experiments do, however, show, that qemu emulating RPi2 */ - /* loads the kernel at 0x10000! (took some pain to find out). */ - /* rpi-open-firmware, on the other hand, loads kernel at 0x2000000! */ + /* Starts at 0x8000 - that's where RPis in 32-bit mode load */ + /* kernel at. My experiments do, however, show, that qemu */ + /* emulating RPi2 loads the kernel at 0x10000! (took some pain */ + /* to find out). rpi-open-firmware, on the other hand, loads */ + /* kernel at 0x2000000! */ /* This is not really a problem, since: */ - /* 1. We can use out bootloader to load the kernel at 0x8000 */ - /* 2. We compile kernel with -fPIC, so it should be able to work with */ - /* any load addr. + /* 1. We can use our bootloader to load the kernel at 0x8000 */ + /* 2. We compile kernel with -fPIC, so it should be able to */ + /* work with any load addr. */ /* 3. In qemu, we can load kernel.elf instead of raw binary */ - /* (qemu will do the loading then) */ + /* (qemu will do the right thing then) */ . = 0x8000; @@ -38,7 +39,6 @@ SECTIONS __libkernel_size = __libkernel_end - __libkernel_start; - .interrupts : { __interrupts_start = .; @@ -47,7 +47,6 @@ SECTIONS interrupts.o __interrupts_end = .; } - __interrupts_size = __interrupts_end - __interrupts_start; __end = .; |