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
5e203d68
Commit
5e203d68
authored
Sep 25, 2006
by
Stephen Rothwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[POWERPC] fix ioremap for a combined kernel
Signed-off-by:
Stephen Rothwell
<
sfr@canb.auug.org.au
>
parent
eecba334
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
22 deletions
+7
-22
arch/powerpc/mm/pgtable_64.c
arch/powerpc/mm/pgtable_64.c
+7
-22
No files found.
arch/powerpc/mm/pgtable_64.c
View file @
5e203d68
...
...
@@ -63,32 +63,13 @@
#include <asm/iommu.h>
#include <asm/abs_addr.h>
#include <asm/vdso.h>
#include <asm/firmware.h>
#include "mmu_decl.h"
unsigned
long
ioremap_bot
=
IMALLOC_BASE
;
static
unsigned
long
phbs_io_bot
=
PHBS_IO_BASE
;
#ifdef CONFIG_PPC_ISERIES
void
__iomem
*
ioremap
(
unsigned
long
addr
,
unsigned
long
size
)
{
return
(
void
__iomem
*
)
addr
;
}
extern
void
__iomem
*
__ioremap
(
unsigned
long
addr
,
unsigned
long
size
,
unsigned
long
flags
)
{
return
(
void
__iomem
*
)
addr
;
}
void
iounmap
(
volatile
void
__iomem
*
addr
)
{
return
;
}
#else
/*
* map_io_page currently only called by __ioremap
* map_io_page adds an entry to the ioremap page table
...
...
@@ -161,6 +142,9 @@ void __iomem * __ioremap(unsigned long addr, unsigned long size,
unsigned
long
pa
,
ea
;
void
__iomem
*
ret
;
if
(
firmware_has_feature
(
FW_FEATURE_ISERIES
))
return
(
void
__iomem
*
)
addr
;
/*
* Choose an address to map it to.
* Once the imalloc system is running, we use it.
...
...
@@ -255,6 +239,9 @@ void iounmap(volatile void __iomem *token)
{
void
*
addr
;
if
(
firmware_has_feature
(
FW_FEATURE_ISERIES
))
return
;
if
(
!
mem_init_done
)
return
;
...
...
@@ -315,8 +302,6 @@ int iounmap_explicit(volatile void __iomem *start, unsigned long size)
return
0
;
}
#endif
EXPORT_SYMBOL
(
ioremap
);
EXPORT_SYMBOL
(
__ioremap
);
EXPORT_SYMBOL
(
iounmap
);
...
...
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