1 \ *****************************************************************************
2 \ * Copyright (c) 2004, 2008 IBM Corporation
3 \ * All rights reserved.
4 \ * This program and the accompanying materials
5 \ * are made available under the terms of the BSD License
6 \ * which accompanies this distribution, and is available at
7 \ * http://www.opensource.org/licenses/bsd-license.php
10 \ * IBM Corporation - initial implementation
11 \ ****************************************************************************/
14 100 CONSTANT quiesce-xt#
16 \ The array with the quiesce execution tokens:
17 CREATE quiesce-xts quiesce-xt# cells allot
18 quiesce-xts quiesce-xt# cells erase
23 \ Add a token to the quiesce execution token array:
24 : add-quiesce-xt ( xt -- )
26 quiesce-xts I cells + ( xt arrayptr )
27 dup @ 0= ( xt arrayptr true|false )
31 over swap ( xt xt arrayptr )
32 @ = \ xt already stored ?
39 ." Warning: quiesce xt list is full." cr
43 \ The quiesce call asserts that the firmware and all hardware
44 \ is in a sane state (e.g. assert that no background DMA is
47 quiesce-done? IF EXIT THEN
50 quiesce-xts I cells + ( arrayptr )