diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-01 14:51:57 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-01 14:51:57 -0400 |
| commit | 81f56e5375e84689b891e0e6c5a02ec12a1f18d9 (patch) | |
| tree | a1e128a71ff24fc705428df86a858076cfe4bc13 /include | |
| parent | 6c09931b3f987898f5c581d267ef269f5e2e9575 (diff) | |
| parent | 27aa55c5e5123fa8b8ad0156559d34d7edff58ca (diff) | |
Merge tag 'arm64-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/cmarinas/linux-aarch64
Pull arm64 support from Catalin Marinas:
"Linux support for the 64-bit ARM architecture (AArch64)
Features currently supported:
- 39-bit address space for user and kernel (each)
- 4KB and 64KB page configurations
- Compat (32-bit) user applications (ARMv7, EABI only)
- Flattened Device Tree (mandated for all AArch64 platforms)
- ARM generic timers"
* tag 'arm64-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/cmarinas/linux-aarch64: (35 commits)
arm64: ptrace: remove obsolete ptrace request numbers from user headers
arm64: Do not set the SMP/nAMP processor bit
arm64: MAINTAINERS update
arm64: Build infrastructure
arm64: Miscellaneous header files
arm64: Generic timers support
arm64: Loadable modules
arm64: Miscellaneous library functions
arm64: Performance counters support
arm64: Add support for /proc/sys/debug/exception-trace
arm64: Debugging support
arm64: Floating point and SIMD
arm64: 32-bit (compat) applications support
arm64: User access library functions
arm64: Signal handling support
arm64: VDSO support
arm64: System calls handling
arm64: ELF definitions
arm64: SMP support
arm64: DMA mapping API
...
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-generic/bitops/builtin-__ffs.h | 15 | ||||
| -rw-r--r-- | include/asm-generic/bitops/builtin-__fls.h | 15 | ||||
| -rw-r--r-- | include/asm-generic/bitops/builtin-ffs.h | 17 | ||||
| -rw-r--r-- | include/asm-generic/bitops/builtin-fls.h | 16 | ||||
| -rw-r--r-- | include/clocksource/arm_generic.h | 21 | ||||
| -rw-r--r-- | include/linux/elf.h | 3 |
6 files changed, 87 insertions, 0 deletions
diff --git a/include/asm-generic/bitops/builtin-__ffs.h b/include/asm-generic/bitops/builtin-__ffs.h new file mode 100644 index 000000000000..90041e3a41f0 --- /dev/null +++ b/include/asm-generic/bitops/builtin-__ffs.h | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | #ifndef _ASM_GENERIC_BITOPS_BUILTIN___FFS_H_ | ||
| 2 | #define _ASM_GENERIC_BITOPS_BUILTIN___FFS_H_ | ||
| 3 | |||
| 4 | /** | ||
| 5 | * __ffs - find first bit in word. | ||
| 6 | * @word: The word to search | ||
| 7 | * | ||
| 8 | * Undefined if no bit exists, so code should check against 0 first. | ||
| 9 | */ | ||
| 10 | static __always_inline unsigned long __ffs(unsigned long word) | ||
| 11 | { | ||
| 12 | return __builtin_ctzl(word); | ||
| 13 | } | ||
| 14 | |||
| 15 | #endif | ||
diff --git a/include/asm-generic/bitops/builtin-__fls.h b/include/asm-generic/bitops/builtin-__fls.h new file mode 100644 index 000000000000..0248f386635f --- /dev/null +++ b/include/asm-generic/bitops/builtin-__fls.h | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | #ifndef _ASM_GENERIC_BITOPS_BUILTIN___FLS_H_ | ||
| 2 | #define _ASM_GENERIC_BITOPS_BUILTIN___FLS_H_ | ||
| 3 | |||
| 4 | /** | ||
| 5 | * __fls - find last (most-significant) set bit in a long word | ||
| 6 | * @word: the word to search | ||
| 7 | * | ||
| 8 | * Undefined if no set bit exists, so code should check against 0 first. | ||
| 9 | */ | ||
| 10 | static __always_inline unsigned long __fls(unsigned long word) | ||
| 11 | { | ||
| 12 | return (sizeof(word) * 8) - 1 - __builtin_clzl(word); | ||
| 13 | } | ||
| 14 | |||
| 15 | #endif | ||
diff --git a/include/asm-generic/bitops/builtin-ffs.h b/include/asm-generic/bitops/builtin-ffs.h new file mode 100644 index 000000000000..064825829e1c --- /dev/null +++ b/include/asm-generic/bitops/builtin-ffs.h | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | #ifndef _ASM_GENERIC_BITOPS_BUILTIN_FFS_H_ | ||
| 2 | #define _ASM_GENERIC_BITOPS_BUILTIN_FFS_H_ | ||
| 3 | |||
| 4 | /** | ||
| 5 | * ffs - find first bit set | ||
| 6 | * @x: the word to search | ||
| 7 | * | ||
| 8 | * This is defined the same way as | ||
| 9 | * the libc and compiler builtin ffs routines, therefore | ||
| 10 | * differs in spirit from the above ffz (man ffs). | ||
| 11 | */ | ||
| 12 | static __always_inline int ffs(int x) | ||
| 13 | { | ||
| 14 | return __builtin_ffs(x); | ||
| 15 | } | ||
| 16 | |||
| 17 | #endif | ||
diff --git a/include/asm-generic/bitops/builtin-fls.h b/include/asm-generic/bitops/builtin-fls.h new file mode 100644 index 000000000000..eda652d0ac7f --- /dev/null +++ b/include/asm-generic/bitops/builtin-fls.h | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | #ifndef _ASM_GENERIC_BITOPS_BUILTIN_FLS_H_ | ||
| 2 | #define _ASM_GENERIC_BITOPS_BUILTIN_FLS_H_ | ||
| 3 | |||
| 4 | /** | ||
| 5 | * fls - find last (most-significant) bit set | ||
| 6 | * @x: the word to search | ||
| 7 | * | ||
| 8 | * This is defined the same way as ffs. | ||
| 9 | * Note fls(0) = 0, fls(1) = 1, fls(0x80000000) = 32. | ||
| 10 | */ | ||
| 11 | static __always_inline int fls(int x) | ||
| 12 | { | ||
| 13 | return x ? sizeof(x) * 8 - __builtin_clz(x) : 0; | ||
| 14 | } | ||
| 15 | |||
| 16 | #endif | ||
diff --git a/include/clocksource/arm_generic.h b/include/clocksource/arm_generic.h new file mode 100644 index 000000000000..5b41b0d27f0f --- /dev/null +++ b/include/clocksource/arm_generic.h | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (C) 2012 ARM Ltd. | ||
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or modify | ||
| 5 | * it under the terms of the GNU General Public License version 2 as | ||
| 6 | * published by the Free Software Foundation. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #ifndef __CLKSOURCE_ARM_GENERIC_H | ||
| 17 | #define __CLKSOURCE_ARM_GENERIC_H | ||
| 18 | |||
| 19 | extern int arm_generic_timer_init(void); | ||
| 20 | |||
| 21 | #endif | ||
diff --git a/include/linux/elf.h b/include/linux/elf.h index f930b1a390ab..0a05051a8924 100644 --- a/include/linux/elf.h +++ b/include/linux/elf.h | |||
| @@ -389,6 +389,9 @@ typedef struct elf64_shdr { | |||
| 389 | #define NT_S390_SYSTEM_CALL 0x307 /* s390 system call restart data */ | 389 | #define NT_S390_SYSTEM_CALL 0x307 /* s390 system call restart data */ |
| 390 | #define NT_S390_TDB 0x308 /* s390 transaction diagnostic block */ | 390 | #define NT_S390_TDB 0x308 /* s390 transaction diagnostic block */ |
| 391 | #define NT_ARM_VFP 0x400 /* ARM VFP/NEON registers */ | 391 | #define NT_ARM_VFP 0x400 /* ARM VFP/NEON registers */ |
| 392 | #define NT_ARM_TLS 0x401 /* ARM TLS register */ | ||
| 393 | #define NT_ARM_HW_BREAK 0x402 /* ARM hardware breakpoint registers */ | ||
| 394 | #define NT_ARM_HW_WATCH 0x403 /* ARM hardware watchpoint registers */ | ||
| 392 | 395 | ||
| 393 | 396 | ||
| 394 | /* Note header in a PT_NOTE section */ | 397 | /* Note header in a PT_NOTE section */ |
