diff options
Diffstat (limited to 'arch/x86/include/uapi/asm')
| -rw-r--r-- | arch/x86/include/uapi/asm/bootparam.h | 2 | ||||
| -rw-r--r-- | arch/x86/include/uapi/asm/hyperv.h | 13 | ||||
| -rw-r--r-- | arch/x86/include/uapi/asm/msr-index.h | 2 | ||||
| -rw-r--r-- | arch/x86/include/uapi/asm/sembuf.h | 10 | ||||
| -rw-r--r-- | arch/x86/include/uapi/asm/stat.h | 42 |
5 files changed, 44 insertions, 25 deletions
diff --git a/arch/x86/include/uapi/asm/bootparam.h b/arch/x86/include/uapi/asm/bootparam.h index 9c3733c5f8f7..225b0988043a 100644 --- a/arch/x86/include/uapi/asm/bootparam.h +++ b/arch/x86/include/uapi/asm/bootparam.h | |||
| @@ -6,6 +6,7 @@ | |||
| 6 | #define SETUP_E820_EXT 1 | 6 | #define SETUP_E820_EXT 1 |
| 7 | #define SETUP_DTB 2 | 7 | #define SETUP_DTB 2 |
| 8 | #define SETUP_PCI 3 | 8 | #define SETUP_PCI 3 |
| 9 | #define SETUP_EFI 4 | ||
| 9 | 10 | ||
| 10 | /* ram_size flags */ | 11 | /* ram_size flags */ |
| 11 | #define RAMDISK_IMAGE_START_MASK 0x07FF | 12 | #define RAMDISK_IMAGE_START_MASK 0x07FF |
| @@ -23,6 +24,7 @@ | |||
| 23 | #define XLF_CAN_BE_LOADED_ABOVE_4G (1<<1) | 24 | #define XLF_CAN_BE_LOADED_ABOVE_4G (1<<1) |
| 24 | #define XLF_EFI_HANDOVER_32 (1<<2) | 25 | #define XLF_EFI_HANDOVER_32 (1<<2) |
| 25 | #define XLF_EFI_HANDOVER_64 (1<<3) | 26 | #define XLF_EFI_HANDOVER_64 (1<<3) |
| 27 | #define XLF_EFI_KEXEC (1<<4) | ||
| 26 | 28 | ||
| 27 | #ifndef __ASSEMBLY__ | 29 | #ifndef __ASSEMBLY__ |
| 28 | 30 | ||
diff --git a/arch/x86/include/uapi/asm/hyperv.h b/arch/x86/include/uapi/asm/hyperv.h index b8f1c0176cbc..462efe746d77 100644 --- a/arch/x86/include/uapi/asm/hyperv.h +++ b/arch/x86/include/uapi/asm/hyperv.h | |||
| @@ -28,6 +28,9 @@ | |||
| 28 | /* Partition Reference Counter (HV_X64_MSR_TIME_REF_COUNT) available*/ | 28 | /* Partition Reference Counter (HV_X64_MSR_TIME_REF_COUNT) available*/ |
| 29 | #define HV_X64_MSR_TIME_REF_COUNT_AVAILABLE (1 << 1) | 29 | #define HV_X64_MSR_TIME_REF_COUNT_AVAILABLE (1 << 1) |
| 30 | 30 | ||
| 31 | /* A partition's reference time stamp counter (TSC) page */ | ||
| 32 | #define HV_X64_MSR_REFERENCE_TSC 0x40000021 | ||
| 33 | |||
| 31 | /* | 34 | /* |
| 32 | * There is a single feature flag that signifies the presence of the MSR | 35 | * There is a single feature flag that signifies the presence of the MSR |
| 33 | * that can be used to retrieve both the local APIC Timer frequency as | 36 | * that can be used to retrieve both the local APIC Timer frequency as |
| @@ -198,6 +201,9 @@ | |||
| 198 | #define HV_X64_MSR_APIC_ASSIST_PAGE_ADDRESS_MASK \ | 201 | #define HV_X64_MSR_APIC_ASSIST_PAGE_ADDRESS_MASK \ |
| 199 | (~((1ull << HV_X64_MSR_APIC_ASSIST_PAGE_ADDRESS_SHIFT) - 1)) | 202 | (~((1ull << HV_X64_MSR_APIC_ASSIST_PAGE_ADDRESS_SHIFT) - 1)) |
| 200 | 203 | ||
| 204 | #define HV_X64_MSR_TSC_REFERENCE_ENABLE 0x00000001 | ||
| 205 | #define HV_X64_MSR_TSC_REFERENCE_ADDRESS_SHIFT 12 | ||
| 206 | |||
| 201 | #define HV_PROCESSOR_POWER_STATE_C0 0 | 207 | #define HV_PROCESSOR_POWER_STATE_C0 0 |
| 202 | #define HV_PROCESSOR_POWER_STATE_C1 1 | 208 | #define HV_PROCESSOR_POWER_STATE_C1 1 |
| 203 | #define HV_PROCESSOR_POWER_STATE_C2 2 | 209 | #define HV_PROCESSOR_POWER_STATE_C2 2 |
| @@ -210,4 +216,11 @@ | |||
| 210 | #define HV_STATUS_INVALID_ALIGNMENT 4 | 216 | #define HV_STATUS_INVALID_ALIGNMENT 4 |
| 211 | #define HV_STATUS_INSUFFICIENT_BUFFERS 19 | 217 | #define HV_STATUS_INSUFFICIENT_BUFFERS 19 |
| 212 | 218 | ||
| 219 | typedef struct _HV_REFERENCE_TSC_PAGE { | ||
| 220 | __u32 tsc_sequence; | ||
| 221 | __u32 res1; | ||
| 222 | __u64 tsc_scale; | ||
| 223 | __s64 tsc_offset; | ||
| 224 | } HV_REFERENCE_TSC_PAGE, *PHV_REFERENCE_TSC_PAGE; | ||
| 225 | |||
| 213 | #endif | 226 | #endif |
diff --git a/arch/x86/include/uapi/asm/msr-index.h b/arch/x86/include/uapi/asm/msr-index.h index 37813b5ddc37..c19fc60ff062 100644 --- a/arch/x86/include/uapi/asm/msr-index.h +++ b/arch/x86/include/uapi/asm/msr-index.h | |||
| @@ -184,6 +184,7 @@ | |||
| 184 | #define MSR_AMD64_PATCH_LOADER 0xc0010020 | 184 | #define MSR_AMD64_PATCH_LOADER 0xc0010020 |
| 185 | #define MSR_AMD64_OSVW_ID_LENGTH 0xc0010140 | 185 | #define MSR_AMD64_OSVW_ID_LENGTH 0xc0010140 |
| 186 | #define MSR_AMD64_OSVW_STATUS 0xc0010141 | 186 | #define MSR_AMD64_OSVW_STATUS 0xc0010141 |
| 187 | #define MSR_AMD64_LS_CFG 0xc0011020 | ||
| 187 | #define MSR_AMD64_DC_CFG 0xc0011022 | 188 | #define MSR_AMD64_DC_CFG 0xc0011022 |
| 188 | #define MSR_AMD64_BU_CFG2 0xc001102a | 189 | #define MSR_AMD64_BU_CFG2 0xc001102a |
| 189 | #define MSR_AMD64_IBSFETCHCTL 0xc0011030 | 190 | #define MSR_AMD64_IBSFETCHCTL 0xc0011030 |
| @@ -527,6 +528,7 @@ | |||
| 527 | #define MSR_IA32_VMX_TRUE_PROCBASED_CTLS 0x0000048e | 528 | #define MSR_IA32_VMX_TRUE_PROCBASED_CTLS 0x0000048e |
| 528 | #define MSR_IA32_VMX_TRUE_EXIT_CTLS 0x0000048f | 529 | #define MSR_IA32_VMX_TRUE_EXIT_CTLS 0x0000048f |
| 529 | #define MSR_IA32_VMX_TRUE_ENTRY_CTLS 0x00000490 | 530 | #define MSR_IA32_VMX_TRUE_ENTRY_CTLS 0x00000490 |
| 531 | #define MSR_IA32_VMX_VMFUNC 0x00000491 | ||
| 530 | 532 | ||
| 531 | /* VMX_BASIC bits and bitmasks */ | 533 | /* VMX_BASIC bits and bitmasks */ |
| 532 | #define VMX_BASIC_VMCS_SIZE_SHIFT 32 | 534 | #define VMX_BASIC_VMCS_SIZE_SHIFT 32 |
diff --git a/arch/x86/include/uapi/asm/sembuf.h b/arch/x86/include/uapi/asm/sembuf.h index ee50c801f7b7..cc2d6a3aeae7 100644 --- a/arch/x86/include/uapi/asm/sembuf.h +++ b/arch/x86/include/uapi/asm/sembuf.h | |||
| @@ -13,12 +13,12 @@ | |||
| 13 | struct semid64_ds { | 13 | struct semid64_ds { |
| 14 | struct ipc64_perm sem_perm; /* permissions .. see ipc.h */ | 14 | struct ipc64_perm sem_perm; /* permissions .. see ipc.h */ |
| 15 | __kernel_time_t sem_otime; /* last semop time */ | 15 | __kernel_time_t sem_otime; /* last semop time */ |
| 16 | unsigned long __unused1; | 16 | __kernel_ulong_t __unused1; |
| 17 | __kernel_time_t sem_ctime; /* last change time */ | 17 | __kernel_time_t sem_ctime; /* last change time */ |
| 18 | unsigned long __unused2; | 18 | __kernel_ulong_t __unused2; |
| 19 | unsigned long sem_nsems; /* no. of semaphores in array */ | 19 | __kernel_ulong_t sem_nsems; /* no. of semaphores in array */ |
| 20 | unsigned long __unused3; | 20 | __kernel_ulong_t __unused3; |
| 21 | unsigned long __unused4; | 21 | __kernel_ulong_t __unused4; |
| 22 | }; | 22 | }; |
| 23 | 23 | ||
| 24 | #endif /* _ASM_X86_SEMBUF_H */ | 24 | #endif /* _ASM_X86_SEMBUF_H */ |
diff --git a/arch/x86/include/uapi/asm/stat.h b/arch/x86/include/uapi/asm/stat.h index 7b3ddc348585..bc03eb5d6360 100644 --- a/arch/x86/include/uapi/asm/stat.h +++ b/arch/x86/include/uapi/asm/stat.h | |||
| @@ -1,6 +1,8 @@ | |||
| 1 | #ifndef _ASM_X86_STAT_H | 1 | #ifndef _ASM_X86_STAT_H |
| 2 | #define _ASM_X86_STAT_H | 2 | #define _ASM_X86_STAT_H |
| 3 | 3 | ||
| 4 | #include <asm/posix_types.h> | ||
| 5 | |||
| 4 | #define STAT_HAVE_NSEC 1 | 6 | #define STAT_HAVE_NSEC 1 |
| 5 | 7 | ||
| 6 | #ifdef __i386__ | 8 | #ifdef __i386__ |
| @@ -78,26 +80,26 @@ struct stat64 { | |||
| 78 | #else /* __i386__ */ | 80 | #else /* __i386__ */ |
| 79 | 81 | ||
| 80 | struct stat { | 82 | struct stat { |
| 81 | unsigned long st_dev; | 83 | __kernel_ulong_t st_dev; |
| 82 | unsigned long st_ino; | 84 | __kernel_ulong_t st_ino; |
| 83 | unsigned long st_nlink; | 85 | __kernel_ulong_t st_nlink; |
| 84 | 86 | ||
| 85 | unsigned int st_mode; | 87 | unsigned int st_mode; |
| 86 | unsigned int st_uid; | 88 | unsigned int st_uid; |
| 87 | unsigned int st_gid; | 89 | unsigned int st_gid; |
| 88 | unsigned int __pad0; | 90 | unsigned int __pad0; |
| 89 | unsigned long st_rdev; | 91 | __kernel_ulong_t st_rdev; |
| 90 | long st_size; | 92 | __kernel_long_t st_size; |
| 91 | long st_blksize; | 93 | __kernel_long_t st_blksize; |
| 92 | long st_blocks; /* Number 512-byte blocks allocated. */ | 94 | __kernel_long_t st_blocks; /* Number 512-byte blocks allocated. */ |
| 93 | 95 | ||
| 94 | unsigned long st_atime; | 96 | __kernel_ulong_t st_atime; |
| 95 | unsigned long st_atime_nsec; | 97 | __kernel_ulong_t st_atime_nsec; |
| 96 | unsigned long st_mtime; | 98 | __kernel_ulong_t st_mtime; |
| 97 | unsigned long st_mtime_nsec; | 99 | __kernel_ulong_t st_mtime_nsec; |
| 98 | unsigned long st_ctime; | 100 | __kernel_ulong_t st_ctime; |
| 99 | unsigned long st_ctime_nsec; | 101 | __kernel_ulong_t st_ctime_nsec; |
| 100 | long __unused[3]; | 102 | __kernel_long_t __unused[3]; |
| 101 | }; | 103 | }; |
| 102 | 104 | ||
| 103 | /* We don't need to memset the whole thing just to initialize the padding */ | 105 | /* We don't need to memset the whole thing just to initialize the padding */ |
