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
f3f62256
Commit
f3f62256
authored
Feb 23, 2004
by
Andrew Morton
Committed by
Linus Torvalds
Feb 23, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] ppc64: uniprocessor compile fixes
From: Anton Blanchard <anton@samba.org> UP compile fixes.
parent
52b5a7dd
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
9 deletions
+11
-9
arch/ppc64/kernel/open_pic.c
arch/ppc64/kernel/open_pic.c
+3
-1
arch/ppc64/kernel/prom.c
arch/ppc64/kernel/prom.c
+6
-3
arch/ppc64/mm/init.c
arch/ppc64/mm/init.c
+2
-0
arch/ppc64/xmon/xmon.c
arch/ppc64/xmon/xmon.c
+0
-5
No files found.
arch/ppc64/kernel/open_pic.c
View file @
f3f62256
...
@@ -76,7 +76,6 @@ static u_int NumSources;
...
@@ -76,7 +76,6 @@ static u_int NumSources;
static
int
NumISUs
;
static
int
NumISUs
;
static
int
open_pic_irq_offset
;
static
int
open_pic_irq_offset
;
static
volatile
unsigned
char
*
chrp_int_ack_special
;
static
volatile
unsigned
char
*
chrp_int_ack_special
;
static
int
broken_ipi_registers
;
OpenPIC_SourcePtr
ISU
[
OPENPIC_MAX_ISU
];
OpenPIC_SourcePtr
ISU
[
OPENPIC_MAX_ISU
];
...
@@ -248,6 +247,9 @@ static void openpic_safe_writefield(volatile u_int *addr, u_int mask,
...
@@ -248,6 +247,9 @@ static void openpic_safe_writefield(volatile u_int *addr, u_int mask,
}
}
#ifdef CONFIG_SMP
#ifdef CONFIG_SMP
static
int
broken_ipi_registers
;
static
u_int
openpic_read_IPI
(
volatile
u_int
*
addr
)
static
u_int
openpic_read_IPI
(
volatile
u_int
*
addr
)
{
{
u_int
val
=
0
;
u_int
val
=
0
;
...
...
arch/ppc64/kernel/prom.c
View file @
f3f62256
...
@@ -930,10 +930,12 @@ prom_hold_cpus(unsigned long mem)
...
@@ -930,10 +930,12 @@ prom_hold_cpus(unsigned long mem)
unsigned
long
*
spinloop
=
__v2a
(
&
__secondary_hold_spinloop
);
unsigned
long
*
spinloop
=
__v2a
(
&
__secondary_hold_spinloop
);
unsigned
long
*
acknowledge
=
__v2a
(
&
__secondary_hold_acknowledge
);
unsigned
long
*
acknowledge
=
__v2a
(
&
__secondary_hold_acknowledge
);
unsigned
long
secondary_hold
=
(
unsigned
long
)
__v2a
(
*
PTRRELOC
((
unsigned
long
*
)
__secondary_hold
));
unsigned
long
secondary_hold
=
(
unsigned
long
)
__v2a
(
*
PTRRELOC
((
unsigned
long
*
)
__secondary_hold
));
struct
naca_struct
*
_naca
=
RELOC
(
naca
);
struct
systemcfg
*
_systemcfg
=
RELOC
(
systemcfg
);
struct
systemcfg
*
_systemcfg
=
RELOC
(
systemcfg
);
struct
paca_struct
*
_xPaca
=
PTRRELOC
(
&
paca
[
0
]);
struct
paca_struct
*
_xPaca
=
PTRRELOC
(
&
paca
[
0
]);
struct
prom_t
*
_prom
=
PTRRELOC
(
&
prom
);
struct
prom_t
*
_prom
=
PTRRELOC
(
&
prom
);
#ifdef CONFIG_SMP
struct
naca_struct
*
_naca
=
RELOC
(
naca
);
#endif
/* On pmac, we just fill out the various global bitmasks and
/* On pmac, we just fill out the various global bitmasks and
* arrays indicating our CPUs are here, they are actually started
* arrays indicating our CPUs are here, they are actually started
...
@@ -1103,8 +1105,9 @@ prom_hold_cpus(unsigned long mem)
...
@@ -1103,8 +1105,9 @@ prom_hold_cpus(unsigned long mem)
cpu_set
(
cpuid
,
RELOC
(
cpu_online_map
));
cpu_set
(
cpuid
,
RELOC
(
cpu_online_map
));
cpu_set
(
cpuid
,
RELOC
(
cpu_present_at_boot
));
cpu_set
(
cpuid
,
RELOC
(
cpu_present_at_boot
));
}
}
#endif
next:
next:
#ifdef CONFIG_SMP
/* Init paca for secondary threads. They start later. */
/* Init paca for secondary threads. They start later. */
for
(
i
=
1
;
i
<
cpu_threads
;
i
++
)
{
for
(
i
=
1
;
i
<
cpu_threads
;
i
++
)
{
cpuid
++
;
cpuid
++
;
...
...
arch/ppc64/mm/init.c
View file @
f3f62256
...
@@ -98,10 +98,12 @@ DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
...
@@ -98,10 +98,12 @@ DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
DEFINE_PER_CPU
(
struct
pte_freelist_batch
*
,
pte_freelist_cur
);
DEFINE_PER_CPU
(
struct
pte_freelist_batch
*
,
pte_freelist_cur
);
unsigned
long
pte_freelist_forced_free
;
unsigned
long
pte_freelist_forced_free
;
#ifdef CONFIG_SMP
static
void
pte_free_smp_sync
(
void
*
arg
)
static
void
pte_free_smp_sync
(
void
*
arg
)
{
{
/* Do nothing, just ensure we sync with all CPUs */
/* Do nothing, just ensure we sync with all CPUs */
}
}
#endif
/* This is only called when we are critically out of memory
/* This is only called when we are critically out of memory
* (and fail to get a page in pte_free_tlb).
* (and fail to get a page in pte_free_tlb).
...
...
arch/ppc64/xmon/xmon.c
View file @
f3f62256
...
@@ -176,11 +176,9 @@ Commands:\n\
...
@@ -176,11 +176,9 @@ Commands:\n\
x exit monitor
\n
\
x exit monitor
\n
\
u dump segment table or SLB
\n
\
u dump segment table or SLB
\n
\
? help
\n
"
? help
\n
"
#ifndef CONFIG_PPC_ISERIES
"\
"\
zr reboot
\n
\
zr reboot
\n
\
zh halt
\n
"
zh halt
\n
"
#endif
;
;
static
int
xmon_trace
[
NR_CPUS
];
static
int
xmon_trace
[
NR_CPUS
];
...
@@ -577,10 +575,8 @@ cmds(struct pt_regs *excp)
...
@@ -577,10 +575,8 @@ cmds(struct pt_regs *excp)
cpu_cmd
();
cpu_cmd
();
break
;
break
;
#endif
/* CONFIG_SMP */
#endif
/* CONFIG_SMP */
#ifndef CONFIG_PPC_ISERIES
case
'z'
:
case
'z'
:
bootcmds
();
bootcmds
();
#endif
case
'T'
:
case
'T'
:
debug_trace
();
debug_trace
();
break
;
break
;
...
@@ -1148,7 +1144,6 @@ super_regs()
...
@@ -1148,7 +1144,6 @@ super_regs()
int
cmd
;
int
cmd
;
unsigned
long
val
;
unsigned
long
val
;
#ifdef CONFIG_PPC_ISERIES
#ifdef CONFIG_PPC_ISERIES
int
i
;
struct
paca_struct
*
ptrPaca
=
NULL
;
struct
paca_struct
*
ptrPaca
=
NULL
;
struct
ItLpPaca
*
ptrLpPaca
=
NULL
;
struct
ItLpPaca
*
ptrLpPaca
=
NULL
;
struct
ItLpRegSave
*
ptrLpRegSave
=
NULL
;
struct
ItLpRegSave
*
ptrLpRegSave
=
NULL
;
...
...
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