Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
u-boot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Florian Mayer
u-boot
Commits
fb69b6cd
Commit
fb69b6cd
authored
9 years ago
by
Tom Rini
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
git://git.denx.de/u-boot-mips
parents
f3edfd30
b11c5d1d
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
arch/mips/include/asm/cacheops.h
+1
-1
1 addition, 1 deletion
arch/mips/include/asm/cacheops.h
arch/mips/include/asm/io.h
+6
-6
6 additions, 6 deletions
arch/mips/include/asm/io.h
arch/mips/include/asm/system.h
+3
-3
3 additions, 3 deletions
arch/mips/include/asm/system.h
with
10 additions
and
10 deletions
arch/mips/include/asm/cacheops.h
+
1
−
1
View file @
fb69b6cd
...
...
@@ -18,7 +18,7 @@ static inline void mips_cache(int op, const volatile void *addr)
#ifdef __GCC_HAVE_BUILTIN_MIPS_CACHE
__builtin_mips_cache
(
op
,
addr
);
#else
__asm__
__volatile__
(
"cache %0, %1"
:
:
"i"
(
op
),
"R"
(
addr
))
__asm__
__volatile__
(
"cache %0, %1"
:
:
"i"
(
op
),
"R"
(
addr
))
;
#endif
}
...
...
This diff is collapsed.
Click to expand it.
arch/mips/include/asm/io.h
+
6
−
6
View file @
fb69b6cd
...
...
@@ -117,7 +117,7 @@ static inline void set_io_port_base(unsigned long base)
* Change virtual addresses to physical addresses and vv.
* These are trivial on the 1:1 Linux/MIPS mapping
*/
extern
inline
phys_addr_t
virt_to_phys
(
volatile
void
*
address
)
static
inline
phys_addr_t
virt_to_phys
(
volatile
void
*
address
)
{
#ifndef CONFIG_64BIT
return
CPHYSADDR
(
address
);
...
...
@@ -126,7 +126,7 @@ extern inline phys_addr_t virt_to_phys(volatile void * address)
#endif
}
extern
inline
void
*
phys_to_virt
(
unsigned
long
address
)
static
inline
void
*
phys_to_virt
(
unsigned
long
address
)
{
#ifndef CONFIG_64BIT
return
(
void
*
)
KSEG0ADDR
(
address
);
...
...
@@ -138,7 +138,7 @@ extern inline void * phys_to_virt(unsigned long address)
/*
* IO bus memory addresses are also 1:1 with the physical address
*/
extern
inline
unsigned
long
virt_to_bus
(
volatile
void
*
address
)
static
inline
unsigned
long
virt_to_bus
(
volatile
void
*
address
)
{
#ifndef CONFIG_64BIT
return
CPHYSADDR
(
address
);
...
...
@@ -147,7 +147,7 @@ extern inline unsigned long virt_to_bus(volatile void * address)
#endif
}
extern
inline
void
*
bus_to_virt
(
unsigned
long
address
)
static
inline
void
*
bus_to_virt
(
unsigned
long
address
)
{
#ifndef CONFIG_64BIT
return
(
void
*
)
KSEG0ADDR
(
address
);
...
...
@@ -165,12 +165,12 @@ extern unsigned long isa_slot_offset;
extern
void
*
__ioremap
(
unsigned
long
offset
,
unsigned
long
size
,
unsigned
long
flags
);
#if 0
extern
inline void *ioremap(unsigned long offset, unsigned long size)
static
inline void *ioremap(unsigned long offset, unsigned long size)
{
return __ioremap(offset, size, _CACHE_UNCACHED);
}
extern
inline void *ioremap_nocache(unsigned long offset, unsigned long size)
static
inline void *ioremap_nocache(unsigned long offset, unsigned long size)
{
return __ioremap(offset, size, _CACHE_UNCACHED);
}
...
...
This diff is collapsed.
Click to expand it.
arch/mips/include/asm/system.h
+
3
−
3
View file @
fb69b6cd
...
...
@@ -22,7 +22,7 @@
#include <linux/kernel.h>
#endif
extern
__inline__
void
static
__inline__
void
__sti
(
void
)
{
__asm__
__volatile__
(
...
...
@@ -46,7 +46,7 @@ __sti(void)
* R4000/R4400 need three nops, the R4600 two nops and the R10000 needs
* no nops at all.
*/
extern
__inline__
void
static
__inline__
void
__cli
(
void
)
{
__asm__
__volatile__
(
...
...
@@ -207,7 +207,7 @@ do { \
* For 32 and 64 bit operands we can take advantage of ll and sc.
* FIXME: This doesn't work for R3000 machines.
*/
extern
__inline__
unsigned
long
xchg_u32
(
volatile
int
*
m
,
unsigned
long
val
)
static
__inline__
unsigned
long
xchg_u32
(
volatile
int
*
m
,
unsigned
long
val
)
{
#ifdef CONFIG_CPU_HAS_LLSC
unsigned
long
dummy
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment