diff options
author | Josh Rahm <joshuarahm@gmail.com> | 2020-11-25 16:53:24 -0700 |
---|---|---|
committer | Josh Rahm <joshuarahm@gmail.com> | 2020-11-25 16:53:24 -0700 |
commit | ee89199793683b3120a55f1c1887e12333c5ea7e (patch) | |
tree | 2996b7645b6ab727bd9c6ee7f7062626d3ff7023 /include/user/init.h | |
parent | 6d22b0dfc7761a605758552d5824f8039ac5a00f (diff) | |
download | stm32l4-ee89199793683b3120a55f1c1887e12333c5ea7e.tar.gz stm32l4-ee89199793683b3120a55f1c1887e12333c5ea7e.tar.bz2 stm32l4-ee89199793683b3120a55f1c1887e12333c5ea7e.zip |
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.
Diffstat (limited to 'include/user/init.h')
-rw-r--r-- | include/user/init.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 |