aboutsummaryrefslogtreecommitdiff
path: root/lib/arm64/assemble.h
diff options
context:
space:
mode:
authorcomex2015-07-16 00:55:19 -0400
committercomex2015-07-16 00:55:19 -0400
commitdfd16cc1f759a103707ebd27743abc621486e131 (patch)
treee3ef16871039acb735bbf4179d299e8d8ea7d5a1 /lib/arm64/assemble.h
parentwork around (incorrect, since it's not code) alignment warning (diff)
downloadsubstitute-dfd16cc1f759a103707ebd27743abc621486e131.tar.gz
style police
Diffstat (limited to '')
-rw-r--r--lib/arm64/assemble.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/arm64/assemble.h b/lib/arm64/assemble.h
index c4fb487..a58e227 100644
--- a/lib/arm64/assemble.h
+++ b/lib/arm64/assemble.h
@@ -48,7 +48,8 @@ static inline void LDRxi(void **codep, int Rt, int Rn, uint32_t off,
static inline void ADRP_ADD(void **codep, int reg, uint64_t pc, uint64_t dpc) {
uint64_t diff = (dpc & ~0xfff) - (pc & ~0xfff);
/* ADRP reg, dpc */
- op32(codep, 0x90000000 | reg | (diff & 0x3000) << 17 | (diff & 0x1ffffc000) >> 9);
+ op32(codep, 0x90000000 | reg | (diff & 0x3000) << 17 |
+ (diff & 0x1ffffc000) >> 9);
uint32_t lo = dpc & 0xfff;
if (lo) {
/* ADD reg, reg, #lo */