Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 36d57ac4 authored by H. J. Lu's avatar H. J. Lu Committed by Linus Torvalds
Browse files

[PATCH] auxiliary vector cleanups



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: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 32605a18
Loading
Loading
Loading
Loading
+24 −0
Original line number Diff line number Diff line
#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 */
+2 −20
Original line number Diff line number Diff line
#ifndef __ASM_ALPHA_ELF_H
#define __ASM_ALPHA_ELF_H

#include <asm/auxvec.h>

/* Special values for the st_other field in the symbol table.  */

#define STO_ALPHA_NOPV		0x80
@@ -142,26 +144,6 @@ extern int dump_elf_task_fp(elf_fpreg_t *dest, struct task_struct *task);
	: amask (AMASK_CIX) ? "ev6" : "ev67");	\
})

/* 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

#ifdef __KERNEL__

#define SET_PERSONALITY(EX, IBCS2)				\
+4 −0
Original line number Diff line number Diff line
#ifndef __ASMARM_AUXVEC_H
#define __ASMARM_AUXVEC_H

#endif
+4 −0
Original line number Diff line number Diff line
#ifndef __ASMARM_AUXVEC_H
#define __ASMARM_AUXVEC_H

#endif
+4 −0
Original line number Diff line number Diff line
#ifndef __ASMCRIS_AUXVEC_H
#define __ASMCRIS_AUXVEC_H

#endif
Loading