mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-22 06:57:51 +00:00
dde_linux: provide __phys_to_pfn for arm64
This macro is needed by the 'pinephone_camera_drv' driver port. Fixes #4625.
This commit is contained in:
parent
95ee0f58f2
commit
85f98d7038
@ -18,6 +18,7 @@
|
||||
|
||||
#include <asm/page-def.h>
|
||||
#include <linux/sizes.h>
|
||||
#include <linux/pfn.h>
|
||||
#include <lx_emul/debug.h>
|
||||
#include <lx_emul/alloc.h>
|
||||
#include <lx_emul/page_virt.h>
|
||||
@ -61,4 +62,16 @@ static inline struct page *virt_to_page(void const *v) { return lx_emul_virt_to_
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
|
||||
/*
|
||||
* Normally included from <asm-generic/memory_model.h> and
|
||||
* implemented via PHYS_PFN()
|
||||
*/
|
||||
#define __phys_to_pfn(paddr) PHYS_PFN(paddr)
|
||||
|
||||
/*
|
||||
* Normally included from <asm-generic/memory_model.h> and
|
||||
* implemented via PFN_PHYS()
|
||||
*/
|
||||
#define __pfn_to_phys(pfn) PFN_PHYS(pfn)
|
||||
|
||||
#endif /* __ASM_MEMORY_H */
|
||||
|
Loading…
Reference in New Issue
Block a user