Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbarm/include Provide LOADADDR macro for arm32 efi...
details: https://anonhg.NetBSD.org/src/rev/b35a13704c68
branches: trunk
changeset: 997877:b35a13704c68
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sat Mar 30 12:45:50 2019 +0000
description:
Provide LOADADDR macro for arm32 efiboot
diffstat:
sys/arch/evbarm/include/loadfile_machdep.h | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (13 lines):
diff -r 3d03995ad905 -r b35a13704c68 sys/arch/evbarm/include/loadfile_machdep.h
--- a/sys/arch/evbarm/include/loadfile_machdep.h Sat Mar 30 10:18:03 2019 +0000
+++ b/sys/arch/evbarm/include/loadfile_machdep.h Sat Mar 30 12:45:50 2019 +0000
@@ -11,6 +11,9 @@
#if defined(__aarch64__)
extern u_long load_offset;
#define LOADADDR(a) (((((u_long)(a)) + offset) & 0x3fffffffff) + load_offset)
+#elif defined(EFIBOOT)
+extern u_long load_offset;
+#define LOADADDR(a) (((((u_long)(a)) + offset) & 0x7fffffff) + load_offset)
#else
#define LOADADDR(a) (((u_long)(a)))
#endif
Home |
Main Index |
Thread Index |
Old Index