[mammoth] Create a method for getting initial caps.

This commit is contained in:
Drew Galbraith 2023-06-16 23:51:49 -07:00
parent 4c936623b5
commit 528723e490
15 changed files with 108 additions and 22 deletions

View 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);

View 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_;
};