summaryrefslogtreecommitdiff
path: root/arm9/lib/include
diff options
context:
space:
mode:
authorred031000 <rubenru09@aol.com>2020-05-29 19:19:23 +0100
committerred031000 <rubenru09@aol.com>2020-05-29 19:19:23 +0100
commit8a350c7fbc6eada528d98849b560d1f67a0a0503 (patch)
tree95ec04e11fb033c18eada6276acf1036a6879367 /arm9/lib/include
parenta95d56466d4e3009c8efa73f6fe3bd2354d301e0 (diff)
parente6c0d16a679663e816130ca7bc793cab682f911c (diff)
Merge branch 'master' of https://github.com/martmists/pokediamond
Diffstat (limited to 'arm9/lib/include')
-rw-r--r--arm9/lib/include/OS_reset.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arm9/lib/include/OS_reset.h b/arm9/lib/include/OS_reset.h
index 4f0b80a9..1efc3f2d 100644
--- a/arm9/lib/include/OS_reset.h
+++ b/arm9/lib/include/OS_reset.h
@@ -19,4 +19,9 @@ void OS_ResetSystem(u32 parameter);
void OSi_DoBoot(void);
static void OSi_CpuClear32(register u32 data, register void *destp, register u32 size);
+static inline u32 OS_GetResetParameter(void)
+{
+ return (u32)*(u32 *)HW_RESET_PARAMETER_BUF;
+}
+
#endif //POKEDIAMOND_OS_RESET_H