ref: cleaned code a bit
This commit is contained in:
@@ -3,13 +3,4 @@
|
|||||||
|
|
||||||
void* memset(void* destination, int value, Size count) {
|
void* memset(void* destination, int value, Size count) {
|
||||||
return MemorySet(destination, value, count);
|
return MemorySet(destination, value, count);
|
||||||
}
|
}
|
||||||
|
|
||||||
// A little bit of Monica in my life
|
|
||||||
// A little bit of Erica by my side
|
|
||||||
// A little bit of Rita's all I need
|
|
||||||
// A little bit of Tina's what I see
|
|
||||||
// A little bit of Sandra in the sun
|
|
||||||
// A little bit of Mary all night long
|
|
||||||
// A little bit of Jessica, here I am
|
|
||||||
// A little bit of you makes me your man
|
|
||||||
@@ -3,12 +3,11 @@
|
|||||||
#include <Lib/String.h>
|
#include <Lib/String.h>
|
||||||
#include <Arch/CPU.h>
|
#include <Arch/CPU.h>
|
||||||
#include <OS/Panic.h>
|
#include <OS/Panic.h>
|
||||||
|
#include <OS/Log.h>
|
||||||
#include "../Common/bootinfo.h"
|
#include "../Common/bootinfo.h"
|
||||||
#include "OS/Log.h"
|
|
||||||
|
|
||||||
static const UInt64 kPTEAddressMask = 0x0000FFFFFFFFF000ULL;
|
static const UInt64 kPTEAddressMask = 0x0000FFFFFFFFF000ULL;
|
||||||
static inline Address GetPTEAddress(UInt64 entry) { return entry & kPTEAddressMask; }
|
static inline Address GetPTEAddress(UInt64 entry) { return entry & kPTEAddressMask; }
|
||||||
static inline UInt64 GetPTEFlags(UInt64 entry) { return entry & ~kPTEAddressMask; }
|
|
||||||
static inline UInt16 GetL0Index(Address virt) { return (virt >> 39) & 0x1FF; }
|
static inline UInt16 GetL0Index(Address virt) { return (virt >> 39) & 0x1FF; }
|
||||||
static inline UInt16 GetL1Index(Address virt) { return (virt >> 30) & 0x1FF; }
|
static inline UInt16 GetL1Index(Address virt) { return (virt >> 30) & 0x1FF; }
|
||||||
static inline UInt16 GetL2Index(Address virt) { return (virt >> 21) & 0x1FF; }
|
static inline UInt16 GetL2Index(Address virt) { return (virt >> 21) & 0x1FF; }
|
||||||
|
|||||||
Reference in New Issue
Block a user