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
179 B
ArmAsm
13 lines
179 B
ArmAsm
.global main
|
|
main:
|
|
/* 1 + 2 == 3 */
|
|
mov x0, #1
|
|
/* test-gdb-op1 */
|
|
add x1, x0, #2
|
|
/* test-gdb-result */
|
|
cmp x1, #3
|
|
beq 1f
|
|
bl assert_fail
|
|
1:
|
|
ret
|