stack: add hwcap auxval
Fix the AUXV_LEN to account for hwcap and remove the ifdefs Change-Id: I303fc2c5fa4c8cea7ec9823f8580b8a66de2f58f Fujitsu: POSTK_DEBUG_ARCH_DEP_65
This commit is contained in:
@ -381,7 +381,7 @@ struct user
|
||||
unsigned long int u_debugreg [8];
|
||||
};
|
||||
|
||||
#define AUXV_LEN 18
|
||||
#define AUXV_LEN 20
|
||||
|
||||
struct vm_range {
|
||||
struct rb_node vm_rb_node;
|
||||
|
||||
@ -30,9 +30,7 @@
|
||||
#include <page.h>
|
||||
#include <cpulocal.h>
|
||||
#include <auxvec.h>
|
||||
#ifdef POSTK_DEBUG_ARCH_DEP_65
|
||||
#include <hwcap.h>
|
||||
#endif /* POSTK_DEBUG_ARCH_DEP_65 */
|
||||
#include <timer.h>
|
||||
#include <mman.h>
|
||||
#include <xpmem.h>
|
||||
@ -2231,6 +2229,7 @@ int init_process_stack(struct thread *thread, struct program_load_desc *pn,
|
||||
unsigned long at_rand;
|
||||
struct process *proc = thread->proc;
|
||||
unsigned long ap_flag;
|
||||
unsigned long ap_hwcap;
|
||||
struct vm_range *range;
|
||||
int stack_populated_size = 0;
|
||||
int stack_align_padding = 0;
|
||||
@ -2332,10 +2331,9 @@ int init_process_stack(struct thread *thread, struct program_load_desc *pn,
|
||||
AUXV_LEN in include/process.h. */
|
||||
p[s_ind--] = 0; /* AT_NULL */
|
||||
p[s_ind--] = 0;
|
||||
#ifdef POSTK_DEBUG_ARCH_DEP_65
|
||||
p[s_ind--] = arch_get_hwcap(); /* AT_HWCAP */
|
||||
p[s_ind--] = AT_HWCAP;
|
||||
#endif /* POSTK_DEBUG_ARCH_DEP_65 */
|
||||
ap_hwcap = arch_get_hwcap();
|
||||
p[s_ind--] = ap_hwcap; /* AT_HWCAP */
|
||||
p[s_ind--] = ap_hwcap ? AT_HWCAP : AT_IGNORE;
|
||||
p[s_ind--] = pn->at_entry; /* AT_ENTRY */
|
||||
p[s_ind--] = AT_ENTRY;
|
||||
p[s_ind--] = pn->at_phnum; /* AT_PHNUM */
|
||||
|
||||
Reference in New Issue
Block a user