mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
userland: freestanding gem5 checkpoint restore examples
This commit is contained in:
11
userland/freestanding/gem5_checkpoint_restore.S
Normal file
11
userland/freestanding/gem5_checkpoint_restore.S
Normal file
@@ -0,0 +1,11 @@
|
||||
/* https://cirosantilli.com/linux-kernel-module-cheat#gem5-checkpoint-userland-minimal-example */
|
||||
|
||||
#define LKMC_M5OPS_ENABLE 1
|
||||
#include "lkmc/m5ops.h"
|
||||
|
||||
.text
|
||||
.global _start
|
||||
_start:
|
||||
asm_main_after_prologue:
|
||||
LKMC_M5OPS_CHECKPOINT_ASM
|
||||
LKMC_M5OPS_EXIT_ASM
|
||||
10
userland/freestanding/gem5_exit.S
Normal file
10
userland/freestanding/gem5_exit.S
Normal file
@@ -0,0 +1,10 @@
|
||||
/* https://cirosantilli.com/linux-kernel-module-cheat#benchmark-emulators-on-userland-executables */
|
||||
|
||||
#define LKMC_M5OPS_ENABLE 1
|
||||
#include "lkmc/m5ops.h"
|
||||
|
||||
.text
|
||||
.global _start
|
||||
_start:
|
||||
asm_main_after_prologue:
|
||||
LKMC_M5OPS_EXIT_ASM
|
||||
Reference in New Issue
Block a user