Comments to kernel files by Phil.

This commit is contained in:
Warren Toomey
2016-03-09 06:45:44 +10:00
parent 286acea85b
commit c65a5587fb
3 changed files with 11 additions and 8 deletions
+5 -5
View File
@@ -86,7 +86,7 @@ swap: 0
jms lookfor; 1 " in/ready jms lookfor; 1 " in/ready
skp skp
jmp 1b " loop until a process becomes ready jmp 1b " loop until a process becomes ready
dzm maxquant " here with in/ready (self?) dzm maxquant " in/ready (self?): come back next tick!
jmp 3f jmp 3f
1: " here with out/ready process 1: " here with out/ready process
dac 9f+t " save process pointer (swapped out) in t0 dac 9f+t " save process pointer (swapped out) in t0
@@ -97,7 +97,7 @@ swap: 0
jmp 2f jmp 2f
1: 1:
lac swap lac swap
dac u.swapret " return to scheduler when swapped back dac u.swapret " return to caller when swapped back
iof iof
lac o200000 " change status to swapped out lac o200000 " change status to swapped out
tad u.ulistp i tad u.ulistp i
@@ -105,13 +105,13 @@ swap: 0
ion ion
jms dskswap; 07000 " swap process out jms dskswap; 07000 " swap process out
lac u.dspbuf lac u.dspbuf
sna sna " process using display??
jmp 2f jmp 2f " no
law dspbuf law dspbuf
jms movdsp jms movdsp
2: 2:
iof " disable interrupts iof " disable interrupts
lac o600000 " change status (1->7?) lac o600000 " change status (1->7?????)
tad 9f+t i tad 9f+t i
dac 9f+t i dac 9f+t i
ion " enable interrupts ion " enable interrupts
+1 -1
View File
@@ -284,7 +284,7 @@ open1: " common exit for open/creat
jmp 1f " no jmp 1f " no
iof " yes: disable interrupts iof " yes: disable interrupts
lac ii " get i number lac ii " get i number
tad swr " get read routine table addr tad swr " add to base instruction
dac .+1 dac .+1
jmp .. i " dispatch to read routine jmp .. i " dispatch to read routine
1: 1:
+5 -2
View File
@@ -175,8 +175,11 @@ sysdata: " system data 64 words saved to disk
" 4: out/notready?? " 4: out/notready??
" bits 3:17 -- disk swap address/8 " bits 3:17 -- disk swap address/8
" second word: process pid " second word: process pid
" third word: used for smes/rmes " third word: smes/rmes status:
" fourth word: ?? " 0: not waiting
" -1: this process waiting (rmes)
" other: complement of sender pid
" fourth word: smes message
ulist: ulist:
0131000;1;0;0 0131000;1;0;0
0031040;0;0;0 0031040;0;0;0