Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
triazo
/
kernel
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
3
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
4b681222
authored
Nov 29, 2015
by
malcolm
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Switch function
parent
3704530e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
src/PCB.h
src/switch.asm
src/PCB.h
View file @
4b681222
...
@@ -57,4 +57,6 @@ typedef struct
...
@@ -57,4 +57,6 @@ typedef struct
char
name
[
32
];
char
name
[
32
];
}
__attribute__
((
packed
))
process
;
}
__attribute__
((
packed
))
process
;
extern
void
switch
(
context
**
old
,
context
*
new
);
#endif
#endif
src/switch.asm
0 → 100644
View file @
4b681222
global
switch
switch
:
mov
eax
,
[
esp
+
4
]
mov
edx
,
[
esp
+
8
]
push
ebp
push
ebx
push
esi
push
edi
mov
[eax],
esp
mov
esp
,
edx
pop
edi
pop
esi
pop
ebx
pop
ebp
ret
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