Index: version.plist =================================================================== --- version.plist (revision 0) +++ version.plist (revision 1) @@ -0,0 +1,16 @@ + + + + + BuildVersion + 2 + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + ProjectName + DevToolsWizardTemplates + SourceVersion + 15920000 + + Index: VoodooTSCSync.h =================================================================== --- VoodooTSCSync.h (revision 0) +++ VoodooTSCSync.h (revision 1) @@ -0,0 +1,47 @@ +/* Do what you want with this. + This work originates from the ideas of Turbo and the + frustrations of cosmo1t the dell owner. + * + */ + + +#include +#include +#include + + + +//reg define +#define MSR_IA32_TSC 0x00000010 + + + +//extern fucntion defined in mp.c from xnu +extern "C" void mp_rendezvous_no_intrs( + void (*action_func)(void *), + void *arg); +extern "C" void mp_broadcast( + void (*action_func)(void *), + void *arg); + +extern "C" void rtc_clock_napped(uint64_t base, uint64_t tsc_base); + +/* You can get rid of this if you want, it was used for debugging purposes testing the IOCpuNumber matching**/ +//IOLock * lock; +//int countCalled; + +class org_voodoo_driver_VoodooTSCSync : public IOService + +{ + + OSDeclareDefaultStructors(org_voodoo_driver_VoodooTSCSync) +private: + void doTSC(void); +public: + + + virtual bool init(OSDictionary *dictionary = 0); + virtual bool start(IOService *provider); + virtual void stop(IOService *provider); + virtual IOReturn setPowerState(unsigned long powerStateOrdinal, IOService *whatDevice); +}; Index: Info.plist =================================================================== --- Info.plist (revision 0) +++ Info.plist (revision 1) @@ -0,0 +1,56 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleName + ${PRODUCT_NAME} + CFBundleIconFile + + CFBundleIdentifier + org.voodoo.driver.${PRODUCT_NAME:rfc1034Identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + KEXT + CFBundleSignature + ???? + CFBundleVersion + 1.1 + CFBundleGetInfoString + © 2009 Cosmo1t + IOKitPersonalities + + VoodooTSCSync + + IOClass + org_voodoo_driver_${PRODUCT_NAME:rfc1034Identifier} + CFBundleIdentifier + org.voodoo.driver.${PRODUCT_NAME:rfc1034Identifier} + IOMatchCategory + ${PRODUCT_NAME:rfc1034Identifier} + IOPropertyMatch + + IOCPUNumber + 1 + + IOProviderClass + AppleACPICPU + + + OSBundleLibraries + + com.apple.kpi.unsupported + 8.0b1 + com.apple.kpi.libkern + 8.0d0 + com.apple.kpi.iokit + 7.0 + + OSBundleRequired + Root + + Index: VoodooTSCSync.xcodeproj/cosmo1t.mode1v3 =================================================================== --- VoodooTSCSync.xcodeproj/cosmo1t.mode1v3 (revision 0) +++ VoodooTSCSync.xcodeproj/cosmo1t.mode1v3 (revision 1) @@ -0,0 +1,1412 @@ + + + + + ActivePerspectiveName + Project + AllowedModules + + + BundleLoadPath + + MaxInstances + n + Module + PBXSmartGroupTreeModule + Name + Groups and Files Outline View + + + BundleLoadPath + + MaxInstances + n + Module + PBXNavigatorGroup + Name + Editor + + + BundleLoadPath + + MaxInstances + n + Module + XCTaskListModule + Name + Task List + + + BundleLoadPath + + MaxInstances + n + Module + XCDetailModule + Name + File and Smart Group Detail Viewer + + + BundleLoadPath + + MaxInstances + 1 + Module + PBXBuildResultsModule + Name + Detailed Build Results Viewer + + + BundleLoadPath + + MaxInstances + 1 + Module + PBXProjectFindModule + Name + Project Batch Find Tool + + + BundleLoadPath + + MaxInstances + n + Module + XCProjectFormatConflictsModule + Name + Project Format Conflicts List + + + BundleLoadPath + + MaxInstances + n + Module + PBXBookmarksModule + Name + Bookmarks Tool + + + BundleLoadPath + + MaxInstances + n + Module + PBXClassBrowserModule + Name + Class Browser + + + BundleLoadPath + + MaxInstances + n + Module + PBXCVSModule + Name + Source Code Control Tool + + + BundleLoadPath + + MaxInstances + n + Module + PBXDebugBreakpointsModule + Name + Debug Breakpoints Tool + + + BundleLoadPath + + MaxInstances + n + Module + XCDockableInspector + Name + Inspector + + + BundleLoadPath + + MaxInstances + n + Module + PBXOpenQuicklyModule + Name + Open Quickly Tool + + + BundleLoadPath + + MaxInstances + 1 + Module + PBXDebugSessionModule + Name + Debugger + + + BundleLoadPath + + MaxInstances + 1 + Module + PBXDebugCLIModule + Name + Debug Console + + + BundleLoadPath + + MaxInstances + n + Module + XCSnapshotModule + Name + Snapshots Tool + + + BundlePath + /Developer/Library/PrivateFrameworks/DevToolsInterface.framework/Resources + Description + DefaultDescriptionKey + DockingSystemVisible + + Extension + mode1v3 + FavBarConfig + + PBXProjectModuleGUID + 9F25543D1063ED6100BF13B3 + XCBarModuleItemNames + + XCBarModuleItems + + + FirstTimeWindowDisplayed + + Identifier + com.apple.perspectives.project.mode1v3 + MajorVersion + 33 + MinorVersion + 0 + Name + Default + Notifications + + OpenEditors + + + Content + + PBXProjectModuleGUID + 9FAED46D1068018000C9FE5C + PBXProjectModuleLabel + VoodooTSCSync.cpp + PBXSplitModuleInNavigatorKey + + Split0 + + PBXProjectModuleGUID + 9FAED46E1068018000C9FE5C + PBXProjectModuleLabel + VoodooTSCSync.cpp + _historyCapacity + 0 + bookmark + 9FC7439610681B12000B3040 + history + + 9FAED46F1068018000C9FE5C + + + SplitCount + 1 + + StatusBarVisibility + + + Geometry + + Frame + {{0, 20}, {1048, 733}} + PBXModuleWindowStatusBarHidden2 + + RubberWindowFrame + 1703 170 1048 774 1280 -26 1680 1050 + + + + PerspectiveWidths + + -1 + -1 + + Perspectives + + + ChosenToolbarItems + + active-combo-popup + action + NSToolbarFlexibleSpaceItem + debugger-enable-breakpoints + build-and-go + com.apple.ide.PBXToolbarStopButton + get-info + NSToolbarFlexibleSpaceItem + com.apple.pbx.toolbar.searchfield + + ControllerClassBaseName + + IconName + WindowOfProjectWithEditor + Identifier + perspective.project + IsVertical + + Layout + + + BecomeActive + + ContentConfiguration + + PBXBottomSmartGroupGIDs + + 1C37FBAC04509CD000000102 + 1C37FAAC04509CD000000102 + 1C37FABC05509CD000000102 + 1C37FABC05539CD112110102 + E2644B35053B69B200211256 + 1C37FABC04509CD000100104 + 1CC0EA4004350EF90044410B + 1CC0EA4004350EF90041110B + + PBXProjectModuleGUID + 1CE0B1FE06471DED0097A5F4 + PBXProjectModuleLabel + Files + PBXProjectStructureProvided + yes + PBXSmartGroupTreeModuleColumnData + + PBXSmartGroupTreeModuleColumnWidthsKey + + 186 + + PBXSmartGroupTreeModuleColumnsKey_v4 + + MainColumn + + + PBXSmartGroupTreeModuleOutlineStateKey_v7 + + PBXSmartGroupTreeModuleOutlineStateExpansionKey + + 089C166AFE841209C02AAC07 + 1C37FBAC04509CD000000102 + 1C37FABC05509CD000000102 + + PBXSmartGroupTreeModuleOutlineStateSelectionKey + + + 0 + + + PBXSmartGroupTreeModuleOutlineStateVisibleRectKey + {{0, 0}, {186, 936}} + + PBXTopSmartGroupGIDs + + XCIncludePerspectivesSwitch + + XCSharingToken + com.apple.Xcode.GFSharingToken + + GeometryConfiguration + + Frame + {{0, 0}, {203, 954}} + GroupTreeTableConfiguration + + MainColumn + 186 + + RubberWindowFrame + 1280 29 1680 995 1280 -26 1680 1050 + + Module + PBXSmartGroupTreeModule + Proportion + 203pt + + + Dock + + + ContentConfiguration + + PBXProjectModuleGUID + 1CE0B20306471E060097A5F4 + PBXProjectModuleLabel + VoodooTSCSync.h + PBXSplitModuleInNavigatorKey + + Split0 + + PBXProjectModuleGUID + 1CE0B20406471E060097A5F4 + PBXProjectModuleLabel + VoodooTSCSync.h + _historyCapacity + 0 + bookmark + 9FC7439310681B12000B3040 + history + + 9F2558531063F8B800BF13B3 + 9F22E78E1066963A0015212D + 9F22E78F1066963A0015212D + 9FC7439110681B12000B3040 + 9FC7439210681B12000B3040 + + + SplitCount + 1 + + StatusBarVisibility + + + GeometryConfiguration + + Frame + {{0, 0}, {1472, 751}} + RubberWindowFrame + 1280 29 1680 995 1280 -26 1680 1050 + + Module + PBXNavigatorGroup + Proportion + 751pt + + + ContentConfiguration + + PBXProjectModuleGUID + 1CE0B20506471E060097A5F4 + PBXProjectModuleLabel + Detail + + GeometryConfiguration + + Frame + {{0, 756}, {1472, 198}} + RubberWindowFrame + 1280 29 1680 995 1280 -26 1680 1050 + + Module + XCDetailModule + Proportion + 198pt + + + Proportion + 1472pt + + + Name + Project + ServiceClasses + + XCModuleDock + PBXSmartGroupTreeModule + XCModuleDock + PBXNavigatorGroup + XCDetailModule + + TableOfContents + + 9FC7439410681B12000B3040 + 1CE0B1FE06471DED0097A5F4 + 9FC7439510681B12000B3040 + 1CE0B20306471E060097A5F4 + 1CE0B20506471E060097A5F4 + + ToolbarConfigUserDefaultsMinorVersion + 2 + ToolbarConfiguration + xcode.toolbar.config.defaultV3 + + + ControllerClassBaseName + + IconName + WindowOfProject + Identifier + perspective.morph + IsVertical + 0 + Layout + + + BecomeActive + 1 + ContentConfiguration + + PBXBottomSmartGroupGIDs + + 1C37FBAC04509CD000000102 + 1C37FAAC04509CD000000102 + 1C08E77C0454961000C914BD + 1C37FABC05509CD000000102 + 1C37FABC05539CD112110102 + E2644B35053B69B200211256 + 1C37FABC04509CD000100104 + 1CC0EA4004350EF90044410B + 1CC0EA4004350EF90041110B + + PBXProjectModuleGUID + 11E0B1FE06471DED0097A5F4 + PBXProjectModuleLabel + Files + PBXProjectStructureProvided + yes + PBXSmartGroupTreeModuleColumnData + + PBXSmartGroupTreeModuleColumnWidthsKey + + 186 + + PBXSmartGroupTreeModuleColumnsKey_v4 + + MainColumn + + + PBXSmartGroupTreeModuleOutlineStateKey_v7 + + PBXSmartGroupTreeModuleOutlineStateExpansionKey + + 29B97314FDCFA39411CA2CEA + 1C37FABC05509CD000000102 + + PBXSmartGroupTreeModuleOutlineStateSelectionKey + + + 0 + + + PBXSmartGroupTreeModuleOutlineStateVisibleRectKey + {{0, 0}, {186, 337}} + + PBXTopSmartGroupGIDs + + XCIncludePerspectivesSwitch + 1 + XCSharingToken + com.apple.Xcode.GFSharingToken + + GeometryConfiguration + + Frame + {{0, 0}, {203, 355}} + GroupTreeTableConfiguration + + MainColumn + 186 + + RubberWindowFrame + 373 269 690 397 0 0 1440 878 + + Module + PBXSmartGroupTreeModule + Proportion + 100% + + + Name + Morph + PreferredWidth + 300 + ServiceClasses + + XCModuleDock + PBXSmartGroupTreeModule + + TableOfContents + + 11E0B1FE06471DED0097A5F4 + + ToolbarConfiguration + xcode.toolbar.config.default.shortV3 + + + PerspectivesBarVisible + + ShelfIsVisible + + SourceDescription + file at '/Developer/Library/PrivateFrameworks/DevToolsInterface.framework/Resources/XCPerspectivesSpecificationMode1.xcperspec' + StatusbarIsVisible + + TimeStamp + 0.0 + ToolbarConfigUserDefaultsMinorVersion + 2 + ToolbarDisplayMode + 1 + ToolbarIsVisible + + ToolbarSizeMode + 1 + Type + Perspectives + UpdateMessage + The Default Workspace in this version of Xcode now includes support to hide and show the detail view (what has been referred to as the "Metro-Morph" feature). You must discard your current Default Workspace settings and update to the latest Default Workspace in order to gain this feature. Do you wish to update to the latest Workspace defaults for project '%@'? + WindowJustification + 5 + WindowOrderList + + 9F25543E1063ED6200BF13B3 + 9FAED46D1068018000C9FE5C + /Users/cosmo1t/src_apps/os_x/voodoo/VoodooTSCSync/VoodooTSCSync.xcodeproj + + WindowString + 1280 29 1680 995 1280 -26 1680 1050 + WindowToolsV3 + + + FirstTimeWindowDisplayed + + Identifier + windowTool.build + IsVertical + + Layout + + + Dock + + + ContentConfiguration + + PBXProjectModuleGUID + 1CD0528F0623707200166675 + PBXProjectModuleLabel + + StatusBarVisibility + + + GeometryConfiguration + + Frame + {{0, 0}, {1196, 379}} + RubberWindowFrame + 1427 297 1196 661 1280 -26 1680 1050 + + Module + PBXNavigatorGroup + Proportion + 379pt + + + ContentConfiguration + + PBXProjectModuleGUID + XCMainBuildResultsModuleGUID + PBXProjectModuleLabel + Build Results + XCBuildResultsTrigger_Collapse + 1021 + XCBuildResultsTrigger_Open + 1011 + + GeometryConfiguration + + Frame + {{0, 384}, {1196, 236}} + RubberWindowFrame + 1427 297 1196 661 1280 -26 1680 1050 + + Module + PBXBuildResultsModule + Proportion + 236pt + + + Proportion + 620pt + + + Name + Build Results + ServiceClasses + + PBXBuildResultsModule + + StatusbarIsVisible + + TableOfContents + + 9F25543E1063ED6200BF13B3 + 9FC7439710681B12000B3040 + 1CD0528F0623707200166675 + XCMainBuildResultsModuleGUID + + ToolbarConfiguration + xcode.toolbar.config.buildV3 + WindowContentMinSize + 486 300 + WindowString + 1427 297 1196 661 1280 -26 1680 1050 + WindowToolGUID + 9F25543E1063ED6200BF13B3 + WindowToolIsVisible + + + + Identifier + windowTool.debugger + Layout + + + Dock + + + ContentConfiguration + + Debugger + + HorizontalSplitView + + _collapsingFrameDimension + 0.0 + _indexOfCollapsedView + 0 + _percentageOfCollapsedView + 0.0 + isCollapsed + yes + sizes + + {{0, 0}, {317, 164}} + {{317, 0}, {377, 164}} + + + VerticalSplitView + + _collapsingFrameDimension + 0.0 + _indexOfCollapsedView + 0 + _percentageOfCollapsedView + 0.0 + isCollapsed + yes + sizes + + {{0, 0}, {694, 164}} + {{0, 164}, {694, 216}} + + + + LauncherConfigVersion + 8 + PBXProjectModuleGUID + 1C162984064C10D400B95A72 + PBXProjectModuleLabel + Debug - GLUTExamples (Underwater) + + GeometryConfiguration + + DebugConsoleDrawerSize + {100, 120} + DebugConsoleVisible + None + DebugConsoleWindowFrame + {{200, 200}, {500, 300}} + DebugSTDIOWindowFrame + {{200, 200}, {500, 300}} + Frame + {{0, 0}, {694, 380}} + RubberWindowFrame + 321 238 694 422 0 0 1440 878 + + Module + PBXDebugSessionModule + Proportion + 100% + + + Proportion + 100% + + + Name + Debugger + ServiceClasses + + PBXDebugSessionModule + + StatusbarIsVisible + 1 + TableOfContents + + 1CD10A99069EF8BA00B06720 + 1C0AD2AB069F1E9B00FABCE6 + 1C162984064C10D400B95A72 + 1C0AD2AC069F1E9B00FABCE6 + + ToolbarConfiguration + xcode.toolbar.config.debugV3 + WindowString + 321 238 694 422 0 0 1440 878 + WindowToolGUID + 1CD10A99069EF8BA00B06720 + WindowToolIsVisible + 0 + + + Identifier + windowTool.find + Layout + + + Dock + + + Dock + + + ContentConfiguration + + PBXProjectModuleGUID + 1CDD528C0622207200134675 + PBXProjectModuleLabel + <No Editor> + PBXSplitModuleInNavigatorKey + + Split0 + + PBXProjectModuleGUID + 1CD0528D0623707200166675 + + SplitCount + 1 + + StatusBarVisibility + 1 + + GeometryConfiguration + + Frame + {{0, 0}, {781, 167}} + RubberWindowFrame + 62 385 781 470 0 0 1440 878 + + Module + PBXNavigatorGroup + Proportion + 781pt + + + Proportion + 50% + + + BecomeActive + 1 + ContentConfiguration + + PBXProjectModuleGUID + 1CD0528E0623707200166675 + PBXProjectModuleLabel + Project Find + + GeometryConfiguration + + Frame + {{8, 0}, {773, 254}} + RubberWindowFrame + 62 385 781 470 0 0 1440 878 + + Module + PBXProjectFindModule + Proportion + 50% + + + Proportion + 428pt + + + Name + Project Find + ServiceClasses + + PBXProjectFindModule + + StatusbarIsVisible + 1 + TableOfContents + + 1C530D57069F1CE1000CFCEE + 1C530D58069F1CE1000CFCEE + 1C530D59069F1CE1000CFCEE + 1CDD528C0622207200134675 + 1C530D5A069F1CE1000CFCEE + 1CE0B1FE06471DED0097A5F4 + 1CD0528E0623707200166675 + + WindowString + 62 385 781 470 0 0 1440 878 + WindowToolGUID + 1C530D57069F1CE1000CFCEE + WindowToolIsVisible + 0 + + + Identifier + MENUSEPARATOR + + + Identifier + windowTool.debuggerConsole + Layout + + + Dock + + + BecomeActive + 1 + ContentConfiguration + + PBXProjectModuleGUID + 1C78EAAC065D492600B07095 + PBXProjectModuleLabel + Debugger Console + + GeometryConfiguration + + Frame + {{0, 0}, {650, 250}} + RubberWindowFrame + 516 632 650 250 0 0 1680 1027 + + Module + PBXDebugCLIModule + Proportion + 209pt + + + Proportion + 209pt + + + Name + Debugger Console + ServiceClasses + + PBXDebugCLIModule + + StatusbarIsVisible + 1 + TableOfContents + + 1C78EAAD065D492600B07095 + 1C78EAAE065D492600B07095 + 1C78EAAC065D492600B07095 + + ToolbarConfiguration + xcode.toolbar.config.consoleV3 + WindowString + 650 41 650 250 0 0 1280 1002 + WindowToolGUID + 1C78EAAD065D492600B07095 + WindowToolIsVisible + 0 + + + Identifier + windowTool.snapshots + Layout + + + Dock + + + Module + XCSnapshotModule + Proportion + 100% + + + Proportion + 100% + + + Name + Snapshots + ServiceClasses + + XCSnapshotModule + + StatusbarIsVisible + Yes + ToolbarConfiguration + xcode.toolbar.config.snapshots + WindowString + 315 824 300 550 0 0 1440 878 + WindowToolIsVisible + Yes + + + Identifier + windowTool.scm + Layout + + + Dock + + + ContentConfiguration + + PBXProjectModuleGUID + 1C78EAB2065D492600B07095 + PBXProjectModuleLabel + <No Editor> + PBXSplitModuleInNavigatorKey + + Split0 + + PBXProjectModuleGUID + 1C78EAB3065D492600B07095 + + SplitCount + 1 + + StatusBarVisibility + 1 + + GeometryConfiguration + + Frame + {{0, 0}, {452, 0}} + RubberWindowFrame + 743 379 452 308 0 0 1280 1002 + + Module + PBXNavigatorGroup + Proportion + 0pt + + + BecomeActive + 1 + ContentConfiguration + + PBXProjectModuleGUID + 1CD052920623707200166675 + PBXProjectModuleLabel + SCM + + GeometryConfiguration + + ConsoleFrame + {{0, 259}, {452, 0}} + Frame + {{0, 7}, {452, 259}} + RubberWindowFrame + 743 379 452 308 0 0 1280 1002 + TableConfiguration + + Status + 30 + FileName + 199 + Path + 197.0950012207031 + + TableFrame + {{0, 0}, {452, 250}} + + Module + PBXCVSModule + Proportion + 262pt + + + Proportion + 266pt + + + Name + SCM + ServiceClasses + + PBXCVSModule + + StatusbarIsVisible + 1 + TableOfContents + + 1C78EAB4065D492600B07095 + 1C78EAB5065D492600B07095 + 1C78EAB2065D492600B07095 + 1CD052920623707200166675 + + ToolbarConfiguration + xcode.toolbar.config.scm + WindowString + 743 379 452 308 0 0 1280 1002 + + + Identifier + windowTool.breakpoints + IsVertical + 0 + Layout + + + Dock + + + BecomeActive + 1 + ContentConfiguration + + PBXBottomSmartGroupGIDs + + 1C77FABC04509CD000000102 + + PBXProjectModuleGUID + 1CE0B1FE06471DED0097A5F4 + PBXProjectModuleLabel + Files + PBXProjectStructureProvided + no + PBXSmartGroupTreeModuleColumnData + + PBXSmartGroupTreeModuleColumnWidthsKey + + 168 + + PBXSmartGroupTreeModuleColumnsKey_v4 + + MainColumn + + + PBXSmartGroupTreeModuleOutlineStateKey_v7 + + PBXSmartGroupTreeModuleOutlineStateExpansionKey + + 1C77FABC04509CD000000102 + + PBXSmartGroupTreeModuleOutlineStateSelectionKey + + + 0 + + + PBXSmartGroupTreeModuleOutlineStateVisibleRectKey + {{0, 0}, {168, 350}} + + PBXTopSmartGroupGIDs + + XCIncludePerspectivesSwitch + 0 + + GeometryConfiguration + + Frame + {{0, 0}, {185, 368}} + GroupTreeTableConfiguration + + MainColumn + 168 + + RubberWindowFrame + 315 424 744 409 0 0 1440 878 + + Module + PBXSmartGroupTreeModule + Proportion + 185pt + + + ContentConfiguration + + PBXProjectModuleGUID + 1CA1AED706398EBD00589147 + PBXProjectModuleLabel + Detail + + GeometryConfiguration + + Frame + {{190, 0}, {554, 368}} + RubberWindowFrame + 315 424 744 409 0 0 1440 878 + + Module + XCDetailModule + Proportion + 554pt + + + Proportion + 368pt + + + MajorVersion + 3 + MinorVersion + 0 + Name + Breakpoints + ServiceClasses + + PBXSmartGroupTreeModule + XCDetailModule + + StatusbarIsVisible + 1 + TableOfContents + + 1CDDB66807F98D9800BB5817 + 1CDDB66907F98D9800BB5817 + 1CE0B1FE06471DED0097A5F4 + 1CA1AED706398EBD00589147 + + ToolbarConfiguration + xcode.toolbar.config.breakpointsV3 + WindowString + 315 424 744 409 0 0 1440 878 + WindowToolGUID + 1CDDB66807F98D9800BB5817 + WindowToolIsVisible + 1 + + + Identifier + windowTool.debugAnimator + Layout + + + Dock + + + Module + PBXNavigatorGroup + Proportion + 100% + + + Proportion + 100% + + + Name + Debug Visualizer + ServiceClasses + + PBXNavigatorGroup + + StatusbarIsVisible + 1 + ToolbarConfiguration + xcode.toolbar.config.debugAnimatorV3 + WindowString + 100 100 700 500 0 0 1280 1002 + + + Identifier + windowTool.bookmarks + Layout + + + Dock + + + Module + PBXBookmarksModule + Proportion + 100% + + + Proportion + 100% + + + Name + Bookmarks + ServiceClasses + + PBXBookmarksModule + + StatusbarIsVisible + 0 + WindowString + 538 42 401 187 0 0 1280 1002 + + + Identifier + windowTool.projectFormatConflicts + Layout + + + Dock + + + Module + XCProjectFormatConflictsModule + Proportion + 100% + + + Proportion + 100% + + + Name + Project Format Conflicts + ServiceClasses + + XCProjectFormatConflictsModule + + StatusbarIsVisible + 0 + WindowContentMinSize + 450 300 + WindowString + 50 850 472 307 0 0 1440 877 + + + Identifier + windowTool.classBrowser + Layout + + + Dock + + + BecomeActive + 1 + ContentConfiguration + + OptionsSetName + Hierarchy, all classes + PBXProjectModuleGUID + 1CA6456E063B45B4001379D8 + PBXProjectModuleLabel + Class Browser - NSObject + + GeometryConfiguration + + ClassesFrame + {{0, 0}, {374, 96}} + ClassesTreeTableConfiguration + + PBXClassNameColumnIdentifier + 208 + PBXClassBookColumnIdentifier + 22 + + Frame + {{0, 0}, {630, 331}} + MembersFrame + {{0, 105}, {374, 395}} + MembersTreeTableConfiguration + + PBXMemberTypeIconColumnIdentifier + 22 + PBXMemberNameColumnIdentifier + 216 + PBXMemberTypeColumnIdentifier + 97 + PBXMemberBookColumnIdentifier + 22 + + PBXModuleWindowStatusBarHidden2 + 1 + RubberWindowFrame + 385 179 630 352 0 0 1440 878 + + Module + PBXClassBrowserModule + Proportion + 332pt + + + Proportion + 332pt + + + Name + Class Browser + ServiceClasses + + PBXClassBrowserModule + + StatusbarIsVisible + 0 + TableOfContents + + 1C0AD2AF069F1E9B00FABCE6 + 1C0AD2B0069F1E9B00FABCE6 + 1CA6456E063B45B4001379D8 + + ToolbarConfiguration + xcode.toolbar.config.classbrowser + WindowString + 385 179 630 352 0 0 1440 878 + WindowToolGUID + 1C0AD2AF069F1E9B00FABCE6 + WindowToolIsVisible + 0 + + + Identifier + windowTool.refactoring + IncludeInToolsMenu + 0 + Layout + + + Dock + + + BecomeActive + 1 + GeometryConfiguration + + Frame + {0, 0}, {500, 335} + RubberWindowFrame + {0, 0}, {500, 335} + + Module + XCRefactoringModule + Proportion + 100% + + + Proportion + 100% + + + Name + Refactoring + ServiceClasses + + XCRefactoringModule + + WindowString + 200 200 500 356 0 0 1920 1200 + + + + Index: VoodooTSCSync.xcodeproj/xcuserdata/cmorton.xcuserdatad/xcschemes/xcschememanagement.plist =================================================================== --- VoodooTSCSync.xcodeproj/xcuserdata/cmorton.xcuserdatad/xcschemes/xcschememanagement.plist (revision 0) +++ VoodooTSCSync.xcodeproj/xcuserdata/cmorton.xcuserdatad/xcschemes/xcschememanagement.plist (revision 1) @@ -0,0 +1,22 @@ + + + + + SchemeUserState + + VoodooTSCSync.xcscheme + + orderHint + 0 + + + SuppressBuildableAutocreation + + 32D94FC30562CBF700B6AF17 + + primary + + + + + Index: VoodooTSCSync.xcodeproj/xcuserdata/cmorton.xcuserdatad/xcschemes/VoodooTSCSync.xcscheme =================================================================== --- VoodooTSCSync.xcodeproj/xcuserdata/cmorton.xcuserdatad/xcschemes/VoodooTSCSync.xcscheme (revision 0) +++ VoodooTSCSync.xcodeproj/xcuserdata/cmorton.xcuserdatad/xcschemes/VoodooTSCSync.xcscheme (revision 1) @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + + + + + + + + + + + Index: VoodooTSCSync.xcodeproj/project.pbxproj =================================================================== --- VoodooTSCSync.xcodeproj/project.pbxproj (revision 0) +++ VoodooTSCSync.xcodeproj/project.pbxproj (revision 1) @@ -0,0 +1,255 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 32D94FC60562CBF700B6AF17 /* VoodooTSCSync.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A224C3EFF42367911CA2CB7 /* VoodooTSCSync.h */; }; + 32D94FC80562CBF700B6AF17 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C167DFE841241C02AAC07 /* InfoPlist.strings */; }; + 32D94FCA0562CBF700B6AF17 /* VoodooTSCSync.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A224C3FFF42367911CA2CB7 /* VoodooTSCSync.cpp */; settings = {ATTRIBUTES = (); }; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 089C167EFE841241C02AAC07 /* English */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/InfoPlist.strings; sourceTree = ""; }; + 1A224C3EFF42367911CA2CB7 /* VoodooTSCSync.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = VoodooTSCSync.h; sourceTree = ""; }; + 1A224C3FFF42367911CA2CB7 /* VoodooTSCSync.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = VoodooTSCSync.cpp; sourceTree = ""; }; + 32D94FCF0562CBF700B6AF17 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 32D94FD00562CBF700B6AF17 /* VoodooTSCSync.kext */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = VoodooTSCSync.kext; sourceTree = BUILT_PRODUCTS_DIR; }; + 8DA8362C06AD9B9200E5AC22 /* Kernel.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Kernel.framework; path = /System/Library/Frameworks/Kernel.framework; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 32D94FCB0562CBF700B6AF17 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 089C166AFE841209C02AAC07 /* VoodooTSCSync */ = { + isa = PBXGroup; + children = ( + 247142CAFF3F8F9811CA285C /* Source */, + 8DA8362C06AD9B9200E5AC22 /* Kernel.framework */, + 089C167CFE841241C02AAC07 /* Resources */, + 19C28FB6FE9D52B211CA2CBB /* Products */, + ); + name = VoodooTSCSync; + sourceTree = ""; + }; + 089C167CFE841241C02AAC07 /* Resources */ = { + isa = PBXGroup; + children = ( + 32D94FCF0562CBF700B6AF17 /* Info.plist */, + 089C167DFE841241C02AAC07 /* InfoPlist.strings */, + ); + name = Resources; + sourceTree = ""; + }; + 19C28FB6FE9D52B211CA2CBB /* Products */ = { + isa = PBXGroup; + children = ( + 32D94FD00562CBF700B6AF17 /* VoodooTSCSync.kext */, + ); + name = Products; + sourceTree = ""; + }; + 247142CAFF3F8F9811CA285C /* Source */ = { + isa = PBXGroup; + children = ( + 1A224C3EFF42367911CA2CB7 /* VoodooTSCSync.h */, + 1A224C3FFF42367911CA2CB7 /* VoodooTSCSync.cpp */, + ); + name = Source; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXHeadersBuildPhase section */ + 32D94FC50562CBF700B6AF17 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 32D94FC60562CBF700B6AF17 /* VoodooTSCSync.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXHeadersBuildPhase section */ + +/* Begin PBXNativeTarget section */ + 32D94FC30562CBF700B6AF17 /* VoodooTSCSync */ = { + isa = PBXNativeTarget; + buildConfigurationList = 1DEB91D908733DB10010E9CD /* Build configuration list for PBXNativeTarget "VoodooTSCSync" */; + buildPhases = ( + 32D94FC50562CBF700B6AF17 /* Headers */, + 32D94FC70562CBF700B6AF17 /* Resources */, + 32D94FC90562CBF700B6AF17 /* Sources */, + 32D94FCB0562CBF700B6AF17 /* Frameworks */, + 32D94FCC0562CBF700B6AF17 /* Rez */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = VoodooTSCSync; + productInstallPath = "$(SYSTEM_LIBRARY_DIR)/Extensions"; + productName = VoodooTSCSync; + productReference = 32D94FD00562CBF700B6AF17 /* VoodooTSCSync.kext */; + productType = "com.apple.product-type.kernel-extension.iokit"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 089C1669FE841209C02AAC07 /* Project object */ = { + isa = PBXProject; + buildConfigurationList = 1DEB91DD08733DB10010E9CD /* Build configuration list for PBXProject "VoodooTSCSync" */; + compatibilityVersion = "Xcode 3.2"; + hasScannedForEncodings = 1; + mainGroup = 089C166AFE841209C02AAC07 /* VoodooTSCSync */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 32D94FC30562CBF700B6AF17 /* VoodooTSCSync */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 32D94FC70562CBF700B6AF17 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 32D94FC80562CBF700B6AF17 /* InfoPlist.strings in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXRezBuildPhase section */ + 32D94FCC0562CBF700B6AF17 /* Rez */ = { + isa = PBXRezBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXRezBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 32D94FC90562CBF700B6AF17 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 32D94FCA0562CBF700B6AF17 /* VoodooTSCSync.cpp in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 089C167DFE841241C02AAC07 /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + 089C167EFE841241C02AAC07 /* English */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 1DEB91DA08733DB10010E9CD /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + COPY_PHASE_STRIP = NO; + CURRENT_PROJECT_VERSION = 1.0.0d1; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + GCC_DYNAMIC_NO_PIC = NO; + GCC_MODEL_TUNING = G5; + GCC_OPTIMIZATION_LEVEL = 0; + INFOPLIST_FILE = Info.plist; + INSTALL_PATH = "$(SYSTEM_LIBRARY_DIR)/Extensions"; + MODULE_NAME = com.yourcompany.driver.VoodooTSCSync; + MODULE_VERSION = 1.0.0d1; + PRODUCT_NAME = VoodooTSCSync; + WRAPPER_EXTENSION = kext; + }; + name = Debug; + }; + 1DEB91DB08733DB10010E9CD /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CURRENT_PROJECT_VERSION = 1.0.0d1; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + GCC_MODEL_TUNING = G5; + INFOPLIST_FILE = Info.plist; + INSTALL_PATH = "$(SYSTEM_LIBRARY_DIR)/Extensions"; + MODULE_NAME = com.yourcompany.driver.VoodooTSCSync; + MODULE_VERSION = 1.0.0d1; + PRODUCT_NAME = VoodooTSCSync; + WRAPPER_EXTENSION = kext; + }; + name = Release; + }; + 1DEB91DE08733DB10010E9CD /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD_32_64_BIT)"; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + ONLY_ACTIVE_ARCH = NO; + PREBINDING = NO; + SDKROOT = macosx10.6; + VALID_ARCHS = "i386 x86_64"; + }; + name = Debug; + }; + 1DEB91DF08733DB10010E9CD /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD_32_64_BIT)"; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + ONLY_ACTIVE_ARCH = NO; + PREBINDING = NO; + SDKROOT = macosx10.6; + VALID_ARCHS = "i386 x86_64"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 1DEB91D908733DB10010E9CD /* Build configuration list for PBXNativeTarget "VoodooTSCSync" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 1DEB91DA08733DB10010E9CD /* Debug */, + 1DEB91DB08733DB10010E9CD /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 1DEB91DD08733DB10010E9CD /* Build configuration list for PBXProject "VoodooTSCSync" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 1DEB91DE08733DB10010E9CD /* Debug */, + 1DEB91DF08733DB10010E9CD /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 089C1669FE841209C02AAC07 /* Project object */; +} Index: VoodooTSCSync.xcodeproj/cosmo1t.pbxuser =================================================================== --- VoodooTSCSync.xcodeproj/cosmo1t.pbxuser (revision 0) +++ VoodooTSCSync.xcodeproj/cosmo1t.pbxuser (revision 1) @@ -0,0 +1,218 @@ +// !$*UTF8*$! +{ + 089C1669FE841209C02AAC07 /* Project object */ = { + activeBuildConfigurationName = Release; + activeTarget = 32D94FC30562CBF700B6AF17 /* VoodooTSCSync */; + codeSenseManager = 9F2554411063ED6200BF13B3 /* Code sense */; + perUserDictionary = { + PBXConfiguration.PBXFileTableDataSource3.PBXBookmarksDataSource = { + PBXFileTableDataSourceColumnSortingDirectionKey = "-1"; + PBXFileTableDataSourceColumnSortingKey = PBXBookmarksDataSource_NameID; + PBXFileTableDataSourceColumnWidthsKey = ( + 200, + 200, + 1029, + ); + PBXFileTableDataSourceColumnsKey = ( + PBXBookmarksDataSource_LocationID, + PBXBookmarksDataSource_NameID, + PBXBookmarksDataSource_CommentsID, + ); + }; + PBXConfiguration.PBXFileTableDataSource3.PBXFileTableDataSource = { + PBXFileTableDataSourceColumnSortingDirectionKey = "-1"; + PBXFileTableDataSourceColumnSortingKey = PBXFileDataSource_Filename_ColumnID; + PBXFileTableDataSourceColumnWidthsKey = ( + 20, + 1233, + 20, + 48, + 43, + 43, + 20, + ); + PBXFileTableDataSourceColumnsKey = ( + PBXFileDataSource_FiletypeID, + PBXFileDataSource_Filename_ColumnID, + PBXFileDataSource_Built_ColumnID, + PBXFileDataSource_ObjectSize_ColumnID, + PBXFileDataSource_Errors_ColumnID, + PBXFileDataSource_Warnings_ColumnID, + PBXFileDataSource_Target_ColumnID, + ); + }; + PBXConfiguration.PBXTargetDataSource.PBXTargetDataSource = { + PBXFileTableDataSourceColumnSortingDirectionKey = "-1"; + PBXFileTableDataSourceColumnSortingKey = PBXFileDataSource_Filename_ColumnID; + PBXFileTableDataSourceColumnWidthsKey = ( + 20, + 1193, + 60, + 20, + 48.16259765625, + 43, + 43, + ); + PBXFileTableDataSourceColumnsKey = ( + PBXFileDataSource_FiletypeID, + PBXFileDataSource_Filename_ColumnID, + PBXTargetDataSource_PrimaryAttribute, + PBXFileDataSource_Built_ColumnID, + PBXFileDataSource_ObjectSize_ColumnID, + PBXFileDataSource_Errors_ColumnID, + PBXFileDataSource_Warnings_ColumnID, + ); + }; + PBXPerProjectTemplateStateSaveDate = 275256140; + PBXWorkspaceStateSaveDate = 275256140; + }; + perUserProjectItems = { + 9F22E78E1066963A0015212D /* PBXTextBookmark */ = 9F22E78E1066963A0015212D /* PBXTextBookmark */; + 9F22E78F1066963A0015212D /* PBXTextBookmark */ = 9F22E78F1066963A0015212D /* PBXTextBookmark */; + 9F2558531063F8B800BF13B3 /* PBXTextBookmark */ = 9F2558531063F8B800BF13B3 /* PBXTextBookmark */; + 9FAED46F1068018000C9FE5C /* PBXTextBookmark */ = 9FAED46F1068018000C9FE5C /* PBXTextBookmark */; + 9FC7439110681B12000B3040 /* PBXTextBookmark */ = 9FC7439110681B12000B3040 /* PBXTextBookmark */; + 9FC7439210681B12000B3040 /* PBXTextBookmark */ = 9FC7439210681B12000B3040 /* PBXTextBookmark */; + 9FC7439310681B12000B3040 /* PBXTextBookmark */ = 9FC7439310681B12000B3040 /* PBXTextBookmark */; + 9FC7439610681B12000B3040 /* PBXTextBookmark */ = 9FC7439610681B12000B3040 /* PBXTextBookmark */; + }; + sourceControlManager = 9F2554401063ED6200BF13B3 /* Source Control */; + userBuildSettings = { + }; + }; + 089C167EFE841241C02AAC07 /* English */ = { + uiCtxt = { + sepNavIntBoundsRect = "{{0, 0}, {1411, 727}}"; + sepNavSelRange = "{0, 0}"; + sepNavVisRange = "{0, 45}"; + }; + }; + 1A224C3EFF42367911CA2CB7 /* VoodooTSCSync.h */ = { + uiCtxt = { + sepNavIntBoundsRect = "{{0, 0}, {1411, 719}}"; + sepNavSelRange = "{694, 0}"; + sepNavVisRange = "{0, 992}"; + sepNavWindowFrame = "{{2012, 241}, {750, 558}}"; + }; + }; + 1A224C3FFF42367911CA2CB7 /* VoodooTSCSync.cpp */ = { + uiCtxt = { + sepNavIntBoundsRect = "{{0, 0}, {989, 728}}"; + sepNavSelRange = "{706, 0}"; + sepNavVisRange = "{0, 1129}"; + sepNavWindowFrame = "{{1703, 114}, {1048, 830}}"; + }; + }; + 32D94FC30562CBF700B6AF17 /* VoodooTSCSync */ = { + activeExec = 0; + }; + 32D94FCF0562CBF700B6AF17 /* Info.plist */ = { + uiCtxt = { + sepNavIntBoundsRect = "{{0, 0}, {1431, 826}}"; + sepNavSelRange = "{1694, 0}"; + sepNavVisRect = "{{0, 99}, {1431, 727}}"; + sepNavWindowFrame = "{{148, 98}, {1048, 830}}"; + }; + }; + 9F22E78E1066963A0015212D /* PBXTextBookmark */ = { + isa = PBXTextBookmark; + fRef = 1A224C3FFF42367911CA2CB7 /* VoodooTSCSync.cpp */; + name = "VoodooTSCSync.cpp: 58"; + rLen = 0; + rLoc = 1131; + rType = 0; + vrLen = 1132; + vrLoc = 0; + }; + 9F22E78F1066963A0015212D /* PBXTextBookmark */ = { + isa = PBXTextBookmark; + fRef = 089C167EFE841241C02AAC07 /* English */; + name = "InfoPlist.strings: 1"; + rLen = 0; + rLoc = 0; + rType = 0; + vrLen = 45; + vrLoc = 0; + }; + 9F2554401063ED6200BF13B3 /* Source Control */ = { + isa = PBXSourceControlManager; + fallbackIsa = XCSourceControlManager; + isSCMEnabled = 0; + scmConfiguration = { + repositoryNamesForRoots = { + "" = ""; + }; + }; + }; + 9F2554411063ED6200BF13B3 /* Code sense */ = { + isa = PBXCodeSenseManager; + indexTemplatePath = ""; + }; + 9F25584D1063F7E800BF13B3 /* proc_reg.h */ = { + isa = PBXFileReference; + lastKnownFileType = sourcecode.c.h; + name = proc_reg.h; + path = /System/Library/Frameworks/Kernel.framework/Headers/i386/proc_reg.h; + sourceTree = ""; + }; + 9F2558531063F8B800BF13B3 /* PBXTextBookmark */ = { + isa = PBXTextBookmark; + fRef = 9F25584D1063F7E800BF13B3 /* proc_reg.h */; + name = "proc_reg.h: 1"; + rLen = 0; + rLoc = 0; + rType = 0; + vrLen = 1463; + vrLoc = 13317; + }; + 9FAED46F1068018000C9FE5C /* PBXTextBookmark */ = { + isa = PBXTextBookmark; + fRef = 1A224C3FFF42367911CA2CB7 /* VoodooTSCSync.cpp */; + name = "VoodooTSCSync.cpp: 14"; + rLen = 0; + rLoc = 306; + rType = 0; + vrLen = 1060; + vrLoc = 0; + }; + 9FC7439110681B12000B3040 /* PBXTextBookmark */ = { + isa = PBXTextBookmark; + fRef = 32D94FCF0562CBF700B6AF17 /* Info.plist */; + name = "Info.plist: 38"; + rLen = 0; + rLoc = 1249; + rType = 0; + vrLen = 1430; + vrLoc = 209; + }; + 9FC7439210681B12000B3040 /* PBXTextBookmark */ = { + isa = PBXTextBookmark; + fRef = 1A224C3EFF42367911CA2CB7 /* VoodooTSCSync.h */; + name = "VoodooTSCSync.h: 40"; + rLen = 0; + rLoc = 989; + rType = 0; + vrLen = 754; + vrLoc = 0; + }; + 9FC7439310681B12000B3040 /* PBXTextBookmark */ = { + isa = PBXTextBookmark; + fRef = 1A224C3EFF42367911CA2CB7 /* VoodooTSCSync.h */; + name = "VoodooTSCSync.h: 29"; + rLen = 0; + rLoc = 694; + rType = 0; + vrLen = 992; + vrLoc = 0; + }; + 9FC7439610681B12000B3040 /* PBXTextBookmark */ = { + isa = PBXTextBookmark; + fRef = 1A224C3FFF42367911CA2CB7 /* VoodooTSCSync.cpp */; + name = "VoodooTSCSync.cpp: 37"; + rLen = 0; + rLoc = 706; + rType = 0; + vrLen = 1129; + vrLoc = 0; + }; +} Index: VoodooTSCSync.xcodeproj/project.xcworkspace/contents.xcworkspacedata =================================================================== --- VoodooTSCSync.xcodeproj/project.xcworkspace/contents.xcworkspacedata (revision 0) +++ VoodooTSCSync.xcodeproj/project.xcworkspace/contents.xcworkspacedata (revision 1) @@ -0,0 +1,7 @@ + + + + + Index: VoodooTSCSync.xcodeproj/project.xcworkspace/xcuserdata/cmorton.xcuserdatad/UserInterfaceState.xcuserstate =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: VoodooTSCSync.xcodeproj/project.xcworkspace/xcuserdata/cmorton.xcuserdatad/UserInterfaceState.xcuserstate ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Index: VoodooTSCSync.cpp =================================================================== --- VoodooTSCSync.cpp (revision 0) +++ VoodooTSCSync.cpp (revision 1) @@ -0,0 +1,75 @@ +#include "VoodooTSCSync.h" + +// Define my superclass + +#define super IOService + +OSDefineMetaClassAndStructors(org_voodoo_driver_VoodooTSCSync, IOService) + +//stamp the tsc +extern "C" void stamp_tsc(void *tscp) { +// IOLockLock(lock); +// countCalled++; +// IOLockUnlock(lock); + wrmsr64(MSR_IA32_TSC,*(uint64_t*)tscp); +} + + +bool org_voodoo_driver_VoodooTSCSync::init(OSDictionary *dictionary){ + if (!super::init(dictionary)){ return false; } + +// lock = IOLockAlloc(); +// if (lock == 0){ +// IOLog("Failed to alloc lock"); +// return false; +// } + + return true; +} + +static IOPMPowerState powerStates[2] = { + {1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, + {1, kIOPMPowerOn, kIOPMPowerOn, kIOPMPowerOn, 0, 0, 0, 0, 0, 0, 0, 0} +}; + +IOReturn org_voodoo_driver_VoodooTSCSync::setPowerState(unsigned long powerStateOrdinal, IOService *whatDevice ) { + if (powerStateOrdinal) + this->doTSC(); + return IOPMAckImplied; +} + +void org_voodoo_driver_VoodooTSCSync::stop(IOService *provider) +{ + PMstop(); + super::stop(provider); +} + + +bool org_voodoo_driver_VoodooTSCSync::start(IOService *provider) + +{ + if (!super::start(provider)){ return false; } +// countCalled = 0; + PMinit(); + registerPowerDriver(this, powerStates, 2); + provider->joinPMtree(this); + return true; + +} + + +/* + Update MSR on all processors. + */ +void org_voodoo_driver_VoodooTSCSync::doTSC(){ + + + uint64_t tsc = rdtsc64(); + IOLog("Current tsc from rdtsc64() is %lld. Rendezvouing..\n",tsc); + + //now call the kernel function that will call this "action" on all cores/processors + mp_rendezvous_no_intrs(stamp_tsc, (void*)&tsc); + +// IOLog("VoodooTSCSyn::doTsc(): stamp_tsc was called: %d times\n",countCalled); + //countCalled=0; +} Index: English.lproj/InfoPlist.strings =================================================================== --- English.lproj/InfoPlist.strings (revision 0) +++ English.lproj/InfoPlist.strings (revision 1) @@ -0,0 +1,2 @@ +/* Localized versions of Info.plist keys */ +