/********************************************************************************************************************************/ /* Created: 9-Mar-2021 22:28:05 by OpenVMS SDL EV3-3 */ /* Source: 09-MAR-2021 22:28:01 $1$DGA8085:[STARLET_H.SRC]STARDEFAE.SDI;1 */ /********************************************************************************************************************************/ /*** MODULE $CPUIDEF ***/ #ifndef __CPUIDEF_LOADED #define __CPUIDEF_LOADED 1 #pragma __nostandard /* This file uses non-ANSI-Standard features */ #pragma __member_alignment __save #pragma __nomember_alignment #ifdef __INITIAL_POINTER_SIZE /* Defined whenever ptr size pragmas supported */ #pragma __required_pointer_size __save /* Save the previously-defined required ptr size */ #pragma __required_pointer_size __short /* And set ptr size default to 32-bit pointers */ #endif #ifdef __cplusplus extern "C" { #define __unknown_params ... #define __optional_params ... #else #define __unknown_params #define __optional_params ... #endif #ifndef __struct #if !defined(__VAXC) #define __struct struct #else #define __struct variant_struct #endif #endif #ifndef __union #if !defined(__VAXC) #define __union union #else #define __union variant_union #endif #endif #define CPUI$K_TICKS 1 /* Get CPU's tick info */ /*+ */ /* CPUI Flags Definitions */ /*- */ #define CPUI$M_SEARCH 0x1 #define CPUI$M_RESERVED 0xFFFFFFFE #ifdef __NEW_STARLET typedef struct _cpui_flags { __union { unsigned int cpui$l_flags; __struct { unsigned cpui$v_search : 1; /* If CPU not active, search for next CPU */ unsigned cpui$v_reserved : 31; /* No other flags defined at this time */ } cpui$r_cpuidef_flag_bits; } cpui$r_cpuidef_union; } CPUI_FLAGS; #if !defined(__VAXC) #define cpui$l_flags cpui$r_cpuidef_union.cpui$l_flags #define cpui$v_search cpui$r_cpuidef_union.cpui$r_cpuidef_flag_bits.cpui$v_search #define cpui$v_reserved cpui$r_cpuidef_union.cpui$r_cpuidef_flag_bits.cpui$v_reserved #endif /* #if !defined(__VAXC) */ #else /* __OLD_STARLET */ typedef struct _cpui_flags { __union { unsigned int cpui$l_flags; __struct { unsigned cpui$v_search : 1; /* If CPU not active, search for next CPU */ unsigned cpui$v_reserved : 31; /* No other flags defined at this time */ } cpui$r_cpuidef_flag_bits; } cpui$r_cpuidef_union; } cpui_flags; #if !defined(__VAXC) #define cpui$l_flags cpui$r_cpuidef_union.cpui$l_flags #define cpui$v_search cpui$r_cpuidef_union.cpui$r_cpuidef_flag_bits.cpui$v_search #define cpui$v_reserved cpui$r_cpuidef_union.cpui$r_cpuidef_flag_bits.cpui$v_reserved #endif /* #if !defined(__VAXC) */ #endif /* #ifdef __NEW_STARLET */ #define CPUI$K_KERNEL_TICKS_INDEX 0 /* 0 - kernel mode */ #define CPUI$K_EXEC_TICKS_INDEX 1 /* 1 - exec mode */ #define CPUI$K_SUPER_TICKS_INDEX 2 /* 2 - super mode */ #define CPUI$K_USER_TICKS_INDEX 3 /* 3 - user mode */ #define CPUI$K_INT_TICKS_INDEX 4 /* 4 - interrupt */ #define CPUI$K_MPSYNCH_TICKS_INDEX 5 /* 5 - mpsynch */ #define CPUI$K_IDLE_TICKS_INDEX 6 /* 6 - idle */ #define CPUI$K_TICKS_ENTRIES 7 /* 7 - Total number of entries */ #pragma __member_alignment __restore #ifdef __INITIAL_POINTER_SIZE /* Defined whenever ptr size pragmas supported */ #pragma __required_pointer_size __restore /* Restore the previously-defined required ptr size */ #endif #ifdef __cplusplus } #endif #pragma __standard #endif /* __CPUIDEF_LOADED */