From 7eb87bf3f3fa6226657a7106eb255cbfa97758d2 Mon Sep 17 00:00:00 2001 From: Miguel Date: Mon, 3 Sep 2018 15:18:16 +0200 Subject: big renaming --- asm/asm_usermode.h | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 asm/asm_usermode.h (limited to 'asm/asm_usermode.h') diff --git a/asm/asm_usermode.h b/asm/asm_usermode.h new file mode 100644 index 0000000..16597f2 --- /dev/null +++ b/asm/asm_usermode.h @@ -0,0 +1,8 @@ +/** + * @file + * Switch to User Mode and iret to function given by pointer + * provide the address of a void func() that will be called without + * any params via iret. + */ + +void asm_usermode(uint32_t func); -- cgit v1.2.3