Changeset 21901 for branches/gcc-kmk/src
- Timestamp:
- Dec 16, 2011, 12:50:20 PM (14 years ago)
- Location:
- branches/gcc-kmk/src/win32k
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gcc-kmk/src/win32k/Makefile.kmk
r21779 r21901 11 11 include $(PATH_SUB_CURRENT)/lib/Makefile.kmk 12 12 13 PROGRAMS = xx2lx 14 xx2lx_TEMPLATE = OdinCxx 15 xx2lx_INCS = include 16 xx2lx_SOURCES = \ 17 ldr/xx2lxmain.cpp \ 18 ldr/modulebase.cpp \ 19 pe2lx/pe2lx.cpp \ 20 elf2lx/elf2lx.cpp \ 21 misc/malloc.c \ 22 misc/avl.c \ 23 misc/smalloc_avl.c \ 24 misc/rmalloc_avl.c \ 25 misc/new.cpp \ 26 misc/stricmp.c \ 27 misc/vprintf.c 28 13 29 include $(FILE_KBUILD_SUB_FOOTER) -
branches/gcc-kmk/src/win32k/include/ModuleBase.h
r5093 r21901 55 55 */ 56 56 #define printIPE(a) (ModuleBase::ulInfoLevel >= ModuleBase::Error ? \ 57 ModuleBase::printf("\nerror(%d: "__FUNCTION__"): !Internal Processing Error!\n\t", __LINE__), \57 ModuleBase::printf("\nerror(%d:%s): !Internal Processing Error!\n\t", __LINE__, __FUNCTION__), \ 58 58 ModuleBase::printf a, \ 59 59 ModuleBase::printf("\n") \ 60 60 : (void)0,(void)0,(void)0 ) 61 61 #define printErr(a) (ModuleBase::ulInfoLevel >= ModuleBase::Error ? \ 62 ModuleBase::printf("error(%d: "__FUNCTION__"): ", __LINE__), \62 ModuleBase::printf("error(%d:%s: ", __LINE__, __FUNCTION__), \ 63 63 ModuleBase::printf a \ 64 64 : (void)0,(void)0 ) 65 65 #define printWar(a) (ModuleBase::ulInfoLevel >= ModuleBase::Warning ? \ 66 ModuleBase::printf("warning( "__FUNCTION__"): "), \66 ModuleBase::printf("warning(%s): ", __FUNCTION__), \ 67 67 ModuleBase::printf a \ 68 68 : (void)0,(void)0 ) -
branches/gcc-kmk/src/win32k/include/OS2KLDR.h
r6229 r21901 36 36 37 37 /* ote_flags */ 38 #if ndef __EXE386__38 #if !defined(__EXE386__) && !defined(_LXexe_h_) 39 39 #define OBJREAD 0x00000001L /* Readable Object */ 40 40 #define OBJWRITE 0x00000002L /* Writeable Object */ … … 47 47 #endif 48 48 #define OBJZEROFIL 0x00000100L /* Object has zero-filled pages */ 49 #if ndef __EXE386__49 #if !defined(__EXE386__) && !defined(_LXexe_h_) 50 50 #define OBJRESIDENT 0x00000200L /* Object is resident */ 51 51 #define OBJCONTIG 0x00000300L /* Object is resident and contiguous */ -
branches/gcc-kmk/src/win32k/include/asmutils.h
r2511 r21901 29 29 extern int _System Int3(void); 30 30 #else 31 #ifdef __GNUC__ 32 #define _Inline static inline 33 #define __interrupt(n) ({ __asm__ __volatile__ ("int" #n "\n\tnop"); }) 34 #else 31 35 #include <builtin.h> 36 #endif 32 37 #define Int3() __interrupt(3) 33 38 #endif -
branches/gcc-kmk/src/win32k/include/new.h
r1678 r21901 12 12 #define _new_h_ 13 13 14 #ifdef __IBMC__ 14 15 /* check for IBMCPP new.h */ 15 16 #ifdef __new_h … … 23 24 typedef unsigned int size_t; 24 25 #endif 26 #endif 27 28 #ifdef __GNUC__ 29 #include <stddef.h> 30 #endif 25 31 26 32 #ifndef __DEBUG_ALLOC__ 27 33 /* The standard favourites */ 28 34 void *operator new(size_t size); 29 void *operator new(size_t size, void *location) ;/* stub */35 void *operator new(size_t size, void *location) throw(); /* stub */ 30 36 31 void *operator new[](size_t size) ;/* stub */32 void *operator new[](size_t size, void *location) ;/* stub */37 void *operator new[](size_t size) throw(); /* stub */ 38 void *operator new[](size_t size, void *location) throw(); /* stub */ 33 39 34 40 void operator delete(void *location); 35 void operator delete[](void *location) ;/* stub */41 void operator delete[](void *location) throw(); /* stub */ 36 42 #endif 37 43 -
branches/gcc-kmk/src/win32k/include/sprintf.h
r1678 r21901 31 31 */ 32 32 #undef va_start 33 #ifdef __GNUC__ 34 #define __nextword(base) (((unsigned)(sizeof(base))+3U)&~(3U)) 35 #endif 33 36 #define va_start(ap, last) ap = ((va_list)SSToDS(&last)) + __nextword(last) 34 37 -
branches/gcc-kmk/src/win32k/include/vprintf.h
r1678 r21901 32 32 */ 33 33 #undef va_start 34 #ifdef __GNUC__ 35 #define __nextword(base) (((unsigned)(sizeof(base))+3U)&~(3U)) 36 #endif 34 37 #define va_start(ap, last) ap = ((va_list)SSToDS(&last)) + __nextword(last) 35 38 -
branches/gcc-kmk/src/win32k/misc/avl.c
r4164 r21901 33 33 #include "string.h" 34 34 35 #ifdef __GNUC__ 36 #define _Inline static inline 37 #define __interrupt(n) ({ __asm__ __volatile__ ("int" #n "\n\tnop"); }) 38 #else 35 39 #include <builtin.h> 40 #endif 36 41 #define assert(a) ((a) ? (void)0 : __interrupt(3)) 37 42 -
branches/gcc-kmk/src/win32k/misc/new.cpp
r4164 r21901 42 42 * stub 43 43 */ 44 void *operator new(size_t size, void *location) 44 void *operator new(size_t size, void *location) throw() 45 45 { 46 46 dprintf(("operator new(size,location) not implemented\n")); … … 52 52 * stub 53 53 */ 54 void *operator new[](size_t size) 54 void *operator new[](size_t size) throw() 55 55 { 56 56 dprintf(("operator new[](size) not implemented\n")); … … 62 62 * stub 63 63 */ 64 void *operator new[](size_t size, void *location) 64 void *operator new[](size_t size, void *location) throw() 65 65 { 66 66 dprintf(("operator new[](size,location) not implemented\n")); … … 82 82 * stub 83 83 */ 84 void operator delete[](void *location) 84 void operator delete[](void *location) throw() 85 85 { 86 86 dprintf(("operator delete[](location) - not implemented\n")); … … 106 106 * stub 107 107 */ 108 void *operator new(size_t size, const char *filename, size_t lineno, void *location) 108 void *operator new(size_t size, const char *filename, size_t lineno, void *location) throw() 109 109 { 110 110 dprintf(("operator new(size,location) not implemented\n")); … … 116 116 * stub 117 117 */ 118 void *operator new[](size_t size, const char *filename, size_t lineno) 118 void *operator new[](size_t size, const char *filename, size_t lineno) throw() 119 119 { 120 120 dprintf(("operator new[](size) not implemented\n")); … … 126 126 * stub 127 127 */ 128 void *operator new[](size_t size, const char *filename, size_t lineno, void *location) 128 void *operator new[](size_t size, const char *filename, size_t lineno, void *location) throw() 129 129 { 130 130 dprintf(("operator new[](size,location) not implemented\n")); -
branches/gcc-kmk/src/win32k/misc/vprintf.c
r5298 r21901 395 395 lValue = va_arg(args, signed long); 396 396 else if (chArgSize == 'h') 397 #ifdef __GNUC__ 398 // shut up stupid warning and avoid stupid abort() 399 lValue = va_arg(args, int); 400 #else 397 401 lValue = va_arg(args, signed short); 402 #endif 398 403 else 399 404 lValue = va_arg(args, signed int); -
branches/gcc-kmk/src/win32k/pe2lx/pe2lx.cpp
r10394 r21901 1941 1941 static SMTE smte; 1942 1942 static MTE mte; 1943 static 1943 static CHAR achPage[PAGESIZE]; 1944 1944 int i; 1945 1945 APIRET rc; … … 5224 5224 for (i = 0; i < IMAGE_NUMBEROF_DIRECTORY_ENTRIES; i++) 5225 5225 { 5226 c har *pszName;5226 const char *pszName; 5227 5227 5228 5228 switch (i)
Note:
See TracChangeset
for help on using the changeset viewer.