-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
x86: unify some more trivial include/asm-x86/ 32/64 variants
Scripted unification. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
- Loading branch information
Thomas Gleixner
authored and
Thomas Gleixner
committed
Oct 17, 2007
1 parent
217d115
commit 003a46c
Showing
43 changed files
with
498 additions
and
1,199 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#ifdef CONFIG_X86_32 | ||
# include "bugs_32.h" | ||
#else | ||
# include "bugs_64.h" | ||
#endif | ||
#ifndef _ASM_X86_BUGS_H | ||
#define _ASM_X86_BUGS_H | ||
|
||
void check_bugs(void); | ||
|
||
#endif /* _ASM_X86_BUGS_H */ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
#ifdef CONFIG_X86_32 | ||
# include "device_32.h" | ||
#else | ||
# include "device_64.h" | ||
#ifndef _ASM_X86_DEVICE_H | ||
#define _ASM_X86_DEVICE_H | ||
|
||
struct dev_archdata { | ||
#ifdef CONFIG_ACPI | ||
void *acpi_handle; | ||
#endif | ||
}; | ||
|
||
#endif /* _ASM_X86_DEVICE_H */ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,31 @@ | ||
#ifdef CONFIG_X86_32 | ||
# include "intel_arch_perfmon_32.h" | ||
#else | ||
# include "intel_arch_perfmon_64.h" | ||
#endif | ||
#ifndef _ASM_X86_INTEL_ARCH_PERFMON_H | ||
#define _ASM_X86_INTEL_ARCH_PERFMON_H | ||
|
||
#define MSR_ARCH_PERFMON_PERFCTR0 0xc1 | ||
#define MSR_ARCH_PERFMON_PERFCTR1 0xc2 | ||
|
||
#define MSR_ARCH_PERFMON_EVENTSEL0 0x186 | ||
#define MSR_ARCH_PERFMON_EVENTSEL1 0x187 | ||
|
||
#define ARCH_PERFMON_EVENTSEL0_ENABLE (1 << 22) | ||
#define ARCH_PERFMON_EVENTSEL_INT (1 << 20) | ||
#define ARCH_PERFMON_EVENTSEL_OS (1 << 17) | ||
#define ARCH_PERFMON_EVENTSEL_USR (1 << 16) | ||
|
||
#define ARCH_PERFMON_UNHALTED_CORE_CYCLES_SEL (0x3c) | ||
#define ARCH_PERFMON_UNHALTED_CORE_CYCLES_UMASK (0x00 << 8) | ||
#define ARCH_PERFMON_UNHALTED_CORE_CYCLES_INDEX (0) | ||
#define ARCH_PERFMON_UNHALTED_CORE_CYCLES_PRESENT \ | ||
(1 << (ARCH_PERFMON_UNHALTED_CORE_CYCLES_INDEX)) | ||
|
||
union cpuid10_eax { | ||
struct { | ||
unsigned int version_id:8; | ||
unsigned int num_counters:8; | ||
unsigned int bit_width:8; | ||
unsigned int mask_length:8; | ||
} split; | ||
unsigned int full; | ||
}; | ||
|
||
#endif /* _ASM_X86_INTEL_ARCH_PERFMON_H */ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,29 @@ | ||
#ifdef __KERNEL__ | ||
# ifdef CONFIG_X86_32 | ||
# include "ipcbuf_32.h" | ||
# else | ||
# include "ipcbuf_64.h" | ||
# endif | ||
#else | ||
# ifdef __i386__ | ||
# include "ipcbuf_32.h" | ||
# else | ||
# include "ipcbuf_64.h" | ||
# endif | ||
#endif | ||
#ifndef _ASM_X86_IPCBUF_H | ||
#define _ASM_X86_IPCBUF_H | ||
|
||
/* | ||
* The ipc64_perm structure for x86 architecture. | ||
* Note extra padding because this structure is passed back and forth | ||
* between kernel and user space. | ||
* | ||
* Pad space is left for: | ||
* - 32-bit mode_t and seq | ||
* - 2 miscellaneous 32-bit values | ||
*/ | ||
|
||
struct ipc64_perm | ||
{ | ||
__kernel_key_t key; | ||
__kernel_uid32_t uid; | ||
__kernel_gid32_t gid; | ||
__kernel_uid32_t cuid; | ||
__kernel_gid32_t cgid; | ||
__kernel_mode_t mode; | ||
unsigned short __pad1; | ||
unsigned short seq; | ||
unsigned short __pad2; | ||
unsigned long __unused1; | ||
unsigned long __unused2; | ||
}; | ||
|
||
#endif /* _ASM_X86_IPCBUF_H */ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
#ifdef CONFIG_X86_32 | ||
# include "namei_32.h" | ||
#else | ||
# include "namei_64.h" | ||
#endif | ||
#ifndef _ASM_X86_NAMEI_H | ||
#define _ASM_X86_NAMEI_H | ||
|
||
/* This dummy routine maybe changed to something useful | ||
* for /usr/gnemul/ emulation stuff. | ||
* Look at asm-sparc/namei.h for details. | ||
*/ | ||
|
||
#define __emul_prefix() NULL | ||
|
||
#endif /* _ASM_X86_NAMEI_H */ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.