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
nexedi
linux
Commits
ce2070ec
Commit
ce2070ec
authored
May 29, 2003
by
David Mosberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ia64: Small formatting fixes.
parent
7c704dbc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
12 deletions
+21
-12
arch/ia64/kernel/ptrace.c
arch/ia64/kernel/ptrace.c
+17
-9
arch/ia64/kernel/setup.c
arch/ia64/kernel/setup.c
+4
-3
No files found.
arch/ia64/kernel/ptrace.c
View file @
ce2070ec
...
@@ -671,7 +671,8 @@ access_uarea (struct task_struct *child, unsigned long addr, unsigned long *data
...
@@ -671,7 +671,8 @@ access_uarea (struct task_struct *child, unsigned long addr, unsigned long *data
ptr
=
(
unsigned
long
*
)
((
unsigned
long
)
&
child
->
thread
.
fph
+
addr
);
ptr
=
(
unsigned
long
*
)
((
unsigned
long
)
&
child
->
thread
.
fph
+
addr
);
}
else
if
((
addr
>=
PT_F10
)
&&
(
addr
<
PT_F11
+
16
))
{
}
else
if
((
addr
>=
PT_F10
)
&&
(
addr
<
PT_F11
+
16
))
{
/* scratch registers untouched by kernel (saved in pt_regs) */
/* scratch registers untouched by kernel (saved in pt_regs) */
ptr
=
(
unsigned
long
*
)
((
long
)
pt
+
offsetof
(
struct
pt_regs
,
f10
)
+
addr
-
PT_F10
);
ptr
=
(
unsigned
long
*
)
((
long
)
pt
+
offsetof
(
struct
pt_regs
,
f10
)
+
addr
-
PT_F10
);
}
else
if
(
addr
>=
PT_F12
&&
addr
<
PT_F15
+
16
)
{
}
else
if
(
addr
>=
PT_F12
&&
addr
<
PT_F15
+
16
)
{
/* scratch registers untouched by kernel (saved in switch_stack) */
/* scratch registers untouched by kernel (saved in switch_stack) */
ptr
=
(
unsigned
long
*
)
((
long
)
sw
+
(
addr
-
PT_NAT_BITS
-
32
));
ptr
=
(
unsigned
long
*
)
((
long
)
sw
+
(
addr
-
PT_NAT_BITS
-
32
));
...
@@ -814,14 +815,17 @@ access_uarea (struct task_struct *child, unsigned long addr, unsigned long *data
...
@@ -814,14 +815,17 @@ access_uarea (struct task_struct *child, unsigned long addr, unsigned long *data
ptr
=
(
unsigned
long
*
)
((
long
)
pt
+
offsetof
(
struct
pt_regs
,
r1
));
ptr
=
(
unsigned
long
*
)
((
long
)
pt
+
offsetof
(
struct
pt_regs
,
r1
));
break
;
break
;
case
PT_R2
:
case
PT_R3
:
case
PT_R2
:
case
PT_R3
:
ptr
=
(
unsigned
long
*
)
((
long
)
pt
+
offsetof
(
struct
pt_regs
,
r2
)
+
addr
-
PT_R2
);
ptr
=
(
unsigned
long
*
)
((
long
)
pt
+
offsetof
(
struct
pt_regs
,
r2
)
+
addr
-
PT_R2
);
break
;
break
;
case
PT_R8
:
case
PT_R9
:
case
PT_R10
:
case
PT_R11
:
case
PT_R8
:
case
PT_R9
:
case
PT_R10
:
case
PT_R11
:
ptr
=
(
unsigned
long
*
)
((
long
)
pt
+
offsetof
(
struct
pt_regs
,
r8
)
+
addr
-
PT_R8
);
ptr
=
(
unsigned
long
*
)
((
long
)
pt
+
offsetof
(
struct
pt_regs
,
r8
)
+
addr
-
PT_R8
);
break
;
break
;
case
PT_R12
:
case
PT_R13
:
case
PT_R12
:
case
PT_R13
:
ptr
=
(
unsigned
long
*
)
((
long
)
pt
+
offsetof
(
struct
pt_regs
,
r12
)
+
addr
-
PT_R12
);
ptr
=
(
unsigned
long
*
)
((
long
)
pt
+
offsetof
(
struct
pt_regs
,
r12
)
+
addr
-
PT_R12
);
break
;
break
;
case
PT_R14
:
case
PT_R14
:
ptr
=
(
unsigned
long
*
)
((
long
)
pt
+
offsetof
(
struct
pt_regs
,
r14
));
ptr
=
(
unsigned
long
*
)
((
long
)
pt
+
offsetof
(
struct
pt_regs
,
r14
));
...
@@ -833,7 +837,8 @@ access_uarea (struct task_struct *child, unsigned long addr, unsigned long *data
...
@@ -833,7 +837,8 @@ access_uarea (struct task_struct *child, unsigned long addr, unsigned long *data
case
PT_R20
:
case
PT_R21
:
case
PT_R22
:
case
PT_R23
:
case
PT_R20
:
case
PT_R21
:
case
PT_R22
:
case
PT_R23
:
case
PT_R24
:
case
PT_R25
:
case
PT_R26
:
case
PT_R27
:
case
PT_R24
:
case
PT_R25
:
case
PT_R26
:
case
PT_R27
:
case
PT_R28
:
case
PT_R29
:
case
PT_R30
:
case
PT_R31
:
case
PT_R28
:
case
PT_R29
:
case
PT_R30
:
case
PT_R31
:
ptr
=
(
unsigned
long
*
)
((
long
)
pt
+
offsetof
(
struct
pt_regs
,
r16
)
+
addr
-
PT_R16
);
ptr
=
(
unsigned
long
*
)
((
long
)
pt
+
offsetof
(
struct
pt_regs
,
r16
)
+
addr
-
PT_R16
);
break
;
break
;
case
PT_B0
:
case
PT_B0
:
ptr
=
(
unsigned
long
*
)
((
long
)
pt
+
offsetof
(
struct
pt_regs
,
b0
));
ptr
=
(
unsigned
long
*
)
((
long
)
pt
+
offsetof
(
struct
pt_regs
,
b0
));
...
@@ -846,10 +851,12 @@ access_uarea (struct task_struct *child, unsigned long addr, unsigned long *data
...
@@ -846,10 +851,12 @@ access_uarea (struct task_struct *child, unsigned long addr, unsigned long *data
break
;
break
;
case
PT_F6
:
case
PT_F6
+
8
:
case
PT_F7
:
case
PT_F7
+
8
:
case
PT_F6
:
case
PT_F6
+
8
:
case
PT_F7
:
case
PT_F7
+
8
:
case
PT_F8
:
case
PT_F8
+
8
:
case
PT_F9
:
case
PT_F9
+
8
:
case
PT_F8
:
case
PT_F8
+
8
:
case
PT_F9
:
case
PT_F9
+
8
:
ptr
=
(
unsigned
long
*
)
((
long
)
pt
+
offsetof
(
struct
pt_regs
,
f6
)
+
addr
-
PT_F6
);
ptr
=
(
unsigned
long
*
)
((
long
)
pt
+
offsetof
(
struct
pt_regs
,
f6
)
+
addr
-
PT_F6
);
break
;
break
;
case
PT_AR_BSPSTORE
:
case
PT_AR_BSPSTORE
:
ptr
=
(
unsigned
long
*
)
((
long
)
pt
+
offsetof
(
struct
pt_regs
,
ar_bspstore
));
ptr
=
(
unsigned
long
*
)
((
long
)
pt
+
offsetof
(
struct
pt_regs
,
ar_bspstore
));
break
;
break
;
case
PT_AR_RSC
:
case
PT_AR_RSC
:
ptr
=
(
unsigned
long
*
)
((
long
)
pt
+
offsetof
(
struct
pt_regs
,
ar_rsc
));
ptr
=
(
unsigned
long
*
)
((
long
)
pt
+
offsetof
(
struct
pt_regs
,
ar_rsc
));
...
@@ -881,7 +888,8 @@ access_uarea (struct task_struct *child, unsigned long addr, unsigned long *data
...
@@ -881,7 +888,8 @@ access_uarea (struct task_struct *child, unsigned long addr, unsigned long *data
return
-
1
;
return
-
1
;
}
}
}
else
if
(
addr
<=
PT_AR_SSD
)
{
}
else
if
(
addr
<=
PT_AR_SSD
)
{
ptr
=
(
unsigned
long
*
)
((
long
)
pt
+
offsetof
(
struct
pt_regs
,
ar_csd
)
+
addr
-
PT_AR_CSD
);
ptr
=
(
unsigned
long
*
)
((
long
)
pt
+
offsetof
(
struct
pt_regs
,
ar_csd
)
+
addr
-
PT_AR_CSD
);
}
else
{
}
else
{
/* access debug registers */
/* access debug registers */
...
...
arch/ia64/kernel/setup.c
View file @
ce2070ec
...
@@ -34,14 +34,15 @@
...
@@ -34,14 +34,15 @@
#include <linux/initrd.h>
#include <linux/initrd.h>
#include <asm/ia32.h>
#include <asm/ia32.h>
#include <asm/machvec.h>
#include <asm/mca.h>
#include <asm/page.h>
#include <asm/page.h>
#include <asm/pgtable.h>
#include <asm/pgtable.h>
#include <asm/machvec.h>
#include <asm/processor.h>
#include <asm/processor.h>
#include <asm/sal.h>
#include <asm/sal.h>
#include <asm/system.h>
#include <asm/mca.h>
#include <asm/smp.h>
#include <asm/smp.h>
#include <asm/system.h>
#include <asm/unistd.h>
#if defined(CONFIG_SMP) && (IA64_CPU_SIZE > PAGE_SIZE)
#if defined(CONFIG_SMP) && (IA64_CPU_SIZE > PAGE_SIZE)
# error "struct cpuinfo_ia64 too big!"
# error "struct cpuinfo_ia64 too big!"
...
...
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