Changeset 54415 in vbox for trunk/src/VBox/Runtime/r0drv
- Timestamp:
- Feb 24, 2015 3:26:17 AM (10 years ago)
- Location:
- trunk/src/VBox/Runtime/r0drv
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/darwin/mp-r0drv-darwin.cpp
r52618 r54415 75 75 { 76 76 return cpu_number(); 77 } 78 79 80 RTDECL(int) RTMpCurSetIndex(void) 81 { 82 return cpu_number(); 83 } 84 85 86 RTDECL(int) RTMpCurSetIndexAndId(PRTCPUID pidCpu) 87 { 88 return *pidCpu = cpu_number(); 77 89 } 78 90 -
trunk/src/VBox/Runtime/r0drv/freebsd/mp-r0drv-freebsd.c
r52618 r54415 41 41 { 42 42 return curcpu; 43 } 44 45 46 RTDECL(int) RTMpCurSetIndex(void) 47 { 48 return curcpu; 49 } 50 51 52 RTDECL(int) RTMpCurSetIndexAndId(PRTCPUID pidCpu) 53 { 54 return *pidCpu = curcpu; 43 55 } 44 56 -
trunk/src/VBox/Runtime/r0drv/haiku/mp-r0drv-haiku.c
r52618 r54415 5 5 6 6 /* 7 * Copyright (C) 2012-201 4Oracle Corporation7 * Copyright (C) 2012-2015 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 41 41 { 42 42 return smp_get_current_cpu(); 43 } 44 45 46 RTDECL(int) RTMpCurSetIndex(void) 47 { 48 return smp_get_current_cpu(); 49 } 50 51 52 RTDECL(int) RTMpCurSetIndexAndId(PRTCPUID pidCpu) 53 { 54 return *pidCpu = smp_get_current_cpu(); 43 55 } 44 56 -
trunk/src/VBox/Runtime/r0drv/linux/mp-r0drv-linux.c
r52618 r54415 45 45 } 46 46 RT_EXPORT_SYMBOL(RTMpCpuId); 47 48 49 RTDECL(int) RTMpCurSetIndex(void) 50 { 51 return smp_processor_id(); 52 } 53 RT_EXPORT_SYMBOL(RTMpCurSetIndex); 54 55 56 RTDECL(int) RTMpCurSetIndexAndId(PRTCPUID pidCpu) 57 { 58 return *pidCpu = smp_processor_id(); 59 } 60 RT_EXPORT_SYMBOL(RTMpCurSetIndexAndId); 47 61 48 62 -
trunk/src/VBox/Runtime/r0drv/nt/mp-r0drv-nt.cpp
r54414 r54415 92 92 /* WDK upgrade warning: PCR->Number changed from BYTE to WORD. */ 93 93 return KeGetCurrentProcessorNumber(); 94 } 95 96 97 RTDECL(int) RTMpCurSetIndex(void) 98 { 99 /* WDK upgrade warning: PCR->Number changed from BYTE to WORD. */ 100 return KeGetCurrentProcessorNumber(); 101 } 102 103 104 RTDECL(int) RTMpCurSetIndexAndId(PRTCPUID pidCpu) 105 { 106 return *pidCpu = KeGetCurrentProcessorNumber(); 94 107 } 95 108 -
trunk/src/VBox/Runtime/r0drv/solaris/mp-r0drv-solaris.c
r52618 r54415 55 55 { 56 56 return CPU->cpu_id; 57 } 58 59 60 RTDECL(int) RTMpCurSetIndex(void) 61 { 62 return CPU->cpu_id; 63 } 64 65 66 RTDECL(int) RTMpCurSetIndexAndId(PRTCPUID pidCpu) 67 { 68 return *pidCpu = CPU->cpu_id; 57 69 } 58 70
Note:
See TracChangeset
for help on using the changeset viewer.