-
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.
The size of auxiliary vector is fixed at 42 in linux/sched.h. But it isn't very obvious when looking at linux/elf.h. This patch adds AT_VECTOR_SIZE so that we can change it if necessary when a new vector is added. Because of include file ordering problems, doing this necessitated the extraction of the AT_* symbols into a standalone header file. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
- Loading branch information
H. J. Lu
authored and
Linus Torvalds
committed
Sep 7, 2005
1 parent
32605a1
commit 36d57ac
Showing
32 changed files
with
196 additions
and
83 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#ifndef __ASM_ALPHA_AUXVEC_H | ||
#define __ASM_ALPHA_AUXVEC_H | ||
|
||
/* Reserve these numbers for any future use of a VDSO. */ | ||
#if 0 | ||
#define AT_SYSINFO 32 | ||
#define AT_SYSINFO_EHDR 33 | ||
#endif | ||
|
||
/* More complete cache descriptions than AT_[DIU]CACHEBSIZE. If the | ||
value is -1, then the cache doesn't exist. Otherwise: | ||
bit 0-3: Cache set-associativity; 0 means fully associative. | ||
bit 4-7: Log2 of cacheline size. | ||
bit 8-31: Size of the entire cache >> 8. | ||
bit 32-63: Reserved. | ||
*/ | ||
|
||
#define AT_L1I_CACHESHAPE 34 | ||
#define AT_L1D_CACHESHAPE 35 | ||
#define AT_L2_CACHESHAPE 36 | ||
#define AT_L3_CACHESHAPE 37 | ||
|
||
#endif /* __ASM_ALPHA_AUXVEC_H */ |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#ifndef __ASMARM_AUXVEC_H | ||
#define __ASMARM_AUXVEC_H | ||
|
||
#endif |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#ifndef __ASMARM_AUXVEC_H | ||
#define __ASMARM_AUXVEC_H | ||
|
||
#endif |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#ifndef __ASMCRIS_AUXVEC_H | ||
#define __ASMCRIS_AUXVEC_H | ||
|
||
#endif |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#ifndef __FRV_AUXVEC_H | ||
#define __FRV_AUXVEC_H | ||
|
||
#endif |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#ifndef __ASMH8300_AUXVEC_H | ||
#define __ASMH8300_AUXVEC_H | ||
|
||
#endif |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#ifndef __ASMi386_AUXVEC_H | ||
#define __ASMi386_AUXVEC_H | ||
|
||
/* | ||
* Architecture-neutral AT_ values in 0-17, leave some room | ||
* for more of them, start the x86-specific ones at 32. | ||
*/ | ||
#define AT_SYSINFO 32 | ||
#define AT_SYSINFO_EHDR 33 | ||
|
||
#endif |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#ifndef _ASM_IA64_AUXVEC_H | ||
#define _ASM_IA64_AUXVEC_H | ||
|
||
/* | ||
* Architecture-neutral AT_ values are in the range 0-17. Leave some room for more of | ||
* them, start the architecture-specific ones at 32. | ||
*/ | ||
#define AT_SYSINFO 32 | ||
#define AT_SYSINFO_EHDR 33 | ||
|
||
#endif /* _ASM_IA64_AUXVEC_H */ |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#ifndef _ASM_M32R__AUXVEC_H | ||
#define _ASM_M32R__AUXVEC_H | ||
|
||
#endif /* _ASM_M32R__AUXVEC_H */ |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#ifndef __ASMm68k_AUXVEC_H | ||
#define __ASMm68k_AUXVEC_H | ||
|
||
#endif |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#ifndef __ASMm68k_AUXVEC_H | ||
#define __ASMm68k_AUXVEC_H | ||
|
||
#endif |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#ifndef _ASM_AUXVEC_H | ||
#define _ASM_AUXVEC_H | ||
|
||
#endif /* _ASM_AUXVEC_H */ |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#ifndef __ASMPARISC_AUXVEC_H | ||
#define __ASMPARISC_AUXVEC_H | ||
|
||
#endif |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#ifndef __PPC_AUXVEC_H | ||
#define __PPC_AUXVEC_H | ||
|
||
/* | ||
* We need to put in some extra aux table entries to tell glibc what | ||
* the cache block size is, so it can use the dcbz instruction safely. | ||
*/ | ||
#define AT_DCACHEBSIZE 19 | ||
#define AT_ICACHEBSIZE 20 | ||
#define AT_UCACHEBSIZE 21 | ||
/* A special ignored type value for PPC, for glibc compatibility. */ | ||
#define AT_IGNOREPPC 22 | ||
|
||
#endif |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#ifndef __PPC64_AUXVEC_H | ||
#define __PPC64_AUXVEC_H | ||
|
||
/* | ||
* We need to put in some extra aux table entries to tell glibc what | ||
* the cache block size is, so it can use the dcbz instruction safely. | ||
*/ | ||
#define AT_DCACHEBSIZE 19 | ||
#define AT_ICACHEBSIZE 20 | ||
#define AT_UCACHEBSIZE 21 | ||
/* A special ignored type value for PPC, for glibc compatibility. */ | ||
#define AT_IGNOREPPC 22 | ||
|
||
/* The vDSO location. We have to use the same value as x86 for glibc's | ||
* sake :-) | ||
*/ | ||
#define AT_SYSINFO_EHDR 33 | ||
|
||
#endif /* __PPC64_AUXVEC_H */ |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#ifndef __ASMS390_AUXVEC_H | ||
#define __ASMS390_AUXVEC_H | ||
|
||
#endif |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#ifndef __ASM_SH_AUXVEC_H | ||
#define __ASM_SH_AUXVEC_H | ||
|
||
#endif /* __ASM_SH_AUXVEC_H */ |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#ifndef __ASM_SH64_AUXVEC_H | ||
#define __ASM_SH64_AUXVEC_H | ||
|
||
#endif /* __ASM_SH64_AUXVEC_H */ |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#ifndef __ASMSPARC_AUXVEC_H | ||
#define __ASMSPARC_AUXVEC_H | ||
|
||
#endif /* !(__ASMSPARC_AUXVEC_H) */ |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#ifndef __ASM_SPARC64_AUXVEC_H | ||
#define __ASM_SPARC64_AUXVEC_H | ||
|
||
#endif /* !(__ASM_SPARC64_AUXVEC_H) */ |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#ifndef __UM_AUXVEC_H | ||
#define __UM_AUXVEC_H | ||
|
||
#endif |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#ifndef __V850_AUXVEC_H__ | ||
#define __V850_AUXVEC_H__ | ||
|
||
#endif /* __V850_AUXVEC_H__ */ |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#ifndef __ASM_X86_64_AUXVEC_H | ||
#define __ASM_X86_64_AUXVEC_H | ||
|
||
#endif |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#ifndef __XTENSA_AUXVEC_H | ||
#define __XTENSA_AUXVEC_H | ||
|
||
#endif |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#ifndef _LINUX_AUXVEC_H | ||
#define _LINUX_AUXVEC_H | ||
|
||
#include <asm/auxvec.h> | ||
|
||
/* Symbolic values for the entries in the auxiliary table | ||
put on the initial stack */ | ||
#define AT_NULL 0 /* end of vector */ | ||
#define AT_IGNORE 1 /* entry should be ignored */ | ||
#define AT_EXECFD 2 /* file descriptor of program */ | ||
#define AT_PHDR 3 /* program headers for program */ | ||
#define AT_PHENT 4 /* size of program header entry */ | ||
#define AT_PHNUM 5 /* number of program headers */ | ||
#define AT_PAGESZ 6 /* system page size */ | ||
#define AT_BASE 7 /* base address of interpreter */ | ||
#define AT_FLAGS 8 /* flags */ | ||
#define AT_ENTRY 9 /* entry point of program */ | ||
#define AT_NOTELF 10 /* program is not ELF */ | ||
#define AT_UID 11 /* real uid */ | ||
#define AT_EUID 12 /* effective uid */ | ||
#define AT_GID 13 /* real gid */ | ||
#define AT_EGID 14 /* effective gid */ | ||
#define AT_PLATFORM 15 /* string identifying CPU for optimizations */ | ||
#define AT_HWCAP 16 /* arch dependent hints at CPU capabilities */ | ||
#define AT_CLKTCK 17 /* frequency at which times() increments */ | ||
|
||
#define AT_SECURE 23 /* secure mode boolean */ | ||
|
||
#define AT_VECTOR_SIZE 42 /* Size of auxiliary table. */ | ||
|
||
#endif /* _LINUX_AUXVEC_H */ |
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
Oops, something went wrong.