mem: make McKernel kernel heap virtual addresses Linux compatible
Cherry-pick of e5334c646d2dc6fb11d419918d8139a0de583fde
This commit is contained in:
@ -16,19 +16,6 @@
|
||||
|
||||
#include <arch-memory.h>
|
||||
|
||||
#ifndef KERNEL_PHYS_OFFSET
|
||||
#define KERNEL_PHYS_OFFSET 0
|
||||
|
||||
static unsigned long virt_to_phys(void *v)
|
||||
{
|
||||
return (unsigned long)v - KERNEL_PHYS_OFFSET;
|
||||
}
|
||||
static void *phys_to_virt(unsigned long p)
|
||||
{
|
||||
return (void *)(p + KERNEL_PHYS_OFFSET);
|
||||
}
|
||||
#endif
|
||||
|
||||
struct process_vm;
|
||||
|
||||
unsigned long virt_to_phys(void *v);
|
||||
|
||||
Reference in New Issue
Block a user