[mammoth] Create a method for getting initial caps.
This commit is contained in:
parent
4c936623b5
commit
528723e490
15 changed files with 108 additions and 22 deletions
11
lib/mammoth/include/mammoth/init.h
Normal file
11
lib/mammoth/include/mammoth/init.h
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
#include <zerrors.h>
|
||||
|
||||
extern uint64_t gSelfProcCap;
|
||||
extern uint64_t gSelfVmasCap;
|
||||
|
||||
extern uint64_t gBootDenaliVmmoCap;
|
||||
|
||||
z_err_t ParseInitPort(uint64_t init_port_cap);
|
||||
14
lib/mammoth/include/mammoth/port.h
Normal file
14
lib/mammoth/include/mammoth/port.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
#include <zerrors.h>
|
||||
|
||||
class Port {
|
||||
public:
|
||||
Port(uint64_t port_cap);
|
||||
|
||||
z_err_t PollForIntCap(uint64_t* msg, uint64_t* cap);
|
||||
|
||||
private:
|
||||
uint64_t port_cap_;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue