.section ".text" /* * sort out different calling conventions */ .align start: .type start,#function .rept 8 mov r0, r0 .endr b 1f .word 0x016f2818 @ Magic numbers to help the loader user_stack: .space 4000 end_user_stack: 1: adr r2, end_user_stack mov sp,r2 mov fp,#0 ldr r4,end_data ldr r5,end_bss 1: cmp r4,r5 strcc fp,[r4],#4 bcc 1b b start_kernel end_data: .word _edata end_bss: .word _end .align