Changeset 24386 in vbox for trunk/src/VBox/Runtime/r0drv
- Timestamp:
- Nov 5, 2009 2:17:10 PM (15 years ago)
- Location:
- trunk/src/VBox/Runtime/r0drv/solaris
- Files:
-
- 11 deleted
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/solaris/initterm-r0drv-solaris.c
r22556 r24386 52 52 { 53 53 /* 54 * Detech whether spl*() is preserving the interrupt flag or not. 55 * This is a problem on S10. 54 * Initialize vbi (keeping it separate for now) 56 55 */ 57 RTCCUINTREG uOldFlags = ASMIntDisableFlags(); 58 int iOld = splr(DISP_LEVEL); 59 if (ASMIntAreEnabled()) 60 g_frtSolarisSplSetsEIF = true; 61 splx(iOld); 62 if (ASMIntAreEnabled()) 63 g_frtSolarisSplSetsEIF = true; 64 ASMSetFlags(uOldFlags); 56 int rc = vbi_init(); 57 if (!rc) 58 { 59 /* 60 * Detech whether spl*() is preserving the interrupt flag or not. 61 * This is a problem on S10. 62 */ 63 RTCCUINTREG uOldFlags = ASMIntDisableFlags(); 64 int iOld = splr(DISP_LEVEL); 65 if (ASMIntAreEnabled()) 66 g_frtSolarisSplSetsEIF = true; 67 splx(iOld); 68 if (ASMIntAreEnabled()) 69 g_frtSolarisSplSetsEIF = true; 70 ASMSetFlags(uOldFlags); 65 71 66 return VINF_SUCCESS; 72 return VINF_SUCCESS; 73 } 74 cmn_err(CE_NOTE, "vbi_init failed. rc=%d\n", rc); 75 return VERR_GENERAL_FAILURE; 67 76 } 68 77 -
trunk/src/VBox/Runtime/r0drv/solaris/the-solaris-kernel.h
r22991 r24386 59 59 #include <sys/spl.h> 60 60 #include <sys/archsystm.h> 61 #include "vbi.h" 61 62 62 63 #undef u /* /usr/include/sys/user.h:249:1 is where this is defined to (curproc->p_user). very cool. */ … … 66 67 67 68 RT_C_DECLS_BEGIN 68 extern bool 69 extern struct ddi_dma_attr 69 extern bool g_frtSolarisSplSetsEIF; 70 extern struct ddi_dma_attr g_SolarisX86PhysMemLimits; 70 71 extern uintptr_t kernelbase; 72 extern RTCPUSET g_rtMpSolarisCpuSet; 71 73 RT_C_DECLS_END 72 74 -
trunk/src/VBox/Runtime/r0drv/solaris/vbi/RTMpPokeCpu-r0drv-solaris.c
r22073 r24386 33 33 * Header Files * 34 34 *******************************************************************************/ 35 #include " the-solaris-kernel.h"35 #include "../the-solaris-kernel.h" 36 36 #include "internal/iprt.h" 37 37 #include <iprt/mp.h> -
trunk/src/VBox/Runtime/r0drv/solaris/vbi/alloc-r0drv-solaris.c
r22073 r24386 33 33 * Header Files * 34 34 *******************************************************************************/ 35 #include " the-solaris-kernel.h"35 #include "../the-solaris-kernel.h" 36 36 #include "internal/iprt.h" 37 37 #include <iprt/mem.h> -
trunk/src/VBox/Runtime/r0drv/solaris/vbi/i86pc/os/vbi.c
r21452 r24386 187 187 /* End of v6 intro */ 188 188 189 189 #if 0 190 190 int 191 191 _init(void) 192 { 193 int err = vbi_init(); 194 if (!err) 195 err = mod_install(&vbi_modlinkage); 196 return (err); 197 } 198 #endif 199 200 int 201 vbi_init(void) 192 202 { 193 203 int err; … … 266 276 return EINVAL; 267 277 } 268 269 err = mod_install(&vbi_modlinkage);270 if (err != 0)271 return (err);272 273 278 return (0); 274 279 } 275 280 281 #if 0 276 282 int 277 283 _fini(void) … … 289 295 return (mod_info(&vbi_modlinkage, modinfop)); 290 296 } 297 #endif 298 291 299 292 300 static ddi_dma_attr_t base_attr = { -
trunk/src/VBox/Runtime/r0drv/solaris/vbi/memobj-r0drv-solaris.c
r24247 r24386 33 33 * Header Files * 34 34 *******************************************************************************/ 35 #include " the-solaris-kernel.h"35 #include "../the-solaris-kernel.h" 36 36 #include "internal/iprt.h" 37 37 #include <iprt/memobj.h> -
trunk/src/VBox/Runtime/r0drv/solaris/vbi/mp-r0drv-solaris.c
r22347 r24386 33 33 * Header Files * 34 34 *******************************************************************************/ 35 #include " the-solaris-kernel.h"35 #include "../the-solaris-kernel.h" 36 36 #include "internal/iprt.h" 37 37 #include <iprt/mp.h> 38 #include <iprt/cpuset.h> 38 39 39 40 #include <iprt/asm.h> 40 41 #include <iprt/err.h> 41 #include "internal-r0drv-solaris.h"42 42 #include "r0drv/mp-r0drv.h" 43 43 -
trunk/src/VBox/Runtime/r0drv/solaris/vbi/mpnotification-r0drv-solaris.c
r22439 r24386 32 32 * Header Files * 33 33 *******************************************************************************/ 34 #include " the-solaris-kernel.h"34 #include "../the-solaris-kernel.h" 35 35 #include "internal/iprt.h" 36 36 37 37 #include <iprt/err.h> 38 38 #include <iprt/mp.h> 39 #include <iprt/cpuset.h> 39 40 #include "r0drv/mp-r0drv.h" 40 #include "internal-r0drv-solaris.h"41 41 42 42 -
trunk/src/VBox/Runtime/r0drv/solaris/vbi/process-r0drv-solaris.c
r22073 r24386 33 33 * Header Files * 34 34 *******************************************************************************/ 35 #include " the-solaris-kernel.h"35 #include "../the-solaris-kernel.h" 36 36 #include "internal/iprt.h" 37 37 #include <iprt/process.h> -
trunk/src/VBox/Runtime/r0drv/solaris/vbi/thread-r0drv-solaris.c
r23505 r24386 33 33 * Header Files * 34 34 *******************************************************************************/ 35 #include " the-solaris-kernel.h"35 #include "../the-solaris-kernel.h" 36 36 #include "internal/iprt.h" 37 37 #include <iprt/thread.h> -
trunk/src/VBox/Runtime/r0drv/solaris/vbi/thread2-r0drv-solaris.c
r22073 r24386 33 33 * Header Files * 34 34 *******************************************************************************/ 35 #include " the-solaris-kernel.h"35 #include "../the-solaris-kernel.h" 36 36 #include "internal/iprt.h" 37 37 #include <iprt/thread.h> -
trunk/src/VBox/Runtime/r0drv/solaris/vbi/time-r0drv-solaris.c
r22073 r24386 34 34 *******************************************************************************/ 35 35 #define RTTIME_INCL_TIMESPEC 36 #include " the-solaris-kernel.h"36 #include "../the-solaris-kernel.h" 37 37 #include "internal/iprt.h" 38 38 #include <iprt/time.h> -
trunk/src/VBox/Runtime/r0drv/solaris/vbi/timer-r0drv-solaris.c
r22073 r24386 33 33 * Header Files * 34 34 *******************************************************************************/ 35 #include " the-solaris-kernel.h"35 #include "../the-solaris-kernel.h" 36 36 #include "internal/iprt.h" 37 37 #include <iprt/timer.h>
Note:
See TracChangeset
for help on using the changeset viewer.