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
8a972b41
Commit
8a972b41
authored
Jul 22, 2003
by
Paul Mackerras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PPC32: Use char[] consistently with __bss_start, _end, etc.
parent
50692f8c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
arch/ppc/kernel/setup.c
arch/ppc/kernel/setup.c
+1
-4
arch/ppc/syslib/prom_init.c
arch/ppc/syslib/prom_init.c
+2
-3
include/asm-ppc/sections.h
include/asm-ppc/sections.h
+4
-0
No files found.
arch/ppc/kernel/setup.c
View file @
8a972b41
...
...
@@ -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/syslib/prom_init.c
View file @
8a972b41
...
...
@@ -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/sections.h
View file @
8a972b41
...
...
@@ -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