TD2 question I.3
Add syscall ThreadCreate and ThreadExit on userprog/exception.cc, userprog/suscall.h and test/start.S
This commit is contained in:
parent
b635f10b6f
commit
f18dd05339
3 changed files with 27 additions and 0 deletions
|
@ -198,6 +198,21 @@ GetInt:
|
|||
j $31
|
||||
.end GetInt
|
||||
|
||||
.globl ThreadCreate
|
||||
.ent ThreadCreate
|
||||
ThreadCreate:
|
||||
addiu $2,$0,SC_ThreadCreate
|
||||
syscall
|
||||
j $31
|
||||
.end ThreadCreate
|
||||
|
||||
.globl ThreadExit
|
||||
.ent ThreadExit
|
||||
ThreadExit:
|
||||
addiu $2,$0,SC_ThreadExit
|
||||
syscall
|
||||
j $31
|
||||
.end ThreadExit
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue