gencore: finish reintegration into arch-independent code

Change-Id: Ic2fc935aeec17c54931817bf43f67ef6da78adc8
Fujitsu: POSTK_DEBUG_ARCH_DEP_18
This commit is contained in:
Dominique Martinet
2019-02-05 15:01:16 +09:00
parent 112ade484a
commit 6fc9ec1c92
18 changed files with 133 additions and 1083 deletions

View File

@@ -1,5 +1,4 @@
/* elfcore.h COPYRIGHT FUJITSU LIMITED 2015-2016 */
#ifdef POSTK_DEBUG_ARCH_DEP_18 /* coredump arch separation. */
#ifndef __HEADER_ELFCORE_H
#define __HEADER_ELFCORE_H
@@ -101,11 +100,7 @@ struct note {
};
#define NT_PRSTATUS 1
#ifdef POSTK_DEBUG_ARCH_DEP_18 /* coredump arch separation. */
#define NT_PRFPREG 2
#else /* POSTK_DEBUG_ARCH_DEP_18 */
#define NT_PRFRPREG 2
#endif /* POSTK_DEBUG_ARCH_DEP_18 */
#define NT_PRPSINFO 3
#define NT_AUXV 6
@@ -116,10 +111,3 @@ struct thread;
extern void arch_fill_prstatus(struct elf_prstatus64 *prstatus, struct thread *thread, void *regs0);
#endif /* __HEADER_ELFCORE_H */
#else /* POSTK_DEBUG_ARCH_DEP_18 */
#ifdef __x86_64
#include "../../arch/x86_64/kernel/include/elfcore.h"
#elif __aarch64__
#include "../../arch/arm64/kernel/include/elfcore.h"
#endif
#endif /* POSTK_DEBUG_ARCH_DEP_18 */

View File

@@ -1,5 +1,4 @@
/* elfcoregpl.h COPYRIGHT FUJITSU LIMITED 2015-2016 */
#ifdef POSTK_DEBUG_ARCH_DEP_18 /* coredump arch separation. */
#ifndef __HEADER_ELFCOREGPL_H
#define __HEADER_ELFCOREGPL_H
@@ -64,10 +63,3 @@ struct elf_prpsinfo64
};
#endif /* __HEADER_ELFCOREGPL_H */
#else /* POSTK_DEBUG_ARCH_DEP_18 */
#ifdef __x86_64
#include "../../arch/x86/kernel/include/elfcoregpl.h"
#elif __aarch64__
#include "../../arch/arm64/kernel/include/elfcoregpl.h"
#endif
#endif /* POSTK_DEBUG_ARCH_DEP_18 */

View File

@@ -21,17 +21,6 @@
#include <list.h>
#include <pager.h>
#ifdef POSTK_DEBUG_ARCH_DEP_18 /* coredump arch separation. */
#else /* POSTK_DEBUG_ARCH_DEP_18 */
/* begin types.h */
typedef int32_t key_t;
typedef uint32_t uid_t;
typedef uint32_t gid_t;
typedef int64_t time_t;
typedef int32_t pid_t;
/* end types.h */
#endif /* POSTK_DEBUG_ARCH_DEP_18 */
enum {
/* for memobj.flags */
MF_HAS_PAGER = 0x0001,