diff options
author | 2020-09-03 16:22:39 +0200 | |
---|---|---|
committer | 2020-09-08 22:21:35 -0400 | |
commit | a1d826d475aafe63775b910e86ccd1bcf1e5a6e1 (patch) | |
tree | 4be9e9eae9c63c9079e56d5085bc300457a341a8 /arch/x86/kernel/asm-offsets.c | |
parent | x86: move PAGE_OFFSET, TASK_SIZE & friends to page_{32,64}_types.h (diff) | |
download | linux-a1d826d475aafe63775b910e86ccd1bcf1e5a6e1.tar.gz linux-a1d826d475aafe63775b910e86ccd1bcf1e5a6e1.tar.bz2 linux-a1d826d475aafe63775b910e86ccd1bcf1e5a6e1.zip |
x86: make TASK_SIZE_MAX usable from assembly code
For 64-bit the only thing missing was a strategic _AC, and for 32-bit we
need to use __PAGE_OFFSET instead of PAGE_OFFSET in the TASK_SIZE
definition to escape the explicit unsigned long cast. This just works
because __PAGE_OFFSET is defined using _AC itself and thus never needs
the cast anyway.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/x86/kernel/asm-offsets.c')
0 files changed, 0 insertions, 0 deletions