annotate level2/modules/kernel/ficpt.asm @ 1624:bb75784a1ec5

Minor source change by Rodney H.
author boisy
date Wed, 30 Jun 2004 01:07:36 +0000
parents ca83286ded5b
children 039ddb7c8ad7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1145
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
1 **************************************************
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
2 * System Call: F$Icpt
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
3 *
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
4 * Function: Sets the function to be called when a signal arrives.
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
5 *
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
6 *
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
7 * Input: X = Address of intercept routine
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
8 * U = Address of intercept routine data area
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
9 *
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
10 * Output: None
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
11 *
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
12 * Error: CC = C bit set; B = error code
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
13 *
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
14 FIcpt ldx <D.Proc get current process pointer
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
15 ldd R$X,u Get vector for signal trap handler
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
16 IFNE H6309
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
17 ldw R$U,u Get data area ptr for signal trap handler
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
18 stq P$SigVec,x Save them in descriptor
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
19 ELSE
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
20 std P$SigVec,x
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
21 ldd R$U,u
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
22 std P$SigDat,x
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
23 ENDC
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
24 clrb clear errors
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
25 rts return