forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'sh-for-linus' of git://github.com/pmundt/linux-sh
Pull SuperH updates from Paul Mundt. The bulk of this is the UAPI disintegration for SH. * tag 'sh-for-linus' of git://github.com/pmundt/linux-sh: sh: Fix up more fallout from pointless ARM __iomem churn. sh: Wire up kcmp syscall. UAPI: (Scripted) Disintegrate arch/sh/include/asm
- Loading branch information
Showing
37 changed files
with
210 additions
and
176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,5 @@ | ||
#ifdef __KERNEL__ | ||
# ifdef CONFIG_SUPERH32 | ||
# include <asm/posix_types_32.h> | ||
# else | ||
# include <asm/posix_types_64.h> | ||
# endif | ||
#else | ||
# ifdef __SH5__ | ||
# include <asm/posix_types_64.h> | ||
# else | ||
# include <asm/posix_types_32.h> | ||
# endif | ||
#endif /* __KERNEL__ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,86 +1,13 @@ | ||
#ifndef __ASM_SH_PTRACE_32_H | ||
#define __ASM_SH_PTRACE_32_H | ||
|
||
/* | ||
* GCC defines register number like this: | ||
* ----------------------------- | ||
* 0 - 15 are integer registers | ||
* 17 - 22 are control/special registers | ||
* 24 - 39 fp registers | ||
* 40 - 47 xd registers | ||
* 48 - fpscr register | ||
* ----------------------------- | ||
* | ||
* We follows above, except: | ||
* 16 --- program counter (PC) | ||
* 22 --- syscall # | ||
* 23 --- floating point communication register | ||
*/ | ||
#define REG_REG0 0 | ||
#define REG_REG15 15 | ||
#include <uapi/asm/ptrace_32.h> | ||
|
||
#define REG_PC 16 | ||
|
||
#define REG_PR 17 | ||
#define REG_SR 18 | ||
#define REG_GBR 19 | ||
#define REG_MACH 20 | ||
#define REG_MACL 21 | ||
|
||
#define REG_SYSCALL 22 | ||
|
||
#define REG_FPREG0 23 | ||
#define REG_FPREG15 38 | ||
#define REG_XFREG0 39 | ||
#define REG_XFREG15 54 | ||
|
||
#define REG_FPSCR 55 | ||
#define REG_FPUL 56 | ||
|
||
/* | ||
* This struct defines the way the registers are stored on the | ||
* kernel stack during a system call or other kernel entry. | ||
*/ | ||
struct pt_regs { | ||
unsigned long regs[16]; | ||
unsigned long pc; | ||
unsigned long pr; | ||
unsigned long sr; | ||
unsigned long gbr; | ||
unsigned long mach; | ||
unsigned long macl; | ||
long tra; | ||
}; | ||
|
||
/* | ||
* This struct defines the way the DSP registers are stored on the | ||
* kernel stack during a system call or other kernel entry. | ||
*/ | ||
struct pt_dspregs { | ||
unsigned long a1; | ||
unsigned long a0g; | ||
unsigned long a1g; | ||
unsigned long m0; | ||
unsigned long m1; | ||
unsigned long a0; | ||
unsigned long x0; | ||
unsigned long x1; | ||
unsigned long y0; | ||
unsigned long y1; | ||
unsigned long dsr; | ||
unsigned long rs; | ||
unsigned long re; | ||
unsigned long mod; | ||
}; | ||
|
||
#ifdef __KERNEL__ | ||
|
||
#define MAX_REG_OFFSET offsetof(struct pt_regs, tra) | ||
static inline long regs_return_value(struct pt_regs *regs) | ||
{ | ||
return regs->regs[0]; | ||
} | ||
|
||
#endif /* __KERNEL__ */ | ||
|
||
#endif /* __ASM_SH_PTRACE_32_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,13 @@ | ||
#ifndef __ASM_SH_PTRACE_64_H | ||
#define __ASM_SH_PTRACE_64_H | ||
|
||
struct pt_regs { | ||
unsigned long long pc; | ||
unsigned long long sr; | ||
long long syscall_nr; | ||
unsigned long long regs[63]; | ||
unsigned long long tregs[8]; | ||
unsigned long long pad[2]; | ||
}; | ||
#include <uapi/asm/ptrace_64.h> | ||
|
||
#ifdef __KERNEL__ | ||
|
||
#define MAX_REG_OFFSET offsetof(struct pt_regs, tregs[7]) | ||
static inline long regs_return_value(struct pt_regs *regs) | ||
{ | ||
return regs->regs[3]; | ||
} | ||
|
||
#endif /* __KERNEL__ */ | ||
|
||
#endif /* __ASM_SH_PTRACE_64_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,25 @@ | ||
# UAPI Header export list | ||
include include/uapi/asm-generic/Kbuild.asm | ||
|
||
header-y += auxvec.h | ||
header-y += byteorder.h | ||
header-y += cachectl.h | ||
header-y += cpu-features.h | ||
header-y += hw_breakpoint.h | ||
header-y += ioctls.h | ||
header-y += posix_types.h | ||
header-y += posix_types_32.h | ||
header-y += posix_types_64.h | ||
header-y += ptrace.h | ||
header-y += ptrace_32.h | ||
header-y += ptrace_64.h | ||
header-y += setup.h | ||
header-y += sigcontext.h | ||
header-y += signal.h | ||
header-y += sockios.h | ||
header-y += stat.h | ||
header-y += swab.h | ||
header-y += types.h | ||
header-y += unistd.h | ||
header-y += unistd_32.h | ||
header-y += unistd_64.h |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#ifndef __KERNEL__ | ||
# ifdef __SH5__ | ||
# include <asm/posix_types_64.h> | ||
# else | ||
# include <asm/posix_types_32.h> | ||
# endif | ||
#endif /* __KERNEL__ */ |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* Copyright (C) 1999, 2000 Niibe Yutaka | ||
*/ | ||
#ifndef _UAPI__ASM_SH_PTRACE_H | ||
#define _UAPI__ASM_SH_PTRACE_H | ||
|
||
|
||
#define PTRACE_GETREGS 12 /* General registers */ | ||
#define PTRACE_SETREGS 13 | ||
|
||
#define PTRACE_GETFPREGS 14 /* FPU registers */ | ||
#define PTRACE_SETFPREGS 15 | ||
|
||
#define PTRACE_GETFDPIC 31 /* get the ELF fdpic loadmap address */ | ||
|
||
#define PTRACE_GETFDPIC_EXEC 0 /* [addr] request the executable loadmap */ | ||
#define PTRACE_GETFDPIC_INTERP 1 /* [addr] request the interpreter loadmap */ | ||
|
||
#define PTRACE_GETDSPREGS 55 /* DSP registers */ | ||
#define PTRACE_SETDSPREGS 56 | ||
|
||
#define PT_TEXT_END_ADDR 240 | ||
#define PT_TEXT_ADDR 244 /* &(struct user)->start_code */ | ||
#define PT_DATA_ADDR 248 /* &(struct user)->start_data */ | ||
#define PT_TEXT_LEN 252 | ||
|
||
#if defined(__SH5__) || defined(CONFIG_CPU_SH5) | ||
#include <asm/ptrace_64.h> | ||
#else | ||
#include <asm/ptrace_32.h> | ||
#endif | ||
|
||
|
||
#endif /* _UAPI__ASM_SH_PTRACE_H */ |
Oops, something went wrong.