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
8a3fb763
Commit
8a3fb763
authored
Feb 10, 2002
by
Richard Henderson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes for premature thread_info changeset.
Minor warning removal.
parent
374eeee8
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
12 additions
and
25 deletions
+12
-25
arch/alpha/kernel/check_asm.c
arch/alpha/kernel/check_asm.c
+3
-3
arch/alpha/kernel/entry.S
arch/alpha/kernel/entry.S
+2
-3
arch/alpha/kernel/osf_sys.c
arch/alpha/kernel/osf_sys.c
+1
-1
arch/alpha/kernel/ptrace.c
arch/alpha/kernel/ptrace.c
+2
-1
arch/alpha/kernel/traps.c
arch/alpha/kernel/traps.c
+2
-2
arch/alpha/lib/ev6-memset.S
arch/alpha/lib/ev6-memset.S
+1
-1
arch/alpha/mm/init.c
arch/alpha/mm/init.c
+1
-1
include/asm-alpha/asm_offsets.h
include/asm-alpha/asm_offsets.h
+0
-13
No files found.
arch/alpha/kernel/check_asm.c
View file @
8a3fb763
...
...
@@ -14,9 +14,9 @@ void foo(void)
OUT
(
"#define __ASM_OFFSETS_H__"
);
OUT
(
""
);
DEF
(
"TI_TASK"
,
offsetof
(
struct
thread_
struct
,
task
));
DEF
(
"TI_FLAGS"
,
offsetof
(
struct
thread_
struct
,
flags
));
DEF
(
"TI_CPU"
,
offsetof
(
struct
thread_
struct
,
cpu
));
DEF
(
"TI_TASK"
,
offsetof
(
struct
thread_
info
,
task
));
DEF
(
"TI_FLAGS"
,
offsetof
(
struct
thread_
info
,
flags
));
DEF
(
"TI_CPU"
,
offsetof
(
struct
thread_
info
,
cpu
));
DEF
(
"PT_PTRACED"
,
PT_PTRACED
);
DEF
(
"CLONE_VM"
,
CLONE_VM
);
...
...
arch/alpha/kernel/entry.S
View file @
8a3fb763
...
...
@@ -205,11 +205,10 @@ kernel_thread:
stq
$
1
,
SP_OFF
+
8
(
$
30
)
/*
pc
*/
stq
$
29
,
SP_OFF
+
16
(
$
30
)
/*
gp
*/
stq
$
16
,
136
(
$
30
)
/*
$
27
; FN for child */
stq
$
17
,
160
(
$
30
)
/*
$
16
; ARG for child */
stq
$
17
,
SP_OFF
+
24
(
$
30
)
/*
$
16
; ARG for child */
stq
$
8
,
64
(
$
30
)
/*
$
8
*/
stq
$
26
,
128
(
$
30
)
/*
$
26
*/
/
*
Avoid
the
HAE
being
gratuitously
wrong
,
which
would
cause
us
to
go
off
to
restore
it
.
*/
/
*
Avoid
the
HAE
being
gratuitously
wrong
,
to
avoid
restoring
it
.
*/
ldq
$
2
,
alpha_mv
+
HAE_CACHE
stq
$
2
,
152
(
$
30
)
/*
HAE
*/
...
...
arch/alpha/kernel/osf_sys.c
View file @
8a3fb763
...
...
@@ -776,7 +776,7 @@ asmlinkage unsigned long osf_getsysinfo(unsigned long op, void *buffer,
/* Return current software fp control & status bits. */
/* Note that DU doesn't verify available space here. */
w
=
current_thread_info
->
ieee_state
&
IEEE_SW_MASK
;
w
=
current_thread_info
()
->
ieee_state
&
IEEE_SW_MASK
;
w
=
swcr_update_status
(
w
,
rdfpcr
());
if
(
put_user
(
w
,
(
unsigned
long
*
)
buffer
))
return
-
EFAULT
;
...
...
arch/alpha/kernel/ptrace.c
View file @
8a3fb763
...
...
@@ -186,7 +186,8 @@ ptrace_set_bpt(struct task_struct * child)
displ
=
((
s32
)(
insn
<<
11
))
>>
9
;
child
->
thread_info
->
bpt_addr
[
nsaved
++
]
=
pc
+
4
;
if
(
displ
)
/* guard against unoptimized code */
child
->
thread
.
bpt_addr
[
nsaved
++
]
=
pc
+
4
+
displ
;
child
->
thread_info
->
bpt_addr
[
nsaved
++
]
=
pc
+
4
+
displ
;
DBG
(
DBG_BPT
,
(
"execing branch
\n
"
));
}
else
if
(
op_code
==
0x1a
)
{
reg_b
=
(
insn
>>
16
)
&
0x1f
;
...
...
arch/alpha/kernel/traps.c
View file @
8a3fb763
...
...
@@ -131,7 +131,7 @@ dik_show_trace(unsigned long *sp)
void
show_trace_task
(
struct
task_struct
*
tsk
)
{
struct
thread_info
*
ti
=
&
tsk
->
thread_info
;
struct
thread_info
*
ti
=
tsk
->
thread_info
;
unsigned
long
fp
,
sp
=
ti
->
pcb
.
ksp
,
base
=
(
unsigned
long
)
ti
;
if
(
sp
>
base
&&
sp
+
6
*
8
<
base
+
16
*
1024
)
{
...
...
@@ -330,7 +330,7 @@ do_entIF(unsigned long type, unsigned long a1,
FP registers, PAL_clrfen is not useful except for DoS
attacks. So turn the bleeding FPU back on and be done
with it. */
current_thead_info
()
->
pcb
.
flags
|=
1
;
current_th
r
ead_info
()
->
pcb
.
flags
|=
1
;
__reload_thread
(
&
current_thread_info
()
->
pcb
);
return
;
...
...
arch/alpha/lib/ev6-memset.S
View file @
8a3fb763
...
...
@@ -236,7 +236,7 @@ end_b:
*
entry
point
.
*/
.
align
4
.
ent
__memset
.
ent
__
constant_c_
memset
__constant_c_memset
:
.
frame
$
30
,
0
,
$
26
,
0
.
prologue
0
...
...
arch/alpha/mm/init.c
View file @
8a3fb763
...
...
@@ -269,7 +269,7 @@ callback_init(void * kernel_end)
/* Let vmalloc know that we've allocated some space. */
console_remap_vm
.
flags
=
VM_ALLOC
;
console_remap_vm
.
addr
=
VMALLOC_START
;
console_remap_vm
.
addr
=
(
void
*
)
VMALLOC_START
;
console_remap_vm
.
size
=
vaddr
-
VMALLOC_START
;
vmlist
=
&
console_remap_vm
;
}
...
...
include/asm-alpha/asm_offsets.h
deleted
100644 → 0
View file @
374eeee8
#ifndef __ASM_OFFSETS_H__
#define __ASM_OFFSETS_H__
#define TASK_STATE 0
#define TASK_FLAGS 8
#define TASK_SIGPENDING 16
#define TASK_ADDR_LIMIT 24
#define TASK_EXEC_DOMAIN 32
#define TASK_NEED_RESCHED 40
#define TASK_SIZE 1096
#define STACK_SIZE 16384
#define HAE_CACHE 0
#define HAE_REG 8
#endif
/* __ASM_OFFSETS_H__ */
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