Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] m68k: fix NBPG define

The recent header cleanup removed PAGE_SIZE from the exported information as
it depends on the configuration.

BTW This has possibly other consequences, as the core dump code is using
PAGE_SIZE directly, which may need fixing as well.

Signed-off-by: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Roman Zippel and committed by
Linus Torvalds
5e7c4ea8 9ef30894

+1 -1
+1 -1
include/asm-m68k/user.h
··· 81 81 unsigned long magic; /* To uniquely identify a core file */ 82 82 char u_comm[32]; /* User command that was responsible */ 83 83 }; 84 - #define NBPG PAGE_SIZE 84 + #define NBPG 4096 85 85 #define UPAGES 1 86 86 #define HOST_TEXT_START_ADDR (u.start_code) 87 87 #define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG)