Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
5bb7faf2
Commit
5bb7faf2
authored
Jun 18, 2003
by
Paul Mackerras
Browse files
Options
Browse Files
Download
Plain Diff
Merge samba.org:/home/paulus/kernel/linux-2.5
into samba.org:/home/paulus/kernel/for-linus-ppc
parents
1eba1937
9b980bb3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
3 deletions
+13
-3
arch/ppc/kernel/entry.S
arch/ppc/kernel/entry.S
+8
-3
include/asm-ppc/ptrace.h
include/asm-ppc/ptrace.h
+2
-0
include/asm-ppc/thread_info.h
include/asm-ppc/thread_info.h
+3
-0
No files found.
arch/ppc/kernel/entry.S
View file @
5bb7faf2
...
@@ -173,8 +173,10 @@ _GLOBAL(DoSyscall)
...
@@ -173,8 +173,10 @@ _GLOBAL(DoSyscall)
cmpli
0
,
r0
,
NR_syscalls
cmpli
0
,
r0
,
NR_syscalls
bge
-
66
f
bge
-
66
f
rlwinm
r10
,
r1
,
0
,
0
,
18
/*
current_thread_info
()
*/
rlwinm
r10
,
r1
,
0
,
0
,
18
/*
current_thread_info
()
*/
lwz
r10
,
TI_FLAGS
(
r10
)
lwz
r11
,
TI_FLAGS
(
r10
)
andi
.
r10
,
r10
,
_TIF_SYSCALL_TRACE
rlwinm
r11
,
r11
,
0
,
~
_TIF_FORCE_NOERROR
stw
r11
,
TI_FLAGS
(
r10
)
andi
.
r11
,
r11
,
_TIF_SYSCALL_TRACE
bne
-
syscall_dotrace
bne
-
syscall_dotrace
syscall_dotrace_cont
:
syscall_dotrace_cont
:
lis
r10
,
sys_call_table
@
h
lis
r10
,
sys_call_table
@
h
...
@@ -192,7 +194,11 @@ ret_from_syscall:
...
@@ -192,7 +194,11 @@ ret_from_syscall:
mr
r6
,
r3
mr
r6
,
r3
li
r11
,-
_LAST_ERRNO
li
r11
,-
_LAST_ERRNO
cmpl
0
,
r3
,
r11
cmpl
0
,
r3
,
r11
rlwinm
r12
,
r1
,
0
,
0
,
18
/*
current_thread_info
()
*/
blt
+
30
f
blt
+
30
f
lwz
r11
,
TI_FLAGS
(
r12
)
andi
.
r11
,
r11
,
_TIF_FORCE_NOERROR
bne
30
f
neg
r3
,
r3
neg
r3
,
r3
cmpi
0
,
r3
,
ERESTARTNOHAND
cmpi
0
,
r3
,
ERESTARTNOHAND
bne
22
f
bne
22
f
...
@@ -205,7 +211,6 @@ ret_from_syscall:
...
@@ -205,7 +211,6 @@ ret_from_syscall:
30
:
LOAD_MSR_KERNEL
(
r10
,
MSR_KERNEL
)
/*
doesn
't include MSR_EE */
30
:
LOAD_MSR_KERNEL
(
r10
,
MSR_KERNEL
)
/*
doesn
't include MSR_EE */
SYNC
SYNC
MTMSRD
(
r10
)
MTMSRD
(
r10
)
rlwinm
r12
,
r1
,
0
,
0
,
18
/*
current_thread_info
()
*/
lwz
r9
,
TI_FLAGS
(
r12
)
lwz
r9
,
TI_FLAGS
(
r12
)
andi
.
r0
,
r9
,(
_TIF_SYSCALL_TRACE|_TIF_SIGPENDING|_TIF_NEED_RESCHED
)
andi
.
r0
,
r9
,(
_TIF_SYSCALL_TRACE|_TIF_SIGPENDING|_TIF_NEED_RESCHED
)
bne
-
syscall_exit_work
bne
-
syscall_exit_work
...
...
include/asm-ppc/ptrace.h
View file @
5bb7faf2
...
@@ -49,6 +49,8 @@ struct pt_regs {
...
@@ -49,6 +49,8 @@ struct pt_regs {
#define instruction_pointer(regs) ((regs)->nip)
#define instruction_pointer(regs) ((regs)->nip)
#define user_mode(regs) (((regs)->msr & MSR_PR) != 0)
#define user_mode(regs) (((regs)->msr & MSR_PR) != 0)
#define force_successful_syscall_return() set_thread_flag(TIF_FORCE_NOERROR)
/*
/*
* We use the least-significant bit of the trap field to indicate
* We use the least-significant bit of the trap field to indicate
* whether we have saved the full set of registers, or only a
* whether we have saved the full set of registers, or only a
...
...
include/asm-ppc/thread_info.h
View file @
5bb7faf2
...
@@ -86,6 +86,8 @@ static inline struct thread_info *current_thread_info(void)
...
@@ -86,6 +86,8 @@ static inline struct thread_info *current_thread_info(void)
#define TIF_NEED_RESCHED 3
/* rescheduling necessary */
#define TIF_NEED_RESCHED 3
/* rescheduling necessary */
#define TIF_POLLING_NRFLAG 4
/* true if poll_idle() is polling
#define TIF_POLLING_NRFLAG 4
/* true if poll_idle() is polling
TIF_NEED_RESCHED */
TIF_NEED_RESCHED */
#define TIF_FORCE_NOERROR 5
/* don't return error from current
syscall even if result < 0 */
/* as above, but as bit values */
/* as above, but as bit values */
#define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE)
#define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE)
...
@@ -93,6 +95,7 @@ static inline struct thread_info *current_thread_info(void)
...
@@ -93,6 +95,7 @@ static inline struct thread_info *current_thread_info(void)
#define _TIF_SIGPENDING (1<<TIF_SIGPENDING)
#define _TIF_SIGPENDING (1<<TIF_SIGPENDING)
#define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED)
#define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED)
#define _TIF_POLLING_NRFLAG (1<<TIF_POLLING_NRFLAG)
#define _TIF_POLLING_NRFLAG (1<<TIF_POLLING_NRFLAG)
#define _TIF_FORCE_NOERROR (1<<TIF_FORCE_NOERROR)
#endif
/* __KERNEL__ */
#endif
/* __KERNEL__ */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment