Skip to content

Commit a126221

Browse files
authored
Merge pull request JuliaIO#26 from Keno/kf/arm64
Add MachO constants for ARM64
2 parents f0073c5 + a285110 commit a126221

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/MachO/constants.jl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010
const FAT_CIGAM = bswap(FAT_MAGIC)
1111
end
1212

13-
const CPU_ARCH_MASK = 0xff000000
14-
const CPU_ARCH_ABI64 = 0x01000000
13+
const CPU_ARCH_MASK = 0xff000000
14+
const CPU_ARCH_ABI64 = 0x01000000
15+
const CPU_ARCH_ABI64_32 = 0x02000000
1516

1617
@constants CPUTYPES "CPU_TYPE_" begin
1718
const CPU_TYPE_ANY = reinterpret(UInt32,Int32(-1))
@@ -35,6 +36,8 @@ const CPU_ARCH_ABI64 = 0x01000000
3536
# skip
3637
const CPU_TYPE_POWERPC = 18
3738
const CPU_TYPE_POWERPC64 = CPU_TYPE_POWERPC | CPU_ARCH_ABI64
39+
const CPU_TYPE_ARM64 = CPU_TYPE_ARM | CPU_ARCH_ABI64
40+
const CPU_TYPE_ARM64_32 = CPU_TYPE_ARM | CPU_ARCH_ABI64_32
3841
end
3942

4043
# TODO subtype constants

0 commit comments

Comments
 (0)