mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-04-01 12:04:08 +00:00
x32: Create posix_types_x32.h
This is the same as the 64-bit posix_types.h, except that __kernel_[u]long_t is defined to be [unsigned] long long and therefore 64 bits. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
parent
afead38d01
commit
1f5e27a90a
3 changed files with 23 additions and 1 deletions
|
@ -14,6 +14,7 @@ header-y += msr.h
|
||||||
header-y += mtrr.h
|
header-y += mtrr.h
|
||||||
header-y += posix_types_32.h
|
header-y += posix_types_32.h
|
||||||
header-y += posix_types_64.h
|
header-y += posix_types_64.h
|
||||||
|
header-y += posix_types_x32.h
|
||||||
header-y += prctl.h
|
header-y += prctl.h
|
||||||
header-y += processor-flags.h
|
header-y += processor-flags.h
|
||||||
header-y += ptrace-abi.h
|
header-y += ptrace-abi.h
|
||||||
|
|
|
@ -7,7 +7,9 @@
|
||||||
#else
|
#else
|
||||||
# ifdef __i386__
|
# ifdef __i386__
|
||||||
# include "posix_types_32.h"
|
# include "posix_types_32.h"
|
||||||
# else
|
# elif defined(__LP64__)
|
||||||
# include "posix_types_64.h"
|
# include "posix_types_64.h"
|
||||||
|
# else
|
||||||
|
# include "posix_types_x32.h"
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
19
arch/x86/include/asm/posix_types_x32.h
Normal file
19
arch/x86/include/asm/posix_types_x32.h
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
#ifndef _ASM_X86_POSIX_TYPES_X32_H
|
||||||
|
#define _ASM_X86_POSIX_TYPES_X32_H
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This file is only used by user-level software, so you need to
|
||||||
|
* be a little careful about namespace pollution etc. Also, we cannot
|
||||||
|
* assume GCC is being used.
|
||||||
|
*
|
||||||
|
* These types should generally match the ones used by the 64-bit kernel,
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
typedef long long __kernel_long_t;
|
||||||
|
typedef unsigned long long __kernel_ulong_t;
|
||||||
|
#define __kernel_long_t __kernel_long_t
|
||||||
|
|
||||||
|
#include <asm/posix_types_64.h>
|
||||||
|
|
||||||
|
#endif /* _ASM_X86_POSIX_TYPES_X32_H */
|
Loading…
Add table
Reference in a new issue