mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-03 01:38:30 +00:00
[metal] Clean up code for getting pointer to struct mman
(#828)
Co-authored-by: tkchia <tkchia-cosmo@gmx.com>
This commit is contained in:
parent
5a6a4819d4
commit
e47c0cc929
5 changed files with 8 additions and 6 deletions
|
@ -225,5 +225,8 @@ forceinline void outb(unsigned short port, unsigned char byte) {
|
|||
(uint64_t *)(BANE + cr3); \
|
||||
})
|
||||
|
||||
#define __get_mm() ((struct mman *)(BANE + 0x0500))
|
||||
#define __get_mm_phy() ((struct mman *)0x0500)
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_RUNTIME_PC_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue