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
c073cb6c
Commit
c073cb6c
authored
Sep 19, 2002
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc64: clean up some 2.4 - 2.5 differences
parent
4df1d044
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
27 additions
and
38 deletions
+27
-38
arch/ppc64/kernel/LparData.c
arch/ppc64/kernel/LparData.c
+0
-6
arch/ppc64/kernel/iSeries_VpdInfo.c
arch/ppc64/kernel/iSeries_VpdInfo.c
+0
-1
arch/ppc64/kernel/lmb.c
arch/ppc64/kernel/lmb.c
+1
-1
arch/ppc64/kernel/pci_dn.c
arch/ppc64/kernel/pci_dn.c
+17
-13
arch/ppc64/kernel/proc_pmc.c
arch/ppc64/kernel/proc_pmc.c
+0
-1
arch/ppc64/kernel/rtas.c
arch/ppc64/kernel/rtas.c
+3
-3
arch/ppc64/kernel/rtas_flash.c
arch/ppc64/kernel/rtas_flash.c
+0
-2
arch/ppc64/kernel/traps.c
arch/ppc64/kernel/traps.c
+1
-1
arch/ppc64/xmon/xmon.c
arch/ppc64/xmon/xmon.c
+5
-5
include/asm-ppc64/iSeries/LparData.h
include/asm-ppc64/iSeries/LparData.h
+0
-5
No files found.
arch/ppc64/kernel/LparData.c
View file @
c073cb6c
...
...
@@ -6,7 +6,6 @@
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version.
*/
#define __KERNEL__ 1
#include <asm/types.h>
#include <asm/page.h>
#include <stddef.h>
...
...
@@ -248,8 +247,3 @@ msChunks_alloc(unsigned long mem, unsigned long num_chunks, unsigned long chunk_
return
mem
;
}
arch/ppc64/kernel/iSeries_VpdInfo.c
View file @
c073cb6c
...
...
@@ -34,7 +34,6 @@
#include <asm/iSeries/HvTypes.h>
#include <asm/iSeries/mf.h>
#include <asm/iSeries/LparData.h>
#include <asm/iSeries/HvCallPci.h>
//#include <asm/iSeries/iSeries_VpdInfo.h>
#include <asm/iSeries/iSeries_pci.h>
#include "pci.h"
...
...
arch/ppc64/kernel/lmb.c
View file @
c073cb6c
...
...
@@ -287,7 +287,7 @@ lmb_alloc_base(unsigned long size, unsigned long align, unsigned long max_addr)
continue
;
if
(
max_addr
==
LMB_ALLOC_ANYWHERE
)
base
=
_ALIGN_DOWN
(
lmbbase
+
lmbsize
-
size
,
align
);
base
=
_ALIGN_DOWN
(
lmbbase
+
lmbsize
-
size
,
align
);
else
if
(
lmbbase
<
max_addr
)
base
=
_ALIGN_DOWN
(
min
(
lmbbase
+
lmbsize
,
max_addr
)
-
size
,
align
);
else
...
...
arch/ppc64/kernel/pci_dn.c
View file @
c073cb6c
...
...
@@ -215,6 +215,7 @@ void *traverse_all_pci_devices(traverse_func pre)
return
NULL
;
}
/* Traversal func that looks for a <busno,devfcn> value.
* If found, the device_node is returned (thus terminating the traversal).
*/
...
...
@@ -223,7 +224,6 @@ is_devfn_node(struct device_node *dn, void *data)
{
int
busno
=
((
unsigned
long
)
data
>>
8
)
&
0xff
;
int
devfn
=
((
unsigned
long
)
data
)
&
0xff
;
return
(
devfn
==
dn
->
devfn
&&
busno
==
dn
->
busno
)
?
dn
:
NULL
;
}
...
...
@@ -249,8 +249,9 @@ create_eads_node(struct device_node *other_eads)
*
eads
=
*
other_eads
;
eads
->
devfn
&=
~
7
;
/* make it function zero */
eads
->
tce_table
=
NULL
;
/* NOTE: share properties. We could copy but for now this should suffice.
* The full_name is also incorrect...but seems harmless.
/*
* NOTE: share properties. We could copy but for now this should
* suffice. The full_name is also incorrect...but seems harmless.
*/
eads
->
child
=
NULL
;
eads
->
next
=
NULL
;
...
...
@@ -285,21 +286,25 @@ struct device_node *fetch_dev_dn(struct pci_dev *dev)
dev
->
sysdata
=
dn
;
/* ToDo: call some device init hook here */
}
else
{
/* Now it is very possible that we can't find the device because it is
* not the zero'th device of a mutifunction device and we don't have
* permission to read the zero'th device. If this is the case, Linux
* would ordinarily skip all the other functions.
/* Now it is very possible that we can't find the device
* because it is not the zero'th device of a mutifunction
* device and we don't have permission to read the zero'th
* device. If this is the case, Linux would ordinarily skip
* all the other functions.
*/
if
((
searchval
&
0x7
)
==
0
)
{
struct
device_node
*
thisdevdn
;
/* Ok, we are looking for fn == 0. Let's check for other functions. */
thisdevdn
=
(
struct
device_node
*
)
traverse_pci_devices
(
phb_dn
,
is_devfn_sub_node
,
NULL
,
(
void
*
)
searchval
);
if
(
thisdevdn
)
{
/* Ah ha! There does exist a sub function. Now this isn't an exact
* match for searchval, but in order to get Linux to believe the sub
* functions exist we will need to manufacture a fake device_node
* for this zero'th function. To keept this simple for now we only
* handle pci bridges and we just hand back the found node which
/* Ah ha! There does exist a sub function.
* Now this isn't an exact match for
* searchval, but in order to get Linux to
* believe the sub functions exist we will
* need to manufacture a fake device_node for
* this zero'th function. To keept this
* simple for now we only handle pci bridges
* and we just hand back the found node which
* isn't correct, but Linux won't care.
*/
char
*
device_type
=
(
char
*
)
get_property
(
thisdevdn
,
"device_type"
,
0
);
...
...
@@ -368,7 +373,6 @@ pci_fixup_bus_sysdata_list(struct list_head *bus_list)
}
}
/******************************************************************
* Fixup the bus->sysdata ptrs to point to the bus' device_node.
* This is done late in pcibios_init(). We do this mostly for
...
...
arch/ppc64/kernel/proc_pmc.c
View file @
c073cb6c
...
...
@@ -24,7 +24,6 @@
* End Change Activity
*/
#include <linux/config.h>
#include <linux/proc_fs.h>
#include <linux/spinlock.h>
...
...
arch/ppc64/kernel/rtas.c
View file @
c073cb6c
...
...
@@ -141,7 +141,7 @@ rtas_call(int token, int nargs, int nret,
rtas_args
->
rets
=
(
rtas_arg_t
*
)
&
(
rtas_args
->
args
[
nargs
]);
va_start
(
list
,
outputs
);
for
(
i
=
0
;
i
<
nargs
;
++
i
)
{
rtas_args
->
args
[
i
]
=
(
rtas_arg_t
)
LONG_LSW
(
va_arg
(
list
,
ulong
));
rtas_args
->
args
[
i
]
=
(
rtas_arg_t
)
LONG_LSW
(
va_arg
(
list
,
ulong
));
PPCDBG
(
PPCDBG_RTAS
,
"
\t
narg[%d] = 0x%lx
\n
"
,
i
,
rtas_args
->
args
[
i
]);
}
va_end
(
list
);
...
...
@@ -164,8 +164,8 @@ rtas_call(int token, int nargs, int nret,
spin_unlock_irqrestore
(
&
rtas
.
lock
,
s
);
#endif
ifppcdebug
(
PPCDBG_RTAS
)
{
for
(
i
=
0
;
i
<
nret
;
i
++
)
udbg_printf
(
"
\t
nret[%d] = 0x%lx
\n
"
,
i
,
(
ulong
)
rtas_args
->
rets
[
i
]);
for
(
i
=
0
;
i
<
nret
;
i
++
)
udbg_printf
(
"
\t
nret[%d] = 0x%lx
\n
"
,
i
,
(
ulong
)
rtas_args
->
rets
[
i
]);
}
if
(
nret
>
1
&&
outputs
!=
NULL
)
...
...
arch/ppc64/kernel/rtas_flash.c
View file @
c073cb6c
...
...
@@ -14,8 +14,6 @@
*/
#include <linux/module.h>
#include <linux/config.h>
#include <linux/proc_fs.h>
#include <linux/init.h>
#include <asm/uaccess.h>
...
...
arch/ppc64/kernel/traps.c
View file @
c073cb6c
/*
* linux/arch/ppc/kernel/traps.c
* linux/arch/ppc
64
/kernel/traps.c
*
* Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org)
*
...
...
arch/ppc64/xmon/xmon.c
View file @
c073cb6c
...
...
@@ -332,10 +332,10 @@ xmon(struct pt_regs *excp)
cmd
=
cmds
(
excp
);
if
(
cmd
==
's'
)
{
xmon_trace
[
smp_processor_id
()]
=
SSTEP
;
excp
->
msr
|=
0x400
;
excp
->
msr
|=
MSR_SE
;
}
else
if
(
at_breakpoint
(
excp
->
nip
))
{
xmon_trace
[
smp_processor_id
()]
=
BRSTEP
;
excp
->
msr
|=
0x400
;
excp
->
msr
|=
MSR_SE
;
}
else
{
xmon_trace
[
smp_processor_id
()]
=
0
;
insert_bpts
();
...
...
@@ -450,7 +450,7 @@ xmon_bpt(struct pt_regs *regs)
remove_bpts
();
excprint
(
regs
);
xmon_trace
[
smp_processor_id
()]
=
BRSTEP
;
regs
->
msr
|=
0x400
;
regs
->
msr
|=
MSR_SE
;
}
else
{
printf
(
"Stopped at breakpoint %x (%lx %s)
\n
"
,
(
bp
-
bpts
)
+
1
,
bp
->
address
,
bp
->
funcname
);
xmon
(
regs
);
...
...
@@ -480,7 +480,7 @@ xmon_dabr_match(struct pt_regs *regs)
remove_bpts
();
excprint
(
regs
);
xmon_trace
[
smp_processor_id
()]
=
BRSTEP
;
regs
->
msr
|=
0x400
;
regs
->
msr
|=
MSR_SE
;
}
else
{
dabr
.
instr
=
regs
->
nip
;
xmon
(
regs
);
...
...
@@ -496,7 +496,7 @@ xmon_iabr_match(struct pt_regs *regs)
remove_bpts
();
excprint
(
regs
);
xmon_trace
[
smp_processor_id
()]
=
BRSTEP
;
regs
->
msr
|=
0x400
;
regs
->
msr
|=
MSR_SE
;
}
else
{
xmon
(
regs
);
}
...
...
include/asm-ppc64/iSeries/LparData.h
View file @
c073cb6c
...
...
@@ -17,10 +17,6 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef _PPC_TYPES_H
#include <asm/types.h>
#endif
#ifndef _LPARDATA_H
#define _LPARDATA_H
...
...
@@ -40,7 +36,6 @@
#include <asm/iSeries/ItExtVpdPanel.h>
#include <asm/iSeries/ItLpQueue.h>
#include <asm/iSeries/IoHriProcessorVpd.h>
#include <asm/page.h>
extern
struct
LparMap
xLparMap
;
extern
struct
HvReleaseData
hvReleaseData
;
...
...
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