XHCI works on real hardware!
This commit is contained in:
@@ -54,7 +54,7 @@ void* mmap (void* addr, size_t size, int prot, int flags, int fd, size_t off) {
|
||||
|
||||
size = div_align_up (size, PAGE_SIZE);
|
||||
|
||||
physaddr_t p_addr = pmm_alloc (size);
|
||||
uintptr_t p_addr = pmm_alloc (size);
|
||||
|
||||
if (p_addr == PMM_ALLOC_ERR)
|
||||
return (void*)-1;
|
||||
@@ -75,7 +75,7 @@ int munmap (void* addr, size_t length) {
|
||||
|
||||
struct limine_hhdm_response* hhdm = limine_hhdm_request.response;
|
||||
|
||||
physaddr_t p_addr = (uintptr_t)addr - hhdm->offset;
|
||||
uintptr_t p_addr = (uintptr_t)addr - hhdm->offset;
|
||||
|
||||
pmm_free (p_addr, length);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user