summaryrefslogtreecommitdiff
path: root/arch/arm64/include/asm/cmpxchg.h
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2015-10-08 19:02:04 (GMT)
committerCatalin Marinas <catalin.marinas@arm.com>2015-10-12 15:20:12 (GMT)
commite8f3010f7326c00368dbc057bd052bec80dfc072 (patch)
tree111ad1d750410588ecd346fc257c05565963f0fd /arch/arm64/include/asm/cmpxchg.h
parent207918461eb0aca720fddec5da79bc71c133b9f1 (diff)
downloadlinux-e8f3010f7326c00368dbc057bd052bec80dfc072.tar.xz
arm64/efi: isolate EFI stub from the kernel proper
Since arm64 does not use a builtin decompressor, the EFI stub is built into the kernel proper. So far, this has been working fine, but actually, since the stub is in fact a PE/COFF relocatable binary that is executed at an unknown offset in the 1:1 mapping provided by the UEFI firmware, we should not be seamlessly sharing code with the kernel proper, which is a position dependent executable linked at a high virtual offset. So instead, separate the contents of libstub and its dependencies, by putting them into their own namespace by prefixing all of its symbols with __efistub. This way, we have tight control over what parts of the kernel proper are referenced by the stub. Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Matt Fleming <matt.fleming@intel.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/include/asm/cmpxchg.h')
0 files changed, 0 insertions, 0 deletions