summaryrefslogtreecommitdiff
path: root/include/nitro/OS_context_shared.h
blob: 3ec722ebad75f5295484a3f2a4cb1e13287939c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef GUARD_OS_CONTEXT_SHARED_H
#define GUARD_OS_CONTEXT_SHARED_H

#include "nitro/types.h"

typedef struct CPContext {
    u64 div_numer;
    u64 div_denom;
    u64 sqrt;
    u16 div_mode;
    u16 sqrt_mode;
} CPContext;

typedef struct OSContext
{
    u32 cpsr;
    u32 r[13];
    u32 sp;
    u32 lr;
    u32 pc_plus4;
    u32 sp_svc;
    CPContext cp_context;
} OSContext;

#endif