Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
c51d476a
Commit
c51d476a
authored
Aug 13, 2006
by
Kyle McMartin
Committed by
Matthew Wilcox
Oct 04, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PARISC] Remove variables decls duplicated from asm-generic/sections.h
Signed-off-by:
Kyle McMartin
<
kyle@parisc-linux.org
>
parent
32104b29
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
13 deletions
+10
-13
arch/parisc/mm/init.c
arch/parisc/mm/init.c
+10
-13
No files found.
arch/parisc/mm/init.c
View file @
c51d476a
...
...
@@ -31,10 +31,7 @@
DEFINE_PER_CPU
(
struct
mmu_gather
,
mmu_gathers
);
extern
char
_text
;
/* start of kernel code, defined by linker */
extern
int
data_start
;
extern
char
_end
;
/* end of BSS, defined by linker */
extern
char
__init_begin
,
__init_end
;
#ifdef CONFIG_DISCONTIGMEM
struct
node_map_data
node_data
[
MAX_NUMNODES
]
__read_mostly
;
...
...
@@ -319,8 +316,8 @@ static void __init setup_bootmem(void)
reserve_bootmem_node
(
NODE_DATA
(
0
),
0UL
,
(
unsigned
long
)(
PAGE0
->
mem_free
+
PDC_CONSOLE_IO_IODC_SIZE
));
reserve_bootmem_node
(
NODE_DATA
(
0
),
__pa
((
unsigned
long
)
&
_text
),
(
unsigned
long
)(
&
_end
-
&
_text
));
reserve_bootmem_node
(
NODE_DATA
(
0
),
__pa
((
unsigned
long
)
_text
),
(
unsigned
long
)(
_end
-
_text
));
reserve_bootmem_node
(
NODE_DATA
(
0
),
(
bootmap_start_pfn
<<
PAGE_SHIFT
),
((
bootmap_pfn
-
bootmap_start_pfn
)
<<
PAGE_SHIFT
));
...
...
@@ -355,8 +352,8 @@ static void __init setup_bootmem(void)
#endif
data_resource
.
start
=
virt_to_phys
(
&
data_start
);
data_resource
.
end
=
virt_to_phys
(
&
_end
)
-
1
;
code_resource
.
start
=
virt_to_phys
(
&
_text
);
data_resource
.
end
=
virt_to_phys
(
_end
)
-
1
;
code_resource
.
start
=
virt_to_phys
(
_text
);
code_resource
.
end
=
virt_to_phys
(
&
data_start
)
-
1
;
/* We don't know which region the kernel will be in, so try
...
...
@@ -385,12 +382,12 @@ void free_initmem(void)
*/
local_irq_disable
();
memset
(
&
__init_begin
,
0x00
,
(
unsigned
long
)
&
__init_end
-
(
unsigned
long
)
&
__init_begin
);
memset
(
__init_begin
,
0x00
,
(
unsigned
long
)
__init_end
-
(
unsigned
long
)
__init_begin
);
flush_data_cache
();
asm
volatile
(
"sync"
:
:
);
flush_icache_range
((
unsigned
long
)
&
__init_begin
,
(
unsigned
long
)
&
__init_end
);
flush_icache_range
((
unsigned
long
)
__init_begin
,
(
unsigned
long
)
__init_end
);
asm
volatile
(
"sync"
:
:
);
local_irq_enable
();
...
...
@@ -398,8 +395,8 @@ void free_initmem(void)
/* align __init_begin and __init_end to page size,
ignoring linker script where we might have tried to save RAM */
init_begin
=
PAGE_ALIGN
((
unsigned
long
)(
&
__init_begin
));
init_end
=
PAGE_ALIGN
((
unsigned
long
)(
&
__init_end
));
init_begin
=
PAGE_ALIGN
((
unsigned
long
)(
__init_begin
));
init_end
=
PAGE_ALIGN
((
unsigned
long
)(
__init_end
));
for
(
addr
=
init_begin
;
addr
<
init_end
;
addr
+=
PAGE_SIZE
)
{
ClearPageReserved
(
virt_to_page
(
addr
));
init_page_count
(
virt_to_page
(
addr
));
...
...
@@ -578,7 +575,7 @@ static void __init map_pages(unsigned long start_vaddr, unsigned long start_padd
extern
const
unsigned
long
fault_vector_20
;
extern
void
*
const
linux_gateway_page
;
ro_start
=
__pa
((
unsigned
long
)
&
_text
);
ro_start
=
__pa
((
unsigned
long
)
_text
);
ro_end
=
__pa
((
unsigned
long
)
&
data_start
);
fv_addr
=
__pa
((
unsigned
long
)
&
fault_vector_20
)
&
PAGE_MASK
;
gw_addr
=
__pa
((
unsigned
long
)
&
linux_gateway_page
)
&
PAGE_MASK
;
...
...
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