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
688d8c30
authored
Nov 29, 2015
by
malcolm
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Oops switch is a reserved word
parent
4b681222
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
src/PCB.h
src/switch.asm
src/PCB.h
View file @
688d8c30
...
...
@@ -2,6 +2,7 @@
#define _PCB_INC
#include <stdint.h>
#include "mem.h"
typedef
struct
//all regs in proc
{
...
...
@@ -49,7 +50,7 @@ typedef struct//regs needed for context
typedef
struct
{
uint32_t
mem
;
page_directory_entry
*
mem
;
volatile
int
pid
;
struct
process
*
parent
;
trapframe
*
tf
;
...
...
@@ -57,6 +58,6 @@ typedef struct
char
name
[
32
];
}
__attribute__
((
packed
))
process
;
extern
void
switch
(
context
**
old
,
context
*
new
);
extern
void
context_
switch
(
context
**
old
,
context
*
new
);
#endif
src/switch.asm
View file @
688d8c30
global
switch
global
context_
switch
switch
:
mov
eax
,
[
esp
+
4
]
mov
edx
,
[
esp
+
8
]
...
...
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