L 7.1   The make_busy macro

(Revision 0 - 20 November 2000)

 

 

make_busy (tcb, return_code)

on entry 
tcb points to the thread control block of a thread to be made READY
return_code has the value to be returned to the user on exception return

notes:
ST_EX_V0 º - 40
ST_EX_SIZE º 248 (kernel 79g !)

0,1 tcb stack v0 location  <--   return code
2,3 sp  <--  one word below top of original exception stack
4,5 address of preempt_ret into new TOS
6,7 tcb fine state <-- READY