projects/linux·commit 5e7c4ea8

[PATCH] m68k: fix NBPG define

5e7c4ea8 · Roman Zippel <[email protected]> · 2006-10-06 00:43:57 -07:00

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 <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
5e7c4ea83efa9d6269bcbf17611f83aeef71c096
Parents
9ef30894

Changes

1 files changed · +1 −1

FileStatusAddDelContent
include/asm-m68k/user.hmodified+1−1View file

include/asm-m68k/user.h

View file
diff --git a/include/asm-m68k/user.h b/include/asm-m68k/user.h
index e8d5a64..d7c0b10 100644
--- a/include/asm-m68k/user.h
+++ b/include/asm-m68k/user.h
@@ -81,7 +81,7 @@ struct user{
unsigned long magic; /* To uniquely identify a core file */
char u_comm[32]; /* User command that was responsible */
};
-#define NBPG PAGE_SIZE
+#define NBPG 4096
#define UPAGES 1
#define HOST_TEXT_START_ADDR (u.start_code)
#define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG)