annotate level2/modules/kernel/ficpt.asm @ 3195:6eb2edad80d8

L2: Introduce symbol KrnBlk to define kernel block number This is the block number that the kernel is loaded into. This is platform-specific, a function of the behaviour of the platform MMU/DAT. CRCs are unaffected by this change.
author Neal Crook <foofoobedoo@gmail.com>
date Thu, 01 Jun 2017 22:13:49 +0100
parents 039ddb7c8ad7
children
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.
3123
039ddb7c8ad7 l2 kernel: Remove tabs and trailing whitespace, align comments
Neal Crook <foofoobedoo@gmail.com>
parents: 1145
diff changeset
5 *
1145
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