儲存庫 kStuff 的更動 24
- 時間撮記:
- 2009-2-8 下午01:58:54 (16 年 以前)
- 位置:
- trunk
- 檔案:
-
- 新增 2 筆資料
- 修改 6 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/Config.kmk
r8 r24 5 5 6 6 # 7 # Copyright (c) 2006-200 7knut st. osmundsen <[email protected]>7 # Copyright (c) 2006-2008 knut st. osmundsen <[email protected]> 8 8 # 9 9 # This file is part of kStuff. … … 34 34 # 35 35 TEMPLATE_kStuff = kStuff Template 36 TEMPLATE_kStuff_TOOL = G CC337 TEMPLATE_kStuff_TOOL.darwin = G CC4MACHO38 TEMPLATE_kStuff_TOOL.os2 = G CC3OMF39 TEMPLATE_kStuff_TOOL.solaris = G CC3PLAIN36 TEMPLATE_kStuff_TOOL = GXX3 37 TEMPLATE_kStuff_TOOL.darwin = GXX4MACHO 38 TEMPLATE_kStuff_TOOL.os2 = GXX3OMF 39 TEMPLATE_kStuff_TOOL.solaris = GXX3PLAIN 40 40 TEMPLATE_kStuff_TOOL.win.x86 = VCC70 41 41 TEMPLATE_kStuff_TOOL.win.amd64 = VCC80AMD64 … … 82 82 endif 83 83 84 TEMPLATE_kStuff_CXXFLAGS.darwin = -g -fno- common85 TEMPLATE_kStuff_CXXFLAGS.freebsd = -g 86 TEMPLATE_kStuff_CXXFLAGS.linux = -g 87 TEMPLATE_kStuff_CXXFLAGS.os2 = -g 84 TEMPLATE_kStuff_CXXFLAGS.darwin = -g -fno-exceptions -fno-common 85 TEMPLATE_kStuff_CXXFLAGS.freebsd = -g -fno-exceptions 86 TEMPLATE_kStuff_CXXFLAGS.linux = -g -fno-exceptions 87 TEMPLATE_kStuff_CXXFLAGS.os2 = -g -fno-exceptions 88 88 TEMPLATE_kStuff_CXXFLAGS.win = -Zi -Zl -W3 -GF -GR- 89 89 TEMPLATE_kStuff_CXXFLAGS.win.x86 = -MD -
trunk/Makefile.kmk
r5 r24 34 34 35 35 include $(PATH_SUB_CURRENT)/kHlp/Makefile.kmk 36 include $(PATH_SUB_CURRENT)/kProfiler2/Makefile.kmk 36 ifn1of ($(KBUILD_TARGET), darwin) 37 include $(PATH_SUB_CURRENT)/kProfiler2/Makefile.kmk 38 endif 37 39 38 40 LIBRARIES += kStuffStatic -
trunk/kHlp/Bare/kHlpBareThread.c
r2 r24 37 37 38 38 #if K_OS == K_OS_DARWIN 39 # include <mach/mach_time.h> 39 40 40 41 #elif K_OS == K_OS_LINUX … … 59 60 { 60 61 #if K_OS == K_OS_DARWIN 61 /** @todo mach_wait_until, see gen/nanosleep.c. */ 62 usleep(cMillies * 1000); 62 static struct mach_timebase_info s_Info; 63 static KBOOL s_fNanoseconds = K_UNKNOWN; 64 KU64 uNow = mach_absolute_time(); 65 KU64 uDeadline; 66 KU64 uPeriod; 67 68 if (s_fNanoseconds == K_UNKNOWN) 69 { 70 if (mach_timebase_info(&s_Info)) 71 s_fNanoseconds = K_TRUE; /* the easy way out */ 72 else if (s_Info.denom == s_Info.numer) 73 s_fNanoseconds = K_TRUE; 74 else 75 s_fNanoseconds = K_FALSE; 76 } 77 78 uPeriod = (KU64)cMillies * 1000 * 1000; 79 if (!s_fNanoseconds) 80 uPeriod = (double)uPeriod * s_Info.denom / s_Info.numer; /* Use double to avoid 32-bit trouble. */ 81 uDeadline = uNow + uPeriod; 82 mach_wait_until(uDeadline); 63 83 64 84 #elif K_OS == K_OS_LINUX -
trunk/kHlp/Makefile.kmk
r5 r24 65 65 Generic/kHlpInt2Ascii.c \ 66 66 \ 67 67 Generic/kHlpGetEnvUZ.c \ 68 68 \ 69 69 Generic/kHlpGetExt.c \ … … 78 78 Bare/kHlpBareProcess.c \ 79 79 Bare/kHlpBareThread.c \ 80 81 kHlpBareStatic_SOURCES.darwin = \ 82 Bare/kHlpSys-darwin.c 80 83 81 84 # … … 99 102 Generic/kHlpInt2Ascii.c \ 100 103 \ 101 104 Generic/kHlpGetEnvUZ.c \ 102 105 \ 103 106 Generic/kHlpGetExt.c \ … … 111 114 CRT/kHlpCRTString.cpp \ 112 115 116 kHlpCRTStatic_SOURCES.darwin = \ 117 Bare/kHlpSys-darwin.c 118 113 119 114 120 # Generate the rules -
trunk/kLdr/kLdrDyldSem.c
r2 r24 40 40 #if K_OS == K_OS_DARWIN 41 41 # include <mach/mach.h> 42 # undef mach_task_self /* don't use the macro (if we're using bare helpers ) */ 42 43 43 44 #elif K_OS == K_OS_OS2 -
trunk/kLdr/kLdrModLX.c
r2 r24 339 339 340 340 pModLX->offHdr = offNewHdr >= 0 ? offNewHdr : 0; 341 pModLX->Hdr = Hdr;341 kHlpMemCopy(&pModLX->Hdr, &Hdr, sizeof(Hdr)); 342 342 343 343 pModLX->pbLoaderSection = K_ALIGN_P(pMod->pszFilename + pMod->cchFilename + 1, 16);
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器