diff options
Diffstat (limited to 'include/apos/vmem.h')
| -rw-r--r-- | include/apos/vmem.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/apos/vmem.h b/include/apos/vmem.h index daa9d10..38432ee 100644 --- a/include/apos/vmem.h +++ b/include/apos/vmem.h @@ -26,7 +26,8 @@ struct sp_mem { #define mem_container(ptr)\ container_of(ptr, struct sp_mem, sp_n) - +#define __va(x) (((char *)(x)) + VM_DMAP - RAM_BASE) +#define __pa(x) (((char *)(x)) + RAM_BASE - VM_DMAP) /* general overview of the different functions: * (un)map_vmem: map one known page of physical memory to one known page of |
