提交 6ecb9c14 编写于 作者: R Rich Felker

use PAGESIZE rather than PAGE_SIZE in user.h bits

align with commit c9c2cd3e.
上级 c9c2cd3e
...@@ -37,8 +37,8 @@ struct user { ...@@ -37,8 +37,8 @@ struct user {
int u_debugreg[8]; int u_debugreg[8];
}; };
#define PAGE_MASK (~(PAGE_SIZE-1)) #define PAGE_MASK (~(PAGESIZE-1))
#define NBPG PAGE_SIZE #define NBPG PAGESIZE
#define UPAGES 1 #define UPAGES 1
#define HOST_TEXT_START_ADDR (u.start_code) #define HOST_TEXT_START_ADDR (u.start_code)
#define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG) #define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG)
...@@ -54,8 +54,8 @@ struct user { ...@@ -54,8 +54,8 @@ struct user {
char u_comm[32]; char u_comm[32];
}; };
#define PAGE_MASK (~(PAGE_SIZE-1)) #define PAGE_MASK (~(PAGESIZE-1))
#define NBPG PAGE_SIZE #define NBPG PAGESIZE
#define UPAGES 1 #define UPAGES 1
#define HOST_TEXT_START_ADDR (u.start_code) #define HOST_TEXT_START_ADDR (u.start_code)
#define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG) #define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG)
......
...@@ -34,8 +34,8 @@ struct user { ...@@ -34,8 +34,8 @@ struct user {
unsigned long u_debugreg[8]; unsigned long u_debugreg[8];
}; };
#define PAGE_MASK (~(PAGE_SIZE-1)) #define PAGE_MASK (~(PAGESIZE-1))
#define NBPG PAGE_SIZE #define NBPG PAGESIZE
#define UPAGES 1 #define UPAGES 1
#define HOST_TEXT_START_ADDR (u.start_code) #define HOST_TEXT_START_ADDR (u.start_code)
#define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG) #define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG)
...@@ -34,8 +34,8 @@ struct user { ...@@ -34,8 +34,8 @@ struct user {
unsigned long u_debugreg[8]; unsigned long u_debugreg[8];
}; };
#define PAGE_MASK (~(PAGE_SIZE-1)) #define PAGE_MASK (~(PAGESIZE-1))
#define NBPG PAGE_SIZE #define NBPG PAGESIZE
#define UPAGES 1 #define UPAGES 1
#define HOST_TEXT_START_ADDR (u.start_code) #define HOST_TEXT_START_ADDR (u.start_code)
#define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG) #define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册