diff options
author | Andrew Turner <andrew@FreeBSD.org> | 2024-01-08 14:43:32 +0000 |
---|---|---|
committer | Andrew Turner <andrew@FreeBSD.org> | 2024-02-13 11:48:52 +0000 |
commit | 639a626b40503f81a184ccd93fb9bc023f86a3fd (patch) | |
tree | 59443bbcece5f08ec29489a62b14983912f27da1 /sys/arm | |
parent | 90405e1d63ff919705422745f19a8b56a37f5ac0 (diff) | |
download | src-639a626b40503f81a184ccd93fb9bc023f86a3fd.tar.gz src-639a626b40503f81a184ccd93fb9bc023f86a3fd.zip |
Diffstat (limited to 'sys/arm')
-rw-r--r-- | sys/arm/arm/machdep.c | 8 | ||||
-rw-r--r-- | sys/arm/include/machdep.h | 7 |
2 files changed, 15 insertions, 0 deletions
diff --git a/sys/arm/arm/machdep.c b/sys/arm/arm/machdep.c index 999e47fd381a..c36953c513be 100644 --- a/sys/arm/arm/machdep.c +++ b/sys/arm/arm/machdep.c @@ -134,6 +134,14 @@ static delay_func *delay_impl; static void *delay_arg; #endif +#if defined(SOCDEV_PA) +#if !defined(SOCDEV_VA) +#error SOCDEV_PA defined, but not SOCDEV_VA +#endif +uintptr_t socdev_va = SOCDEV_VA; +#endif + + struct kva_md_info kmi; /* * arm32_vector_init: diff --git a/sys/arm/include/machdep.h b/sys/arm/include/machdep.h index f999cce12b47..45e44a65368b 100644 --- a/sys/arm/include/machdep.h +++ b/sys/arm/include/machdep.h @@ -51,6 +51,13 @@ void arm_add_efi_map_entries(struct efi_map_header *efihdr, struct mem_region *mr, int *mrcnt); #endif +#ifdef SOCDEV_PA +/* + * The virtual address SOCDEV_PA is mapped at. + */ +extern uintptr_t socdev_va; +#endif + /* * Symbols created by ldscript.arm which are accessible in the kernel as global * symbols. They have uint8 type because they mark the byte location where the |