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
ebcaf5e8
Commit
ebcaf5e8
authored
Jan 18, 2004
by
Andrew Morton
Committed by
Linus Torvalds
Jan 18, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] ppc64: various trivial patches
From: Anton Blanchard <anton@samba.org> various trivial patches
parent
50405fa2
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
25 additions
and
11 deletions
+25
-11
arch/ppc64/Kconfig
arch/ppc64/Kconfig
+1
-1
arch/ppc64/kernel/chrp_setup.c
arch/ppc64/kernel/chrp_setup.c
+15
-7
arch/ppc64/kernel/entry.S
arch/ppc64/kernel/entry.S
+6
-0
arch/ppc64/kernel/proc_pmc.c
arch/ppc64/kernel/proc_pmc.c
+0
-2
arch/ppc64/kernel/rtas_flash.c
arch/ppc64/kernel/rtas_flash.c
+1
-0
arch/ppc64/kernel/smp.c
arch/ppc64/kernel/smp.c
+2
-1
No files found.
arch/ppc64/Kconfig
View file @
ebcaf5e8
...
...
@@ -318,7 +318,7 @@ endmenu
config VIOPATH
bool
depends on
PPC_ISERIES
depends on
VIOCONS || VIODASD || VIOCD || VIOTAPE || VETH
default y
source "arch/ppc64/oprofile/Kconfig"
...
...
arch/ppc64/kernel/chrp_setup.c
View file @
ebcaf5e8
...
...
@@ -234,6 +234,10 @@ void __init
chrp_init
(
unsigned
long
r3
,
unsigned
long
r4
,
unsigned
long
r5
,
unsigned
long
r6
,
unsigned
long
r7
)
{
struct
device_node
*
dn
;
char
*
hypertas
;
unsigned
int
len
;
#if 0 /* PPPBBB remove this later... -Peter */
#ifdef CONFIG_BLK_DEV_INITRD
/* take care of initrd if we have one */
...
...
@@ -273,15 +277,12 @@ chrp_init(unsigned long r3, unsigned long r4, unsigned long r5,
* using contents of device-tree/ibm,hypertas-functions.
* Ultimately this functionality may be moved into prom.c prom_init().
*/
struct
device_node
*
dn
;
char
*
hypertas
;
unsigned
int
len
;
dn
=
of_find_node_by_path
(
"/rtas"
);
cur_cpu_spec
->
firmware_features
=
0
;
hypertas
=
get_property
(
dn
,
"ibm,hypertas-functions"
,
&
len
);
if
(
hypertas
)
{
while
(
len
>
0
){
int
i
;
int
i
,
hypertas_len
;
/* check value against table of strings */
for
(
i
=
0
;
i
<
FIRMWARE_MAX_FEATURES
;
i
++
)
{
if
((
firmware_features_table
[
i
].
name
)
&&
(
strcmp
(
firmware_features_table
[
i
].
name
,
hypertas
))
==
0
)
{
...
...
@@ -290,7 +291,7 @@ chrp_init(unsigned long r3, unsigned long r4, unsigned long r5,
break
;
}
}
int
hypertas_len
=
strlen
(
hypertas
);
hypertas_len
=
strlen
(
hypertas
);
len
-=
hypertas_len
+
1
;
hypertas
+=
hypertas_len
+
1
;
}
...
...
@@ -325,6 +326,13 @@ chrp_progress(char *s, unsigned short hex)
display_character
=
rtas_token
(
"display-character"
);
set_indicator
=
rtas_token
(
"set-indicator"
);
}
if
(
display_character
==
RTAS_UNKNOWN_SERVICE
)
{
/* use hex display */
if
(
set_indicator
==
RTAS_UNKNOWN_SERVICE
)
return
;
rtas_call
(
set_indicator
,
3
,
1
,
NULL
,
6
,
0
,
hex
);
return
;
}
if
(
display_character
==
RTAS_UNKNOWN_SERVICE
)
{
/* use hex display if available */
...
...
arch/ppc64/kernel/entry.S
View file @
ebcaf5e8
...
...
@@ -499,6 +499,12 @@ _STATIC(rtas_return_loc)
SET_REG_TO_CONST
(
r5
,
KERNELBASE
)
sub
r4
,
r4
,
r5
/*
RELOC
the
PACA
base
pointer
*/
mfmsr
r6
li
r0
,
MSR_RI
andc
r6
,
r6
,
r0
sync
mtmsrd
r6
ld
r1
,
PACAR1
(
r4
)
/*
Restore
our
SP
*/
LOADADDR
(
r3
,.
rtas_restore_regs
)
ld
r4
,
PACASAVEDMSR
(
r4
)
/*
Restore
our
MSR
*/
...
...
arch/ppc64/kernel/proc_pmc.c
View file @
ebcaf5e8
...
...
@@ -44,8 +44,6 @@
static
int
proc_pmc_control_mode
=
0
;
static
struct
proc_dir_entry
*
proc_ppc64_root
=
NULL
;
static
struct
proc_dir_entry
*
proc_ppc64_pmc_root
=
NULL
;
static
struct
proc_dir_entry
*
proc_ppc64_pmc_system_root
=
NULL
;
static
struct
proc_dir_entry
*
proc_ppc64_pmc_cpu_root
[
NR_CPUS
]
=
{
NULL
,
};
...
...
arch/ppc64/kernel/rtas_flash.c
View file @
ebcaf5e8
...
...
@@ -17,6 +17,7 @@
#include <linux/proc_fs.h>
#include <linux/init.h>
#include <asm/uaccess.h>
#include <asm/proc_fs.h>
#include <asm/rtas.h>
#define MODULE_VERSION "1.0"
...
...
arch/ppc64/kernel/smp.c
View file @
ebcaf5e8
...
...
@@ -295,6 +295,8 @@ smp_xics_message_pass(int target, int msg, unsigned long data, int wait)
}
}
extern
void
xics_request_IPIs
(
void
);
static
int
__init
smp_xics_probe
(
void
)
{
int
i
;
...
...
@@ -305,7 +307,6 @@ static int __init smp_xics_probe(void)
nr_cpus
++
;
}
#ifdef CONFIG_SMP
extern
void
xics_request_IPIs
(
void
);
xics_request_IPIs
();
#endif
...
...
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