3622634bc6
Some of them use guard symbol TARGET_SYSCALL_H, but we also have CRIS_SYSCALL_H, MICROBLAZE_SYSCALLS_H, TILEGX_SYSCALLS_H and __UC32_SYSCALL_H__. They all upset scripts/clean-header-guards.pl. Reuse of the same guard symbol TARGET_SYSCALL_H in multiple headers is okay as long as they cannot be included together. The script can't tell, so it warns. The script dislikes the other guard symbols, too. They don't match their file name (they should, to make guard collisions less likely), and __UC32_SYSCALL_H__ is a reserved identifier. Clean them all up: use guard symbol $target_TARGET_SYSCALL_H for linux-user/$target/target_sycall.h. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Richard Henderson <rth@twiddle.net>
57 lines
1.5 KiB
C
57 lines
1.5 KiB
C
#ifndef MICROBLAZE_TARGET_SYSCALL_H
|
|
#define MICROBLAZE_TARGET_SYSCALL_H
|
|
|
|
#define UNAME_MACHINE "microblaze"
|
|
#define UNAME_MINIMUM_RELEASE "2.6.32"
|
|
|
|
/* We use microblaze_reg_t to keep things similar to the kernel sources. */
|
|
typedef uint32_t microblaze_reg_t;
|
|
|
|
struct target_pt_regs {
|
|
microblaze_reg_t r0;
|
|
microblaze_reg_t r1;
|
|
microblaze_reg_t r2;
|
|
microblaze_reg_t r3;
|
|
microblaze_reg_t r4;
|
|
microblaze_reg_t r5;
|
|
microblaze_reg_t r6;
|
|
microblaze_reg_t r7;
|
|
microblaze_reg_t r8;
|
|
microblaze_reg_t r9;
|
|
microblaze_reg_t r10;
|
|
microblaze_reg_t r11;
|
|
microblaze_reg_t r12;
|
|
microblaze_reg_t r13;
|
|
microblaze_reg_t r14;
|
|
microblaze_reg_t r15;
|
|
microblaze_reg_t r16;
|
|
microblaze_reg_t r17;
|
|
microblaze_reg_t r18;
|
|
microblaze_reg_t r19;
|
|
microblaze_reg_t r20;
|
|
microblaze_reg_t r21;
|
|
microblaze_reg_t r22;
|
|
microblaze_reg_t r23;
|
|
microblaze_reg_t r24;
|
|
microblaze_reg_t r25;
|
|
microblaze_reg_t r26;
|
|
microblaze_reg_t r27;
|
|
microblaze_reg_t r28;
|
|
microblaze_reg_t r29;
|
|
microblaze_reg_t r30;
|
|
microblaze_reg_t r31;
|
|
microblaze_reg_t pc;
|
|
microblaze_reg_t msr;
|
|
microblaze_reg_t ear;
|
|
microblaze_reg_t esr;
|
|
microblaze_reg_t fsr;
|
|
uint32_t kernel_mode;
|
|
};
|
|
|
|
#define TARGET_CLONE_BACKWARDS
|
|
#define TARGET_MINSIGSTKSZ 2048
|
|
#define TARGET_MLOCKALL_MCL_CURRENT 1
|
|
#define TARGET_MLOCKALL_MCL_FUTURE 2
|
|
|
|
#endif
|