Changeset 30374 in vbox
- Timestamp:
- Jun 22, 2010 1:22:45 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/solaris/vbi/i86pc/os/vbi.c
r30190 r30374 20 20 */ 21 21 /* 22 * Copyright 20 09Sun Microsystems, Inc. All rights reserved.22 * Copyright 2010 Sun Microsystems, Inc. All rights reserved. 23 23 * Use is subject to license terms. 24 24 */ … … 130 130 #endif 131 131 132 /* Introduced in v8 */ 133 static int vbi_is_initialized = 0; 134 132 135 /* Introduced in v6 */ 133 136 static int vbi_is_nevada = 0; … … 278 281 return EINVAL; 279 282 } 283 284 vbi_is_initialized = 1; 280 285 281 286 return (0); … … 1205 1210 vbi_is_preempt_enabled(void) 1206 1211 { 1207 char tpr = VBI_T_PREEMPT; 1208 return (tpr == 0); 1212 if (vbi_is_initialized) { 1213 char tpr = VBI_T_PREEMPT; 1214 return (tpr == 0); 1215 } else { 1216 cmn_err(CE_NOTE, "vbi_is_preempt_enabled: called without initializing vbi!\n"); 1217 return 1; 1218 } 1209 1219 } 1210 1220
Note:
See TracChangeset
for help on using the changeset viewer.