fun trap(tnum) {
	if(tnum == 3) {
	    flush_windows(CWP,CANRESTORE);
	    CANSAVE = (8  - 2)?cvt(cwp_t);
	    CANRESTORE = 0?cvt(cwp_t);
	} else {
	    trap_sparc(tnum+256,CWP,CANRESTORE);
	}
	is_trap = false;
    }