mirror of
https://github.com/reactos/reactos.git
synced 2024-11-18 21:13:52 +00:00
52 lines
1.2 KiB
ArmAsm
52 lines
1.2 KiB
ArmAsm
/*
|
|
* PROJECT: ReactOS Kernel
|
|
* LICENSE: BSD - See COPYING.ARM in the top level directory
|
|
* FILE: ntoskrnl/ke/arm/boot.s
|
|
* PURPOSE: Implements the kernel entry point for ARM machines
|
|
* PROGRAMMERS: ReactOS Portable Systems Group
|
|
*/
|
|
|
|
#include <ksarm.h>
|
|
|
|
TEXTAREA
|
|
|
|
IMPORT KiInitializeSystem
|
|
|
|
NESTED_ENTRY KiSystemStartup
|
|
PROLOG_END KiSystemStartup
|
|
|
|
/* Put us in FIQ mode, set IRQ stack */
|
|
b .
|
|
mrs r3, cpsr
|
|
orr r3, r1, #CPSRM_FIQ
|
|
//msr cpsr, r3
|
|
msr cpsr_fc, r3
|
|
ldr sp, [a1, #LpbKernelStack]
|
|
|
|
/* Repeat for IRQ mode */
|
|
mov r3, #CPSRM_INT
|
|
msr cpsr_c, r3
|
|
ldr sp, [a1, #LpbKernelStack]
|
|
|
|
/* Put us in ABORT mode and set the panic stack */
|
|
mov r3, #CPSRM_ABT
|
|
msr cpsr_c, r3
|
|
ldr sp, [a1, #LpbKernelStack]
|
|
|
|
/* Repeat for UDF (Undefined) mode */
|
|
mov r3, #CPSRM_UDF
|
|
msr cpsr_c, r3
|
|
ldr sp, [a1, #LpbKernelStack]
|
|
|
|
/* Put us into SVC (Supervisor) mode and set the kernel stack */
|
|
mov r3, #CPSRM_SVC
|
|
msr cpsr_c, r3
|
|
ldr sp, [a1, #LpbKernelStack]
|
|
|
|
/* Go to C code */
|
|
b KiInitializeSystem
|
|
|
|
NESTED_END KiSystemStartup
|
|
|
|
END
|
|
/* EOF */
|