thermosphere: add more sysreg stuff & start writing trap stuff
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "types.h"
|
||||
|
||||
#include "preprocessor.h"
|
||||
|
||||
#define BIT(n) (1u << (n))
|
||||
#define BITL(n) (1ull << (n))
|
||||
@@ -33,8 +33,6 @@
|
||||
|
||||
#define ALINLINE __attribute__((always_inline))
|
||||
|
||||
#define SET_SYSREG(reg, val) do { temp_reg = (val); __asm__ __volatile__ ("msr " #reg ", %0" :: "r"(temp_reg) : "memory"); } while(false)
|
||||
|
||||
bool overlaps(u64 as, u64 ae, u64 bs, u64 be);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user