/*[ arpl.c LOCAL CHAR SccsID[]="@(#)arpl.c 1.5 02/09/94"; ARPL CPU Functions. ------------------- ]*/ #include #include #include #include #include #include #include #include #include #include #include #include /* ===================================================================== EXTERNAL ROUTINES START HERE ===================================================================== */ GLOBAL VOID ARPL IFN2( IU32 *, pop1, IU32, op2 ) { IU32 rpl; /* Reduce op1 RPL to lowest privilege (highest value) */ if ( GET_SELECTOR_RPL(*pop1) < (rpl = GET_SELECTOR_RPL(op2)) ) { SET_SELECTOR_RPL(*pop1, rpl); SET_ZF(1); } else { SET_ZF(0); } }