diff options
author | comex | 2015-03-01 23:07:15 -0500 |
---|---|---|
committer | comex | 2015-03-01 23:07:15 -0500 |
commit | 7f24621bec0b0a5b3cab9ec2dfc68929a2d49d25 (patch) | |
tree | 7c227bfa4d8010e23b726eed8efb6bc51746e3f5 /lib/arm64/assemble.h | |
parent | seems to work (diff) | |
download | substitute-7f24621bec0b0a5b3cab9ec2dfc68929a2d49d25.tar.gz |
A number of critical fixes painstakingly discovered in the slowest way possible.
Diffstat (limited to 'lib/arm64/assemble.h')
-rw-r--r-- | lib/arm64/assemble.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/arm64/assemble.h b/lib/arm64/assemble.h index 42c0f0c..c4fb487 100644 --- a/lib/arm64/assemble.h +++ b/lib/arm64/assemble.h @@ -46,7 +46,7 @@ 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) { - uintptr_t diff = (dpc & ~0xfff) - (pc & ~0xfff); + uint64_t diff = (dpc & ~0xfff) - (pc & ~0xfff); /* ADRP reg, dpc */ op32(codep, 0x90000000 | reg | (diff & 0x3000) << 17 | (diff & 0x1ffffc000) >> 9); uint32_t lo = dpc & 0xfff; |