arch/arm: Fixup formatting to match arch/i386

This commit is contained in:
Aaron Lindsay 2012-12-17 00:36:25 -05:00
bovenliggende c51062ce87
commit ed52a8af5c
2 gewijzigde bestanden met toevoegingen van 21 en 11 verwijderingen

Bestand weergeven

@ -2,8 +2,11 @@ ENTRY (start)
SECTIONS
{
. = 0x80100000;
.text : { *(.text*) *(.rodata*) }
. = 0xc0100000;
kernel_start = .;
.text : {
*(.text*) *(.rodata*)
}
.init : {
early_initcalls_start = .;
*(.earlyinitcalls*)
@ -12,8 +15,13 @@ SECTIONS
*(.driversubsysinitcalls*)
*(.deviceinitcalls*)
initcalls_end = .;
*(.init*)
}
.data : {
*(.data*)
}
.bss : {
*(.bss*) *(COMMON*)
}
.data : { *(.data*) }
.bss : { *(.bss*) *(COMMON*) }
kernel_end = .;
}

Bestand weergeven

@ -18,6 +18,8 @@
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#define STACK_SIZE 0x4000 /* 16k */
/*
* Kernel entry in assembly. This handles relocating the kernel so that it is
* in both physical and virtual memory where we want it to be. We copy the
@ -27,7 +29,7 @@
* function in C using the address it is linked against. When the MMU gets
* initialized fully later, it will remove the initial 1:1 mapping.
*/
.globl start
.global start
start:
str r1, machine_type /* Backup atags/machine type registers so we can access them later from C */
str r2, atags_ptr
@ -37,7 +39,7 @@ copy_kernel_lr: /* Used to calculate address at which kernel is currently loaded
bl setup_mmu
ldr sp, =stack+0x10000 /* Set up the stack */
ldr sp, =stack+STACK_SIZE /* Set up the stack */
bl main
1:
@ -174,17 +176,17 @@ tt_base_align:
.word 0b111111111111111 /* 16k - 1 */
tt_section_align:
.word 0b11111111111111111111 /* 1mb - 1 */
.globl tt_base_virtual
.global tt_base_virtual
tt_base_virtual:
.word 0
.globl tt_base_physical
.global tt_base_physical
tt_base_physical:
.word 0
.globl atags_ptr
.global atags_ptr
atags_ptr:
.word 0
.globl machine_type
.global machine_type
machine_type:
.word 0
.comm stack, 0x10000 /* Reserve 64k for the stack in .bss */
.lcomm stack, STACK_SIZE /* Reserve space for the stack in .bss */