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
16675c51
Commit
16675c51
authored
Jul 29, 2003
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc64: add asm/sections.h
parent
a479e93c
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
27 additions
and
27 deletions
+27
-27
arch/ppc64/boot/main.c
arch/ppc64/boot/main.c
+2
-3
arch/ppc64/kernel/iSeries_setup.c
arch/ppc64/kernel/iSeries_setup.c
+3
-5
arch/ppc64/kernel/process.c
arch/ppc64/kernel/process.c
+1
-2
arch/ppc64/kernel/setup.c
arch/ppc64/kernel/setup.c
+2
-2
arch/ppc64/kernel/time.c
arch/ppc64/kernel/time.c
+2
-3
arch/ppc64/kernel/traps.c
arch/ppc64/kernel/traps.c
+2
-2
arch/ppc64/mm/init.c
arch/ppc64/mm/init.c
+7
-10
include/asm-ppc64/sections.h
include/asm-ppc64/sections.h
+8
-0
No files found.
arch/ppc64/boot/main.c
View file @
16675c51
...
...
@@ -45,7 +45,7 @@ char *avail_high;
unsigned
int
heap_use
;
unsigned
int
heap_max
;
extern
char
_
end
[];
extern
char
_
start
[];
extern
char
_vmlinux_start
[];
extern
char
_vmlinux_end
[];
extern
char
_sysmap_start
[];
...
...
@@ -85,7 +85,6 @@ void
start
(
unsigned
long
a1
,
unsigned
long
a2
,
void
*
promptr
)
{
unsigned
long
i
,
claim_addr
,
claim_size
;
extern
char
_start
;
struct
bi_record
*
bi_recs
;
kernel_entry_t
kernel_entry
;
Elf64_Ehdr
*
elf64
;
...
...
@@ -101,7 +100,7 @@ start(unsigned long a1, unsigned long a2, void *promptr)
if
(
getprop
(
chosen_handle
,
"stdin"
,
&
stdin
,
sizeof
(
stdin
))
!=
4
)
exit
();
printf
(
"zImage starting: loaded at 0x%x
\n\r
"
,
(
unsigned
)
&
_start
);
printf
(
"zImage starting: loaded at 0x%x
\n\r
"
,
(
unsigned
)
_start
);
#if 0
sysmap.size = (unsigned long)(_sysmap_end - _sysmap_start);
...
...
arch/ppc64/kernel/iSeries_setup.c
View file @
16675c51
...
...
@@ -39,6 +39,7 @@
#include "iSeries_setup.h"
#include <asm/naca.h>
#include <asm/paca.h>
#include <asm/sections.h>
#include <asm/iSeries/LparData.h>
#include <asm/iSeries/HvCallHpt.h>
#include <asm/iSeries/HvLpConfig.h>
...
...
@@ -91,9 +92,6 @@ extern unsigned long embedded_sysmap_end;
extern
unsigned
long
iSeries_recal_tb
;
extern
unsigned
long
iSeries_recal_titan
;
extern
char
_stext
;
extern
char
_etext
;
static
int
mf_initialized
=
0
;
struct
MemoryBlock
{
...
...
@@ -387,7 +385,7 @@ iSeries_init(unsigned long r3, unsigned long r4, unsigned long r5,
if
(
p
>
cmd_line
&&
p
[
-
1
]
!=
' '
)
continue
;
dprof_shift
=
simple_strtoul
(
q
,
&
q
,
0
);
dprof_len
=
(
unsigned
long
)
&
_etext
-
(
unsigned
long
)
&
_stext
;
dprof_len
=
(
unsigned
long
)
_etext
-
(
unsigned
long
)
_stext
;
dprof_len
>>=
dprof_shift
;
size
=
((
dprof_len
*
sizeof
(
unsigned
int
))
+
(
PAGE_SIZE
-
1
))
&
PAGE_MASK
;
dprof_buffer
=
(
unsigned
int
*
)((
klimit
+
(
PAGE_SIZE
-
1
))
&
PAGE_MASK
);
...
...
@@ -868,7 +866,7 @@ static void iSeries_setup_dprofile(void)
paca
[
i
].
prof_shift
=
dprof_shift
;
paca
[
i
].
prof_len
=
dprof_len
-
1
;
paca
[
i
].
prof_buffer
=
dprof_buffer
;
paca
[
i
].
prof_stext
=
(
unsigned
*
)
&
_stext
;
paca
[
i
].
prof_stext
=
(
unsigned
*
)
_stext
;
mb
();
paca
[
i
].
prof_enabled
=
1
;
}
...
...
arch/ppc64/kernel/process.c
View file @
16675c51
...
...
@@ -46,6 +46,7 @@
#include <asm/iSeries/HvCallHpt.h>
#include <asm/hardirq.h>
#include <asm/cputable.h>
#include <asm/sections.h>
struct
task_struct
*
last_task_used_math
=
NULL
;
...
...
@@ -424,8 +425,6 @@ void initialize_paca_hardware_interrupt_stack(void)
}
}
extern
char
_stext
[],
_etext
[],
__init_begin
[],
__init_end
[];
char
*
ppc_find_proc_name
(
unsigned
*
p
,
char
*
buf
,
unsigned
buflen
)
{
unsigned
long
tb_flags
;
...
...
arch/ppc64/kernel/setup.c
View file @
16675c51
...
...
@@ -38,6 +38,7 @@
#include <asm/paca.h>
#include <asm/ppcdebug.h>
#include <asm/time.h>
#include <asm/sections.h>
extern
unsigned
long
klimit
;
/* extern void *stab; */
...
...
@@ -489,7 +490,6 @@ extern void sort_exception_table(void);
void
__init
setup_arch
(
char
**
cmdline_p
)
{
extern
int
panic_timeout
;
extern
char
_etext
[],
_edata
[];
extern
void
do_init_bootmem
(
void
);
calibrate_delay
=
ppc64_calibrate_delay
;
...
...
@@ -516,7 +516,7 @@ void __init setup_arch(char **cmdline_p)
init_mm
.
start_code
=
PAGE_OFFSET
;
init_mm
.
end_code
=
(
unsigned
long
)
_etext
;
init_mm
.
end_data
=
(
unsigned
long
)
_edata
;
init_mm
.
brk
=
(
unsigned
long
)
klimit
;
init_mm
.
brk
=
klimit
;
/* Save unparsed command line copy for /proc/cmdline */
strcpy
(
saved_command_line
,
cmd_line
);
...
...
arch/ppc64/kernel/time.c
View file @
16675c51
...
...
@@ -58,10 +58,10 @@
#include <asm/iSeries/HvCallXm.h>
#endif
#include <asm/uaccess.h>
#include <asm/time.h>
#include <asm/ppcdebug.h>
#include <asm/prom.h>
#include <asm/sections.h>
void
smp_local_timer_interrupt
(
struct
pt_regs
*
);
...
...
@@ -108,7 +108,6 @@ static inline void ppc64_do_profile(struct pt_regs *regs)
{
unsigned
long
nip
;
extern
unsigned
long
prof_cpu_mask
;
extern
char
_stext
;
profile_hook
(
regs
);
...
...
@@ -127,7 +126,7 @@ static inline void ppc64_do_profile(struct pt_regs *regs)
if
(
!
((
1
<<
smp_processor_id
())
&
prof_cpu_mask
))
return
;
nip
-=
(
unsigned
long
)
&
_stext
;
nip
-=
(
unsigned
long
)
_stext
;
nip
>>=
prof_shift
;
/*
* Don't ignore out-of-bounds EIP values silently,
...
...
arch/ppc64/kernel/traps.c
View file @
16675c51
...
...
@@ -348,12 +348,12 @@ check_bug_trap(struct pt_regs *regs)
/* this is a WARN_ON rather than BUG/BUG_ON */
printk
(
KERN_ERR
"Badness in %s at %s:%d
\n
"
,
bug
->
function
,
bug
->
file
,
bug
->
line
&
~
BUG_WARNING_TRAP
);
(
unsigned
int
)
bug
->
line
&
~
BUG_WARNING_TRAP
);
dump_stack
();
return
1
;
}
printk
(
KERN_CRIT
"kernel BUG in %s at %s:%d!
\n
"
,
bug
->
function
,
bug
->
file
,
bug
->
line
);
bug
->
function
,
bug
->
file
,
(
unsigned
int
)
bug
->
line
);
return
0
;
}
...
...
arch/ppc64/mm/init.c
View file @
16675c51
...
...
@@ -57,8 +57,8 @@
#include <asm/processor.h>
#include <asm/mmzone.h>
#include <asm/cputable.h>
#include <asm/ppcdebug.h>
#include <asm/sections.h>
#ifdef CONFIG_PPC_ISERIES
#include <asm/iSeries/iSeries_dma.h>
...
...
@@ -69,9 +69,6 @@ int mem_init_done;
unsigned
long
ioremap_bot
=
IMALLOC_BASE
;
extern
pgd_t
swapper_pg_dir
[];
extern
char
__init_begin
,
__init_end
;
extern
char
_start
[],
_end
[];
extern
char
_stext
[],
etext
[];
extern
struct
task_struct
*
current_set
[
NR_CPUS
];
extern
pgd_t
ioremap_dir
[];
...
...
@@ -384,15 +381,15 @@ void free_initmem(void)
{
unsigned
long
addr
;
addr
=
(
unsigned
long
)
(
&
__init_begin
)
;
for
(;
addr
<
(
unsigned
long
)
(
&
__init_end
)
;
addr
+=
PAGE_SIZE
)
{
addr
=
(
unsigned
long
)
__init_begin
;
for
(;
addr
<
(
unsigned
long
)
__init_end
;
addr
+=
PAGE_SIZE
)
{
ClearPageReserved
(
virt_to_page
(
addr
));
set_page_count
(
virt_to_page
(
addr
),
1
);
free_page
(
addr
);
totalram_pages
++
;
}
printk
(
"Freeing unused kernel memory: %luk freed
\n
"
,
(
&
__init_end
-
&
__init_begin
)
>>
10
);
(
(
unsigned
long
)
__init_end
-
(
unsigned
long
)
__init_begin
)
>>
10
);
}
#ifdef CONFIG_BLK_DEV_INITRD
...
...
@@ -589,11 +586,11 @@ void __init mem_init(void)
addr
+=
PAGE_SIZE
)
{
if
(
!
PageReserved
(
virt_to_page
(
addr
)))
continue
;
if
(
addr
<
(
u
long
)
etext
)
if
(
addr
<
(
u
nsigned
long
)
_
etext
)
codepages
++
;
else
if
(
addr
>=
(
unsigned
long
)
&
__init_begin
&&
addr
<
(
unsigned
long
)
&
__init_end
)
else
if
(
addr
>=
(
unsigned
long
)
__init_begin
&&
addr
<
(
unsigned
long
)
__init_end
)
initpages
++
;
else
if
(
addr
<
klimit
)
datapages
++
;
...
...
include/asm-ppc64/sections.h
0 → 100644
View file @
16675c51
#ifndef _PPC64_SECTIONS_H
#define _PPC64_SECTIONS_H
extern
char
_end
[];
#include <asm-generic/sections.h>
#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