fix __WORDSIZE on x32 sys/user.h
[musl] / arch / x32 / bits / user.h
index 471bb19..eac82a1 100644 (file)
@@ -1,5 +1,5 @@
 #undef __WORDSIZE
-#define __WORDSIZE 64
+#define __WORDSIZE 32
 
 typedef struct user_fpregs_struct {
        uint16_t cwd, swd, ftw, fop;
@@ -34,8 +34,8 @@ struct user {
        unsigned long                   u_debugreg[8];
 };
 
-#define PAGE_MASK              (~(PAGE_SIZE-1))
-#define NBPG                   PAGE_SIZE
+#define PAGE_MASK              (~(PAGESIZE-1))
+#define NBPG                   PAGESIZE
 #define UPAGES                 1
 #define HOST_TEXT_START_ADDR   (u.start_code)
 #define HOST_STACK_END_ADDR    (u.start_stack + u.u_ssize * NBPG)