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
10f2014b
Commit
10f2014b
authored
Feb 22, 2003
by
Richard Henderson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ALPHA] Fix switch_to semantics wrt LAST.
parent
4a93eb24
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
9 deletions
+7
-9
arch/alpha/kernel/entry.S
arch/alpha/kernel/entry.S
+1
-0
include/asm-alpha/system.h
include/asm-alpha/system.h
+6
-9
No files found.
arch/alpha/kernel/entry.S
View file @
10f2014b
...
@@ -582,6 +582,7 @@ alpha_switch_to:
...
@@ -582,6 +582,7 @@ alpha_switch_to:
lda
$
8
,
0x3fff
lda
$
8
,
0x3fff
bsr
$
1
,
undo_switch_stack
bsr
$
1
,
undo_switch_stack
bic
$sp
,
$
8
,
$
8
bic
$sp
,
$
8
,
$
8
mov
$
17
,
$
0
ret
ret
.
end
alpha_switch_to
.
end
alpha_switch_to
...
...
include/asm-alpha/system.h
View file @
10f2014b
...
@@ -131,17 +131,14 @@ struct el_common_EV6_mcheck {
...
@@ -131,17 +131,14 @@ struct el_common_EV6_mcheck {
extern
void
halt
(
void
)
__attribute__
((
noreturn
));
extern
void
halt
(
void
)
__attribute__
((
noreturn
));
#define __halt() __asm__ __volatile__ ("call_pal %0 #halt" : : "i" (PAL_halt))
#define __halt() __asm__ __volatile__ ("call_pal %0 #halt" : : "i" (PAL_halt))
#define prepare_arch_schedule(prev) do { } while(0)
#define switch_to(P,N,L) \
#define finish_arch_schedule(prev) do { } while(0)
do { \
(L) = alpha_switch_to(virt_to_phys(&(N)->thread_info->pcb), (P)); \
#define switch_to(prev,next,last) \
do { \
alpha_switch_to(virt_to_phys(&(next)->thread_info->pcb), (prev)); \
check_mmu_context(); \
check_mmu_context(); \
} while (0)
} while (0)
struct
task_struct
;
struct
task_struct
;
extern
void
alpha_switch_to
(
unsigned
long
,
struct
task_struct
*
);
extern
struct
task_struct
*
alpha_switch_to
(
unsigned
long
,
struct
task_struct
*
);
#define mb() \
#define mb() \
__asm__ __volatile__("mb": : :"memory")
__asm__ __volatile__("mb": : :"memory")
...
...
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