From ee89199793683b3120a55f1c1887e12333c5ea7e Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Wed, 25 Nov 2020 16:53:24 -0700 Subject: Add ability to jump to a usermode init routine. This routine will has a newly allocated stack. I found out that when using the st-flash utility it likes to reset the device with the IPSR in HARD FAULT mode (?) so I have to manually hit the reset button to get it to work. --- include/user/init.h | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 include/user/init.h (limited to 'include/user/init.h') diff --git a/include/user/init.h b/include/user/init.h new file mode 100644 index 0000000..a55d5d1 --- /dev/null +++ b/include/user/init.h @@ -0,0 +1,6 @@ +#ifndef USER_INIT_H_ +#define USER_INIT_H_ + +void usermode_start(); + +#endif -- cgit