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
22dc9664
Commit
22dc9664
authored
Jul 25, 2003
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://ppc.bkbits.net/for-linus-ppc
into home.osdl.org:/home/torvalds/v2.5/linux
parents
314635e1
d0e99679
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
7 deletions
+14
-7
arch/ppc/kernel/setup.c
arch/ppc/kernel/setup.c
+1
-4
arch/ppc/mm/mem_pieces.c
arch/ppc/mm/mem_pieces.c
+1
-0
arch/ppc/syslib/prom_init.c
arch/ppc/syslib/prom_init.c
+2
-3
include/asm-ppc/local.h
include/asm-ppc/local.h
+6
-0
include/asm-ppc/sections.h
include/asm-ppc/sections.h
+4
-0
No files found.
arch/ppc/kernel/setup.c
View file @
22dc9664
...
...
@@ -268,7 +268,6 @@ __init
unsigned
long
early_init
(
int
r3
,
int
r4
,
int
r5
)
{
extern
char
__bss_start
,
_end
;
unsigned
long
phys
;
unsigned
long
offset
=
reloc_offset
();
...
...
@@ -277,7 +276,7 @@ early_init(int r3, int r4, int r5)
/* First zero the BSS -- use memset, some arches don't have
* caches on yet */
memset_io
(
PTRRELOC
(
&
__bss_start
),
0
,
&
_end
-
&
__bss_start
);
memset_io
(
PTRRELOC
(
&
__bss_start
),
0
,
_end
-
__bss_start
);
/*
* Identify the CPU type and fix up code sections
...
...
@@ -466,7 +465,6 @@ platform_init(unsigned long r3, unsigned long r4, unsigned long r5,
struct
bi_record
*
find_bootinfo
(
void
)
{
struct
bi_record
*
rec
;
extern
char
__bss_start
[];
rec
=
(
struct
bi_record
*
)
_ALIGN
((
ulong
)
__bss_start
+
(
1
<<
20
)
-
1
,(
1
<<
20
));
if
(
rec
->
tag
!=
BI_FIRST
)
{
...
...
@@ -591,7 +589,6 @@ arch_initcall(ppc_init);
void
__init
setup_arch
(
char
**
cmdline_p
)
{
extern
int
panic_timeout
;
extern
char
_etext
[],
_edata
[];
extern
char
*
klimit
;
extern
void
do_init_bootmem
(
void
);
...
...
arch/ppc/mm/mem_pieces.c
View file @
22dc9664
...
...
@@ -18,6 +18,7 @@
#include <linux/kernel.h>
#include <linux/stddef.h>
#include <linux/init.h>
#include <asm/page.h>
#include "mem_pieces.h"
...
...
arch/ppc/syslib/prom_init.c
View file @
22dc9664
...
...
@@ -133,7 +133,6 @@ char *bootdevice;
struct
device_node
*
allnodes
;
extern
char
*
klimit
;
extern
char
_stext
;
static
void
__init
prom_exit
(
void
)
...
...
@@ -601,7 +600,7 @@ prom_hold_cpus(unsigned long mem)
/* copy the holding pattern code to someplace safe (0) */
/* the holding pattern is now within the first 0x100
bytes of the kernel image -- paulus */
memcpy
((
void
*
)
0
,
&
_stext
,
0x100
);
memcpy
((
void
*
)
0
,
_stext
,
0x100
);
flush_icache_range
(
0
,
0x100
);
/* look for cpus */
...
...
@@ -631,7 +630,7 @@ prom_hold_cpus(unsigned long mem)
prom_print
(
path
);
*
(
ulong
*
)(
0x4
)
=
0
;
call_prom
(
"start-cpu"
,
3
,
0
,
node
,
(
char
*
)
__secondary_hold
-
&
_stext
,
cpu
);
(
char
*
)
__secondary_hold
-
_stext
,
cpu
);
prom_print
(
"..."
);
for
(
i
=
0
;
(
i
<
10000
)
&&
(
*
(
ulong
*
)(
0x4
)
==
0
);
i
++
)
;
...
...
include/asm-ppc/local.h
0 → 100644
View file @
22dc9664
#ifndef __PPC_LOCAL_H
#define __PPC_LOCAL_H
#include <asm-generic/local.h>
#endif
/* __PPC_LOCAL_H */
include/asm-ppc/sections.h
View file @
22dc9664
...
...
@@ -2,6 +2,10 @@
#ifndef _PPC_SECTIONS_H
#define _PPC_SECTIONS_H
#include <asm-generic/sections.h>
extern
char
_end
[];
#define __pmac __attribute__ ((__section__ (".pmac.text")))
#define __pmacdata __attribute__ ((__section__ (".pmac.data")))
#define __pmacfunc(__argpmac) \
...
...
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