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
abe9755a
authored
Nov 29, 2015
by
malcolm
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
PCB structs
parent
d271c82d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
54 additions
and
0 deletions
src/PCB.h
src/PCB.h
View file @
abe9755a
...
...
@@ -3,4 +3,58 @@
#include <stdint.h>
typedef
struct
//all regs in proc
{
uint32_t
edi
;
uint32_t
esi
;
uint32_t
ebp
;
uint32_t
oesp
;
//what is this
uint32_t
ebx
;
uint32_t
edx
;
uint32_t
ecx
;
uint32_t
eax
;
uint16_t
gs
;
uint16_t
gspad
;
uint16_t
fs
;
uint16_t
fspad
;
uint16_t
es
;
uint16_t
espad
;
uint16_t
ds
;
uint16_t
dspad
;
uint32_t
trap
;
uint32_t
err
;
uint32_t
eip
;
uint16_t
cs
;
uint16_t
cspad
;
uint32_t
eflags
;
//ring changing, for user mode stuff. not used yet
uint32_t
esp
;
uint16_t
ss
;
uint16_t
sspad
;
}
__attribute__
((
packed
))
trapframe
;
typedef
struct
//regs needed for context
{
uint32_t
edi
;
uint32_t
esi
;
uint32_t
ebx
;
uint32_t
ebp
;
uint32_t
eip
;
}
__attribute__
((
packed
))
context
;
typedef
struct
{
uint32_t
mem
;
volatile
int
pid
;
process
*
parent
;
trapframe
*
tf
;
context
*
ctxt
;
char
name
[
32
];
}
__attribute__
((
packed
))
process
;
#endif
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