aboutsummaryrefslogtreecommitdiff
path: root/src/boot/kernel_stage2.ld
diff options
context:
space:
mode:
authorvetch <vetch97@gmail.com>2020-01-13 12:40:38 +0100
committervetch <vetch97@gmail.com>2020-01-13 12:40:38 +0100
commit1af7591e37d09ddcd734ea07d0e999cf61c8bc5e (patch)
treea56c73c9eddeb148baffc3a31bf50edbbeb31074 /src/boot/kernel_stage2.ld
parent300cf770698142b636da867b7e04bf2d6ae9baa4 (diff)
downloadrpi-MMU-example-1af7591e37d09ddcd734ea07d0e999cf61c8bc5e.tar.gz
rpi-MMU-example-1af7591e37d09ddcd734ea07d0e999cf61c8bc5e.zip
Great Reorganisation, modify structure and makefile
Diffstat (limited to 'src/boot/kernel_stage2.ld')
-rw-r--r--src/boot/kernel_stage2.ld80
1 files changed, 0 insertions, 80 deletions
diff --git a/src/boot/kernel_stage2.ld b/src/boot/kernel_stage2.ld
deleted file mode 100644
index 9411ca2..0000000
--- a/src/boot/kernel_stage2.ld
+++ /dev/null
@@ -1,80 +0,0 @@
-/* This sesond stage of the kernel is run from address 0x0 */
-
-TRANSLATION_TABLE_SIZE = 4096 * 4;
-SECTIONS_LIST_SIZE = 4096 * 8;
-MMU_SECTION_SIZE = 1 << 20;
-
-SECTIONS
-{
-
- . = 0x0;
-
- __start = .;
- .interrupt_vector :
- {
- KEEP(interrupt_vector.o)
- }
- . = ALIGN(4);
- .embedded_ramfs :
- {
- ramfs_embeddable.o
- }
- .rest_of_kernel :
- {
- *(.text)
- *(.data)
- *(.rodata)
- *(.bss)
- *(/COMMON/)
- *(*)
- }
- __end = .;
-
- . = ALIGN(1 << 14);
-
- .translation_table (NOLOAD) :
- {
- _translation_table_start = .;
-
- . = . + TRANSLATION_TABLE_SIZE;
-
- _translation_table_end = .;
- }
-
- .sections_list (NOLOAD) :
- {
- _sections_list_start = .;
-
- . = . + SECTIONS_LIST_SIZE;
-
- _sections_list_end = .;
- }
-
- . = ALIGN(1 << 20);
- . = . + MMU_SECTION_SIZE;
-
- .stack (NOLOAD) :
- {
- _stack_start = .;
-
- _fiq_stack_start = .;
-
- . = . + (1 << 18);
-
- _fiq_stack_top = .;
-
- _irq_stack_start = .;
-
- . = . + (1 << 18);
-
- _irq_stack_top = .;
-
- _supervisor_stack_start = .;
-
- . = . + (1 << 19);
-
- _supervisor_stack_top = .;
-
- _stack_end = .;
- }
-}