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
nexedi
linux
Commits
58ee5199
Commit
58ee5199
authored
Aug 06, 2002
by
Paul Mackerras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PPC32: convert some more save_flags/cli/restore_flags etc. calls.
parent
547ef85e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
20 deletions
+6
-20
arch/ppc/platforms/apus_setup.c
arch/ppc/platforms/apus_setup.c
+2
-3
arch/ppc/platforms/pplus_setup.c
arch/ppc/platforms/pplus_setup.c
+1
-4
arch/ppc/platforms/prep_setup.c
arch/ppc/platforms/prep_setup.c
+3
-13
No files found.
arch/ppc/platforms/apus_setup.c
View file @
58ee5199
...
...
@@ -602,8 +602,7 @@ int __debug_serinit( void )
{
unsigned
long
flags
;
save_flags
(
flags
);
cli
();
local_irq_save
(
flags
);
/* turn off Rx and Tx interrupts */
custom
.
intena
=
IF_RBF
|
IF_TBE
;
...
...
@@ -611,7 +610,7 @@ int __debug_serinit( void )
/* clear any pending interrupt */
custom
.
intreq
=
IF_RBF
|
IF_TBE
;
restore_flags
(
flags
);
local_irq_restore
(
flags
);
/*
* set the appropriate directions for the modem control flags,
...
...
arch/ppc/platforms/pplus_setup.c
View file @
58ee5199
...
...
@@ -191,11 +191,8 @@ pplus_restart(char *cmd)
static
void
pplus_halt
(
void
)
{
unsigned
long
flags
;
local_irq_disable
();
/* set exception prefix high - to the prom */
save_flags
(
flags
);
restore_flags
(
flags
|
MSR_IP
);
_nmask_and_or_msr
(
MSR_EE
,
MSR_IP
);
/* make sure bit 0 (reset) is a 0 */
outb
(
inb
(
0x92
)
&
~
1L
,
0x92
);
...
...
arch/ppc/platforms/prep_setup.c
View file @
58ee5199
...
...
@@ -458,10 +458,6 @@ prep_calibrate_decr(void)
/* If we didn't get it from the residual data, try this. */
if
(
res
)
{
unsigned
long
flags
;
save_flags
(
flags
);
#define TIMER0_COUNT 0x40
#define TIMER_CONTROL 0x43
/* set timer to periodic mode */
...
...
@@ -476,7 +472,7 @@ prep_calibrate_decr(void)
/* wait for calibrate */
while
(
calibrate_steps
)
;
restore_flags
(
flags
);
local_irq_disable
(
);
free_irq
(
0
,
NULL
);
}
}
...
...
@@ -581,11 +577,8 @@ prep_restart(char *cmd)
static
void
__prep
prep_halt
(
void
)
{
unsigned
long
flags
;
local_irq_disable
();
/* set exception prefix high - to the prom */
save_flags
(
flags
);
restore_flags
(
flags
|
MSR_IP
);
_nmask_and_or_msr
(
MSR_EE
,
MSR_IP
);
/* make sure bit 0 (reset) is a 0 */
outb
(
inb
(
0x92
)
&
~
1L
,
0x92
);
...
...
@@ -648,11 +641,8 @@ static void __prep
prep_power_off
(
void
)
{
if
(
_prep_type
==
_PREP_IBM
)
{
unsigned
long
flags
;
local_irq_disable
();
/* set exception prefix high - to the prom */
save_flags
(
flags
);
restore_flags
(
flags
|
MSR_IP
);
_nmask_and_or_msr
(
MSR_EE
,
MSR_IP
);
utah_sig87c750_setbit
(
21
,
5
,
1
);
/* set bit 21.5, "PMEXEC_OFF" */
...
...
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