unsigned int r_address; /* relocation addr */
unsigned int r_index:24; /* segment index or symbol index */
unsigned int r_extern:1; /* if F, r_index==SEG#; if T, SYM idx */
- int r_pad:2; /* <unused> */
+ unsigned int r_pad:2; /* <unused> */
enum reloc_type r_type:5; /* type of relocation to perform */
int r_addend; /* addend for relocation value */
};
#ifdef __KERNEL__
+#define STACK_TOP32 ((1UL << 32UL) - PAGE_SIZE)
+#define STACK_TOP64 (0x0000080000000000UL - (1UL << 32UL))
+
#define STACK_TOP (test_thread_flag(TIF_32BIT) ? \
- 0xf0000000 : \
- (0x0000080000000000UL - (1UL << 32UL)))
+ STACK_TOP32 : STACK_TOP64)
#endif