mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
gem5 semihosting
This commit is contained in:
10
baremetal/arch/aarch64/no_bootloader/semihost_exit.S
Normal file
10
baremetal/arch/aarch64/no_bootloader/semihost_exit.S
Normal file
@@ -0,0 +1,10 @@
|
||||
.global mystart
|
||||
mystart:
|
||||
mov x1, #0x26
|
||||
movk x1, #2, lsl #16
|
||||
str x1, [sp,#0]
|
||||
mov x0, #0
|
||||
str x0, [sp,#8]
|
||||
mov x1, sp
|
||||
mov w0, #0x18
|
||||
hlt 0xf000
|
||||
1
baremetal/interactive/README.adoc
Normal file
1
baremetal/interactive/README.adoc
Normal file
@@ -0,0 +1 @@
|
||||
This folder contains examples that are not very testable: either are supposed to return 0, or are interactive, etc.
|
||||
6
baremetal/interactive/exit1.c
Normal file
6
baremetal/interactive/exit1.c
Normal file
@@ -0,0 +1,6 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
void main(void) {
|
||||
exit(1);
|
||||
}
|
||||
Reference in New Issue
Block a user