mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
gem5 baremetal: use m5exit m5op in exit() so as to not force users to apply a patch for almost all examples
13 lines
181 B
ArmAsm
13 lines
181 B
ArmAsm
.global main
|
|
main:
|
|
/* 1 + 2 == 3 */
|
|
mov r0, #1
|
|
/* test-gdb-op1 */
|
|
add r1, r0, #2
|
|
/* test-gdb-result */
|
|
cmp r1, #3
|
|
beq 1f
|
|
bl assert_fail
|
|
1:
|
|
bx lr
|