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
329f43c9
authored
Jan 11, 2016
by
malcolm
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Bit of cleanup, messages. Kernel stack still not properly formed.
parent
7de0adfc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
src/PCB.c
src/switch.asm
src/PCB.c
View file @
329f43c9
...
...
@@ -55,6 +55,7 @@ int yield()
procs
[
curproc
]
->
state
=
RUNNABLE
;
serial_writestring
(
"about to schedule
\n
"
);
schedule
();
serial_writestring
(
"echeduled
\n
"
);
//unlock mutex
return
1
;
}
...
...
src/switch.asm
View file @
329f43c9
...
...
@@ -2,7 +2,10 @@ global context_switch
context_switch
:
mov
eax
,
[
esp
+
4
]
mov
edx
,
[
esp
+
8
]
; set return of new context to current context's
; address, so that we return to the proper location
; in kernel memory
mov
ecx
,
[esp]
mov
[
edx
+
20
]
,
ecx
...
...
@@ -13,10 +16,6 @@ context_switch:
mov
ecx
,
cr3
push
ecx
; CR3 PROBLEM - STACK CHANGES, CANT ACCESS NEW MEM?
; WHY IS PROCS[CURPROC]->CTXT IN PROCESS MEM, NOT
; IN KERNEL MEM? INTERROGATE FREMMA
mov
[eax],
esp
mov
esp
,
edx
...
...
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