view defs/proc.d @ 1626:c01a65c813ce

Definition files to use with as6809
author boisy
date Sat, 03 Jul 2004 00:02:14 +0000
parents
children f7ece667f6f1
line wrap: on
line source

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; proc
;
; $Id$
;
; Edt/Rev  YYYY/MM/DD  Modified by
; Comment
; ------------------------------------------------------------------
;          2004/05/17  Boisy G. Pitre
; Started.

           .title Process Constants

           .area  PROC (ABS)

           .if    Level=1

; Level 1 process descriptor defs
DefIOSiz   ==     12
NumPaths   ==     16         ; Number of Local Paths

           .org   0
P$ID::     .rmb   1          ; Process ID
P$PID::    .rmb   1          ; Parent's ID
P$SID::    .rmb   1          ; Sibling's ID
P$CID::    .rmb   1          ; Child's ID
P$SP::     .rmb   2          ; Stack ptr
P$CHAP::   .rmb   1          ; process chapter number
P$ADDR::   .rmb   1          ; user address beginning page number
P$PagCnt:: .rmb   1          ; Memory Page Count
P$User::   .rmb   2          ; User Index $09
P$Prior::  .rmb   1          ; Priority $0B
P$Age::    .rmb   1          ; Age $0C
P$State$0D
P$Queue::  .rmb   2          ; Queue Link (Process ptr) $0E
P$IOQP::   .rmb   1          ; Previous I/O Queue Link (Process ID) $10
P$IOQN::   .rmb   1          ; Next     I/O Queue Link (Process ID)
P$PModul:: .rmb   2          ; Primary Module
P$SWI::    .rmb   2          ; SWI Entry Point
P$SWI2::   .rmb   2          ; SWI2 Entry Point
P$SWI3::   .rmb   2          ; SWI3 Entry Point $18
P$DIO::    .rmb   DefIOSiz   ; default I/O ptrs $1A
P$PATH::   .rmb   NumPaths   ; I/O path table $26
P$Signal:: .rmb   1          ; Signal Code $36
P$SigVec:: .rmb   2          ; Signal Intercept Vector
P$SigDat:: .rmb   2          ; Signal Intercept Data Address
P$NIO::    .rmb   4          ; additional dio pointers for net
           .rmb   0h40-.     ; unused
P$Size     ==     .          ; Size of Process Descriptor

;
; Process State Flags
;
SysState   ==     0b10000000
TimSleep   ==     0b01000000
TimOut     ==     0b00100000
ImgChg     ==     0b00010000
Condem     ==     0b00000010
Dead       ==     0b00000001

           .else

; Level 2 process descriptor defs
DefIOSiz   ==     16         ; Default I/O Data Length
NefIOSiz   ==     12         ; On-Net Default I/O Data Length
NumPaths   ==     16         ; Number of Local Paths

           .org   0
P$ID::     .rmb   1          ; Process ID
P$PID::    .rmb   1          ; Parent's ID
P$SID::    .rmb   1          ; Sibling's ID
P$CID::    .rmb   1          ; Child's ID
P$SP::     .rmb   2          ; Stack ptr
P$Task::   .rmb   1          ; Task Number
P$PagCnt:: .rmb   1          ; Memory Page Count
P$User::   .rmb   2          ; User Index
P$Prior::  .rmb   1          ; Priority
P$Age::    .rmb   1          ; Age
P$State::  .rmb   1          ; Status
P$Queue::  .rmb   2          ; Queue Link (Process ptr)
P$IOQP::   .rmb   1          ; Previous I/O Queue Link (Process ID)
P$IOQN::   .rmb   1          ; Next I/O Queue Link (Process ID)
P$PModul:: .rmb   2          ; Primary Module
P$SWI::    .rmb   2          ; SWI Entry Point
P$SWI2::   .rmb   2          ; SWI2 Entry Point
P$SWI3::   .rmb   2          ; SWI3 Entry Point
P$Signal:: .rmb   1          ; Signal Code
P$SigVec:: .rmb   2          ; Signal Intercept Vector
P$SigDat:: .rmb   2          ; Signal Intercept Data Address
P$DeadLk:: .rmb   1          ; Dominant proc ID if I/O locked
           .rmb   0h20-.     ; unused
P$DIO::    .rmb   DefIOSiz   ; Default I/O ptrs
P$Path::   .rmb   NumPaths   ; I/O Path Table
P$DATImg:: .rmb   64         ; DAT Image
P$Links::  .rmb   32         ; Block Link counts
P$NIO::    .rmb   6*2        ; additional DIO ptrs for net, compatible  with 68k
P$SelP::   .rmb   1          ; Selected Path for COCO Windows (Default 0)
P$UTicks:: .rmb   4          ; proc User Tick counter        (L2V3)
P$STicks:: .rmb   4          ; proc System Tick counter      (L2V3)
P$FCalls:: .rmb   4          ; proc F$ call counter          (L2V3)
P$ICalls:: .rmb   4          ; proc I$ call counter          (L2V3)
P$DatBeg:: .rmb   3          ; proc Date of creation (Y/M/D) (L2V3)
P$TimBeg:: .rmb   3          ; proc Time of creation (H/M/S) (L2V3)
P$Alarm::  .rmb   6
           .rmb   0h200-.    ; Local stack
P$Stack    ==     .          ; Top of Stack
P$Size     ==     .          ; Size of Process Descriptor

;
; Process State Flags
;
SysState   ==     0b10000000
TimSleep   ==     0b01000000
TimOut     ==     0b00100000
ImgChg     ==     0b00010000
Suspend    ==     0b00001000
Condem     ==     0b00000010
Dead       ==     0b00000001

           .endif