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
f1974653
Commit
f1974653
authored
Apr 26, 2007
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MIPS] MIPS Tech: Get rid of volatile in core code.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
78709b9d
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
13 deletions
+13
-13
arch/mips/mips-boards/generic/display.c
arch/mips/mips-boards/generic/display.c
+4
-4
arch/mips/mips-boards/generic/reset.c
arch/mips/mips-boards/generic/reset.c
+6
-6
arch/mips/mips-boards/malta/malta_int.c
arch/mips/mips-boards/malta/malta_int.c
+1
-1
arch/mips/mips-boards/malta/malta_setup.c
arch/mips/mips-boards/malta/malta_setup.c
+2
-2
No files found.
arch/mips/mips-boards/generic/display.c
View file @
f1974653
...
...
@@ -24,16 +24,16 @@
void
mips_display_message
(
const
char
*
str
)
{
static
volatile
unsigned
int
*
display
=
NULL
;
static
unsigned
int
__iomem
*
display
=
NULL
;
int
i
;
if
(
unlikely
(
display
==
NULL
))
display
=
(
volatile
unsigned
int
*
)
ioremap
(
ASCII_DISPLAY_POS_BASE
,
16
*
sizeof
(
int
));
display
=
ioremap
(
ASCII_DISPLAY_POS_BASE
,
16
*
sizeof
(
int
));
for
(
i
=
0
;
i
<=
14
;
i
=
i
+
2
)
{
if
(
*
str
)
display
[
i
]
=
*
str
++
;
writel
(
*
str
++
,
display
+
i
)
;
else
display
[
i
]
=
' '
;
writel
(
' '
,
display
+
i
)
;
}
}
arch/mips/mips-boards/generic/reset.c
View file @
f1974653
...
...
@@ -39,24 +39,24 @@ static void atlas_machine_power_off(void);
static
void
mips_machine_restart
(
char
*
command
)
{
volatile
unsigned
int
*
softres_reg
=
(
unsigned
int
*
)
ioremap
(
SOFTRES_REG
,
sizeof
(
unsigned
int
));
unsigned
int
__iomem
*
softres_reg
=
ioremap
(
SOFTRES_REG
,
sizeof
(
unsigned
int
));
*
softres_reg
=
GORESET
;
writew
(
GORESET
,
softres_reg
)
;
}
static
void
mips_machine_halt
(
void
)
{
volatile
unsigned
int
*
softres_reg
=
(
unsigned
int
*
)
ioremap
(
SOFTRES_REG
,
sizeof
(
unsigned
int
));
unsigned
int
__iomem
*
softres_reg
=
ioremap
(
SOFTRES_REG
,
sizeof
(
unsigned
int
));
*
softres_reg
=
GORESET
;
writew
(
GORESET
,
softres_reg
)
;
}
#if defined(CONFIG_MIPS_ATLAS)
static
void
atlas_machine_power_off
(
void
)
{
volatile
unsigned
int
*
psustby_reg
=
(
unsigned
int
*
)
ioremap
(
ATLAS_PSUSTBY_REG
,
sizeof
(
unsigned
int
));
unsigned
int
__iomem
*
psustby_reg
=
ioremap
(
ATLAS_PSUSTBY_REG
,
sizeof
(
unsigned
int
));
*
psustby_reg
=
ATLAS_GOSTBY
;
writew
(
ATLAS_GOSTBY
,
psustby_reg
)
;
}
#endif
...
...
arch/mips/mips-boards/malta/malta_int.c
View file @
f1974653
...
...
@@ -85,7 +85,7 @@ static inline int mips_pcibios_iack(void)
dummy
=
BONITO_PCIMAP_CFG
;
iob
();
/* sync */
irq
=
*
(
volatile
u32
*
)(
_pcictrl_bonito_pcicfg
);
irq
=
readl
((
u32
*
)
_pcictrl_bonito_pcicfg
);
iob
();
/* sync */
irq
&=
0xff
;
BONITO_PCIMAP_CFG
=
0
;
...
...
arch/mips/mips-boards/malta/malta_setup.c
View file @
f1974653
...
...
@@ -145,7 +145,8 @@ void __init plat_mem_setup(void)
#ifdef CONFIG_BLK_DEV_IDE
/* Check PCI clock */
{
int
jmpr
=
(
*
((
volatile
unsigned
int
*
)
ioremap
(
MALTA_JMPRS_REG
,
sizeof
(
unsigned
int
)))
>>
2
)
&
0x07
;
unsigned
int
__iomem
*
jmpr_p
=
(
unsigned
int
*
)
ioremap
(
MALTA_JMPRS_REG
,
sizeof
(
unsigned
int
));
int
jmpr
=
(
readw
(
jmpr_p
)
>>
2
)
&
0x07
;
static
const
int
pciclocks
[]
__initdata
=
{
33
,
20
,
25
,
30
,
12
,
16
,
37
,
10
};
...
...
@@ -179,7 +180,6 @@ void __init plat_mem_setup(void)
};
#endif
#endif
mips_reboot_setup
();
board_time_init
=
mips_time_init
;
...
...
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