libsel4: unify seL4 type definitions
Signed-off-by: Axel Heider <axelheider@gmx.de>
This commit is contained in:
parent
7afebd31ee
commit
e4256d48fa
7 changed files with 6 additions and 27 deletions
|
|
@ -12,16 +12,11 @@
|
|||
#include <sel4/simple_types.h>
|
||||
#include <sel4/sel4_arch/types.h>
|
||||
|
||||
typedef seL4_Word seL4_CPtr;
|
||||
|
||||
typedef seL4_CPtr seL4_RISCV_Page;
|
||||
typedef seL4_CPtr seL4_RISCV_PageTable;
|
||||
typedef seL4_CPtr seL4_RISCV_ASIDControl;
|
||||
typedef seL4_CPtr seL4_RISCV_ASIDPool;
|
||||
|
||||
typedef seL4_Word seL4_NodeId;
|
||||
typedef seL4_Word seL4_PAddr;
|
||||
typedef seL4_Word seL4_Domain;
|
||||
|
||||
#define seL4_EndpointBits 4
|
||||
/* User context as used by seL4_TCB_ReadRegisters / seL4_TCB_WriteRegisters */
|
||||
|
|
|
|||
|
|
@ -119,6 +119,8 @@ typedef seL4_Uint64 seL4_Word;
|
|||
#error missing definition for SEL4_WORD type
|
||||
#endif
|
||||
|
||||
typedef seL4_Word seL4_CPtr;
|
||||
|
||||
/* sanity check that the seL4_Word matches the definitions of the constants */
|
||||
#include <sel4/sel4_arch/constants.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -28,6 +28,10 @@
|
|||
# define seL4_UntypedRetypeMaxObjects 256
|
||||
#endif
|
||||
|
||||
typedef seL4_Word seL4_NodeId;
|
||||
typedef seL4_Word seL4_PAddr;
|
||||
typedef seL4_Word seL4_Domain;
|
||||
|
||||
typedef seL4_CPtr seL4_CNode;
|
||||
typedef seL4_CPtr seL4_IRQHandler;
|
||||
typedef seL4_CPtr seL4_IRQControl;
|
||||
|
|
|
|||
|
|
@ -8,11 +8,6 @@
|
|||
|
||||
#include <sel4/simple_types.h>
|
||||
|
||||
typedef seL4_Word seL4_CPtr;
|
||||
typedef seL4_Word seL4_NodeId;
|
||||
typedef seL4_Word seL4_PAddr;
|
||||
typedef seL4_Word seL4_Domain;
|
||||
|
||||
typedef struct seL4_UserContext_ {
|
||||
/* frame registers */
|
||||
seL4_Word pc, sp, cpsr, r0, r1, r8, r9, r10, r11, r12;
|
||||
|
|
|
|||
|
|
@ -8,11 +8,6 @@
|
|||
|
||||
#include <sel4/simple_types.h>
|
||||
|
||||
typedef seL4_Word seL4_CPtr;
|
||||
typedef seL4_Word seL4_NodeId;
|
||||
typedef seL4_Word seL4_PAddr;
|
||||
typedef seL4_Word seL4_Domain;
|
||||
|
||||
typedef seL4_CPtr seL4_ARM_PageUpperDirectory;
|
||||
typedef seL4_CPtr seL4_ARM_PageGlobalDirectory;
|
||||
/* whether the VSpace refers to a PageUpperDirectory or PageGlobalDirectory directly
|
||||
|
|
|
|||
|
|
@ -9,12 +9,6 @@
|
|||
#include <autoconf.h>
|
||||
#include <sel4/simple_types.h>
|
||||
|
||||
typedef seL4_Word seL4_NodeId;
|
||||
typedef seL4_Word seL4_PAddr;
|
||||
typedef seL4_Word seL4_Domain;
|
||||
|
||||
typedef seL4_Word seL4_CPtr;
|
||||
|
||||
/* User context as used by seL4_TCB_ReadRegisters / seL4_TCB_WriteRegisters */
|
||||
typedef struct seL4_UserContext_ {
|
||||
/* frameRegisters */
|
||||
|
|
|
|||
|
|
@ -9,12 +9,6 @@
|
|||
#include <autoconf.h>
|
||||
#include <sel4/simple_types.h>
|
||||
|
||||
typedef seL4_Word seL4_NodeId;
|
||||
typedef seL4_Word seL4_PAddr;
|
||||
typedef seL4_Word seL4_Domain;
|
||||
|
||||
typedef seL4_Word seL4_CPtr;
|
||||
|
||||
typedef seL4_CPtr seL4_X64_PML4;
|
||||
|
||||
/* User context as used by seL4_TCB_ReadRegisters / seL4_TCB_WriteRegisters */
|
||||
|
|
|
|||
Loading…
Reference in a new issue