From fc177ec7c3976d54b24ef480a29b301ef26e7073 Mon Sep 17 00:00:00 2001 From: red031000 Date: Sun, 17 May 2020 17:43:10 +0100 Subject: fill out _OSThread --- arm9/lib/include/OS_context.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 arm9/lib/include/OS_context.h (limited to 'arm9/lib/include/OS_context.h') diff --git a/arm9/lib/include/OS_context.h b/arm9/lib/include/OS_context.h new file mode 100644 index 00000000..c0ab62f1 --- /dev/null +++ b/arm9/lib/include/OS_context.h @@ -0,0 +1,22 @@ +// +// Created by red031000 on 2020-05-17. +// + +#ifndef POKEDIAMOND_OS_CONTEXT_H +#define POKEDIAMOND_OS_CONTEXT_H + +#include "types.h" +#include "CP_context.h" + +typedef struct OSContext +{ + u32 cpsr; + u32 r[13]; + u32 sp; + u32 lr; + u32 pc_plus4; + u32 sp_svc; + CPContext cp_context; +} OSContext; + +#endif //POKEDIAMOND_OS_CONTEXT_H -- cgit v1.2.3