mem: add phys_read and phys_write

This commit is contained in:
Michael Shaw 2024-08-21 14:28:52 -04:00
commit 877f6aa7c9
2 changed files with 12 additions and 0 deletions

View file

@ -114,6 +114,8 @@ void proc_munmap(struct proc *proc, uintptr_t vaddr);
paddr_t proc_clone_mmap(struct proc *in, struct proc *out);
paddr_t virtual_to_physical(uintptr_t vaddr, paddr_t page_base);
void mem_early_init(char *mem, size_t len);
uint64_t phys_read(paddr_t paddr);
void phys_write(paddr_t paddr, uint64_t data);
#endif /* __ASM__ */
#endif /* _MEM_H_ */