-
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.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
- Loading branch information
Paul Mundt
committed
Sep 8, 2008
1 parent
7d96169
commit fa43972
Showing
33 changed files
with
220 additions
and
61 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
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
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,6 +1,8 @@ | ||
#ifndef _SH_SETUP_H | ||
#define _SH_SETUP_H | ||
|
||
#include <asm/mmzone.h> | ||
|
||
#define COMMAND_LINE_SIZE 256 | ||
|
||
#ifdef __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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#ifndef __ASM_SH_SYSCALLS_H | ||
#define __ASM_SH_SYSCALLS_H | ||
|
||
#ifdef __KERNEL__ | ||
|
||
struct old_utsname; | ||
|
||
asmlinkage int old_mmap(unsigned long addr, unsigned long len, | ||
unsigned long prot, unsigned long flags, | ||
int fd, unsigned long off); | ||
asmlinkage long sys_mmap2(unsigned long addr, unsigned long len, | ||
unsigned long prot, unsigned long flags, | ||
unsigned long fd, unsigned long pgoff); | ||
asmlinkage int sys_ipc(uint call, int first, int second, | ||
int third, void __user *ptr, long fifth); | ||
asmlinkage int sys_uname(struct old_utsname __user *name); | ||
|
||
#ifdef CONFIG_SUPERH32 | ||
# include "syscalls_32.h" | ||
#else | ||
# include "syscalls_64.h" | ||
#endif | ||
|
||
#endif /* __KERNEL__ */ | ||
#endif /* __ASM_SH_SYSCALLS_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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
#ifndef __ASM_SH_SYSCALLS_32_H | ||
#define __ASM_SH_SYSCALLS_32_H | ||
|
||
#ifdef __KERNEL__ | ||
|
||
#include <linux/compiler.h> | ||
#include <linux/linkage.h> | ||
#include <linux/types.h> | ||
|
||
struct pt_regs; | ||
|
||
asmlinkage int sys_fork(unsigned long r4, unsigned long r5, | ||
unsigned long r6, unsigned long r7, | ||
struct pt_regs __regs); | ||
asmlinkage int sys_clone(unsigned long clone_flags, unsigned long newsp, | ||
unsigned long parent_tidptr, | ||
unsigned long child_tidptr, | ||
struct pt_regs __regs); | ||
asmlinkage int sys_vfork(unsigned long r4, unsigned long r5, | ||
unsigned long r6, unsigned long r7, | ||
struct pt_regs __regs); | ||
asmlinkage int sys_execve(char __user *ufilename, char __user * __user *uargv, | ||
char __user * __user *uenvp, unsigned long r7, | ||
struct pt_regs __regs); | ||
asmlinkage int sys_sigsuspend(old_sigset_t mask, unsigned long r5, | ||
unsigned long r6, unsigned long r7, | ||
struct pt_regs __regs); | ||
asmlinkage int sys_sigaction(int sig, const struct old_sigaction __user *act, | ||
struct old_sigaction __user *oact); | ||
asmlinkage int sys_sigaltstack(const stack_t __user *uss, stack_t __user *uoss, | ||
unsigned long r6, unsigned long r7, | ||
struct pt_regs __regs); | ||
asmlinkage int sys_sigreturn(unsigned long r4, unsigned long r5, | ||
unsigned long r6, unsigned long r7, | ||
struct pt_regs __regs); | ||
asmlinkage int sys_rt_sigreturn(unsigned long r4, unsigned long r5, | ||
unsigned long r6, unsigned long r7, | ||
struct pt_regs __regs); | ||
asmlinkage int sys_pipe(unsigned long r4, unsigned long r5, | ||
unsigned long r6, unsigned long r7, | ||
struct pt_regs __regs); | ||
asmlinkage ssize_t sys_pread_wrapper(unsigned int fd, char __user *buf, | ||
size_t count, long dummy, loff_t pos); | ||
asmlinkage ssize_t sys_pwrite_wrapper(unsigned int fd, const char __user *buf, | ||
size_t count, long dummy, loff_t pos); | ||
asmlinkage int sys_fadvise64_64_wrapper(int fd, u32 offset0, u32 offset1, | ||
u32 len0, u32 len1, int advice); | ||
|
||
/* Misc syscall related bits */ | ||
asmlinkage long do_syscall_trace_enter(struct pt_regs *regs); | ||
asmlinkage void do_syscall_trace_leave(struct pt_regs *regs); | ||
asmlinkage void do_notify_resume(struct pt_regs *regs, unsigned int save_r0, | ||
unsigned long thread_info_flags); | ||
|
||
#endif /* __KERNEL__ */ | ||
#endif /* __ASM_SH_SYSCALLS_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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#ifndef __ASM_SH_SYSCALLS_64_H | ||
#define __ASM_SH_SYSCALLS_64_H | ||
|
||
#ifdef __KERNEL__ | ||
|
||
#include <linux/compiler.h> | ||
#include <linux/linkage.h> | ||
#include <linux/types.h> | ||
|
||
struct pt_regs; | ||
|
||
asmlinkage int sys_fork(unsigned long r2, unsigned long r3, | ||
unsigned long r4, unsigned long r5, | ||
unsigned long r6, unsigned long r7, | ||
struct pt_regs *pregs); | ||
asmlinkage int sys_clone(unsigned long clone_flags, unsigned long newsp, | ||
unsigned long r4, unsigned long r5, | ||
unsigned long r6, unsigned long r7, | ||
struct pt_regs *pregs); | ||
asmlinkage int sys_vfork(unsigned long r2, unsigned long r3, | ||
unsigned long r4, unsigned long r5, | ||
unsigned long r6, unsigned long r7, | ||
struct pt_regs *pregs); | ||
asmlinkage int sys_execve(char *ufilename, char **uargv, | ||
char **uenvp, unsigned long r5, | ||
unsigned long r6, unsigned long r7, | ||
struct pt_regs *pregs); | ||
|
||
/* Misc syscall related bits */ | ||
asmlinkage long long do_syscall_trace_enter(struct pt_regs *regs); | ||
asmlinkage void do_syscall_trace_leave(struct pt_regs *regs); | ||
|
||
#endif /* __KERNEL__ */ | ||
#endif /* __ASM_SH_SYSCALLS_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
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
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
Oops, something went wrong.