thermosphere: add more sysreg stuff & start writing trap stuff

This commit is contained in:
TuxSH 2019-07-23 04:47:57 +02:00
parent 4952b3c9bf
commit 70a9caa7e9
5 changed files with 189 additions and 41 deletions

View file

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