fixes for A2
mostly include some things that should and remove some things that shouldn't have been included in the handout (yes this does hint at some places that need to be touched for A2)
This commit is contained in:
@@ -96,13 +96,11 @@ Module *getModule(unsigned i) {
|
||||
|
||||
unsigned getModuleCount() { return multiboot_addr->mods.size; }
|
||||
|
||||
void *Memory::getStartAddress() const {
|
||||
return reinterpret_cast<void *>(static_cast<uintptr_t>(addr));
|
||||
}
|
||||
void *Memory::getStartAddress() const { return reinterpret_cast<void *>(addr); }
|
||||
|
||||
void *Memory::getEndAddress() const {
|
||||
uint64_t end = addr + len;
|
||||
return reinterpret_cast<void *>(static_cast<uintptr_t>(end));
|
||||
return reinterpret_cast<void *>(end);
|
||||
}
|
||||
|
||||
bool Memory::isAvailable() const { return type == AVAILABLE; }
|
||||
|
||||
Reference in New Issue
Block a user