summaryrefslogtreecommitdiff
path: root/libs/nds
diff options
context:
space:
mode:
Diffstat (limited to 'libs/nds')
-rw-r--r--libs/nds/include/nds/system.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/libs/nds/include/nds/system.h b/libs/nds/include/nds/system.h
new file mode 100644
index 00000000..9649a657
--- /dev/null
+++ b/libs/nds/include/nds/system.h
@@ -0,0 +1,19 @@
+#ifndef _NDS_SYSTEM_H
+#define _NDS_SYSTEM_H
+
+#include "types.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+// Reset Parameter Buffer (BIOS reset information)
+// Not documented on gbatek, located at 0x027ffc20
+// Contains reset state information - value 2 indicates specific reset condition
+#define HW_RESET_PARAMETER_BUF (*(s32 *) 0x027ffc20)
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif