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
9417569f
Commit
9417569f
authored
Dec 27, 2002
by
Geert Uytterhoeven
Committed by
Linus Torvalds
Dec 27, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] Sun-3 core local_irq*() updates
Convert core Sun-3 code to new local_irq*() framework
parent
4d5a4675
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
14 deletions
+14
-14
arch/m68k/sun3/intersil.c
arch/m68k/sun3/intersil.c
+2
-2
arch/m68k/sun3/prom/console.c
arch/m68k/sun3/prom/console.c
+8
-8
arch/m68k/sun3/prom/misc.c
arch/m68k/sun3/prom/misc.c
+4
-4
No files found.
arch/m68k/sun3/intersil.c
View file @
9417569f
...
...
@@ -40,7 +40,7 @@ int sun3_hwclk(int set, struct rtc_time *t)
todintersil
=
(
struct
intersil_dt
*
)
&
intersil_clock
->
counter
;
save_and_cli
(
flags
);
local_irq_save
(
flags
);
intersil_clock
->
cmd_reg
=
STOP_VAL
;
...
...
@@ -68,7 +68,7 @@ int sun3_hwclk(int set, struct rtc_time *t)
intersil_clock
->
cmd_reg
=
START_VAL
;
restore_flags
(
flags
);
local_irq_restore
(
flags
);
return
0
;
...
...
arch/m68k/sun3/prom/console.c
View file @
9417569f
...
...
@@ -22,9 +22,9 @@ prom_nbgetchar(void)
int
i
=
-
1
;
unsigned
long
flags
;
save_flags
(
flags
);
cli
(
);
local_irq_save
(
flags
);
i
=
(
*
(
romvec
->
pv_nbgetchar
))();
restore_flags
(
flags
);
local_irq_restore
(
flags
);
return
i
;
/* Ugh, we could spin forever on unsupported proms ;( */
}
...
...
@@ -37,9 +37,9 @@ prom_nbputchar(char c)
unsigned
long
flags
;
int
i
=
-
1
;
save_flags
(
flags
);
cli
(
);
local_irq_save
(
flags
);
i
=
(
*
(
romvec
->
pv_nbputchar
))(
c
);
restore_flags
(
flags
);
local_irq_restore
(
flags
);
return
i
;
/* Ugh, we could spin forever on unsupported proms ;( */
}
...
...
@@ -83,12 +83,12 @@ prom_query_input_device()
};
case PROM_V3:
case PROM_P1275:
save_flags(flags); cli(
);
local_irq_save(flags
);
st_p = (*romvec->pv_v2devops.v2_inst2pkg)(*romvec->pv_v2bootargs.fd_stdin);
__asm__ __volatile__("ld [%0], %%g6\n\t" : :
"r" (¤t_set[smp_processor_id()]) :
"memory");
restore_flags
(flags);
local_irq_restore
(flags);
if(prom_node_has_property(st_p, "keyboard"))
return PROMDEV_IKBD;
prom_getproperty(st_p, "device_type", propb, sizeof(propb));
...
...
@@ -133,12 +133,12 @@ prom_query_output_device()
case PROM_V2:
case PROM_V3:
case PROM_P1275:
save_flags(flags); cli(
);
local_irq_save(flags
);
st_p = (*romvec->pv_v2devops.v2_inst2pkg)(*romvec->pv_v2bootargs.fd_stdout);
__asm__ __volatile__("ld [%0], %%g6\n\t" : :
"r" (¤t_set[smp_processor_id()]) :
"memory");
restore_flags
(flags);
local_irq_restore
(flags);
propl = prom_getproperty(st_p, "device_type", propb, sizeof(propb));
if (propl >= 0 && propl == sizeof("display") &&
strncmp("display", propb, sizeof("display")) == 0)
...
...
arch/m68k/sun3/prom/misc.c
View file @
9417569f
...
...
@@ -19,9 +19,9 @@ void
prom_reboot
(
char
*
bcommand
)
{
unsigned
long
flags
;
save_flags
(
flags
);
cli
(
);
local_irq_save
(
flags
);
(
*
(
romvec
->
pv_reboot
))(
bcommand
);
restore_flags
(
flags
);
local_irq_restore
(
flags
);
}
/* Drop into the prom, with the chance to continue with the 'go'
...
...
@@ -40,9 +40,9 @@ prom_halt(void)
{
unsigned
long
flags
;
again:
save_flags
(
flags
);
cli
(
);
local_irq_save
(
flags
);
(
*
(
romvec
->
pv_halt
))();
restore_flags
(
flags
);
local_irq_restore
(
flags
);
goto
again
;
/* PROM is out to get me -DaveM */
}
...
...
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