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
43f94bc4
Commit
43f94bc4
authored
Nov 19, 2002
by
Pete Zaitcev
Committed by
David S. Miller
Nov 19, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC]: Fix finish_arch_switch and factor PIL users.
parent
4a78d644
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
24 deletions
+5
-24
include/asm-sparc/system.h
include/asm-sparc/system.h
+5
-24
No files found.
include/asm-sparc/system.h
View file @
43f94bc4
...
...
@@ -123,7 +123,7 @@ extern void fpsave(unsigned long *fpregs, unsigned long *fsr,
"save %sp, -0x40, %sp\n\t" \
"restore; restore; restore; restore; restore; restore; restore"); \
} while(0)
#define finish_arch_switch(rq, next)
do{ }while(0
)
#define finish_arch_switch(rq, next)
spin_unlock_irq(&(rq)->lock
)
#define task_running(rq, p) ((rq)->curr == (p))
/* Much care has gone into this code, do not touch it.
...
...
@@ -195,21 +195,6 @@ extern __inline__ void setipl(unsigned long __orig_psr)
:
"memory"
,
"cc"
);
}
extern
__inline__
void
local_irq_disable
(
void
)
{
unsigned
long
tmp
;
__asm__
__volatile__
(
"rd %%psr, %0
\n\t
"
"nop; nop; nop;
\n\t
"
/* Sun4m + Cypress + SMP bug */
"or %0, %1, %0
\n\t
"
"wr %0, 0x0, %%psr
\n\t
"
"nop; nop; nop
\n
"
:
"=r"
(
tmp
)
:
"i"
(
PSR_PIL
)
:
"memory"
);
}
extern
__inline__
void
local_irq_enable
(
void
)
{
unsigned
long
tmp
;
...
...
@@ -233,6 +218,7 @@ extern __inline__ unsigned long getipl(void)
return
retval
;
}
#if 0 /* not used */
extern __inline__ unsigned long swap_pil(unsigned long __new_psr)
{
unsigned long retval;
...
...
@@ -254,6 +240,7 @@ extern __inline__ unsigned long swap_pil(unsigned long __new_psr)
return retval;
}
#endif
extern
__inline__
unsigned
long
read_psr_and_cli
(
void
)
{
...
...
@@ -275,15 +262,9 @@ extern __inline__ unsigned long read_psr_and_cli(void)
#define local_save_flags(flags) ((flags) = getipl())
#define local_irq_save(flags) ((flags) = read_psr_and_cli())
#define local_irq_restore(flags) setipl((flags))
#define local_irq_disable() ((void) read_psr_and_cli())
/* On sparc32 IRQ flags are the PSR register in the PSR_PIL
* field.
*/
#define irqs_disabled() \
({ unsigned long flags; \
local_save_flags(flags);\
(flags & PSR_PIL) != 0; \
})
#define irqs_disabled() ((getipl() & PSR_PIL) != 0)
#ifdef CONFIG_SMP
...
...
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