arm64: Scalable Vector Extension (SVE) support.

Change-Id: I3568687913f583edfaa297d5cf5ac91d319d97e9
This commit is contained in:
Shiratori, Takehiro
2019-02-21 11:29:33 +09:00
committed by Masamichi Takagi
parent dac99f708c
commit 07aa96ef95
15 changed files with 490 additions and 223 deletions

View File

@@ -183,8 +183,8 @@ void fill_auxv(struct note *head, struct thread *thread, void *regs)
int get_note_size(void)
{
return get_prstatus_size() + get_prpsinfo_size()
+ get_auxv_size();
return get_prstatus_size() + arch_get_thread_core_info_size()
+ get_prpsinfo_size() + get_auxv_size();
}
/**
@@ -199,8 +199,13 @@ void fill_note(void *note, struct thread *thread, void *regs)
{
fill_prstatus(note, thread, regs);
note += get_prstatus_size();
arch_fill_thread_core_info(note, thread, regs);
note += arch_get_thread_core_info_size();
fill_prpsinfo(note, thread, regs);
note += get_prpsinfo_size();
fill_auxv(note, thread, regs);
}

View File

@@ -1,4 +1,4 @@
/* elfcore.h COPYRIGHT FUJITSU LIMITED 2015-2016 */
/* elfcore.h COPYRIGHT FUJITSU LIMITED 2015-2019 */
#ifndef __HEADER_ELFCORE_H
#define __HEADER_ELFCORE_H
@@ -109,5 +109,8 @@ struct note {
/* functions */
struct thread;
extern void arch_fill_prstatus(struct elf_prstatus64 *prstatus, struct thread *thread, void *regs0);
extern int arch_get_thread_core_info_size(void);
extern void arch_fill_thread_core_info(struct note *head,
struct thread *thread, void *regs);
#endif /* __HEADER_ELFCORE_H */