Merge branch 'main' of gitlab.ibr.cs.tu-bs.de:vss/teaching/ws25/v_bsb2/stubsmi
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