Changeset 106636 in vbox
- Timestamp:
- Oct 23, 2024 9:59:56 PM (5 weeks ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/asmdefs-arm.h
r106625 r106636 41 41 42 42 #include <iprt/cdefs.h> 43 #ifdef ASM_FORMAT_PE 44 # include <iprt/formats/pecoff.h> 45 #endif 46 47 /* Quick hack for #defines from pecoff.h */ 48 #define UINT8_C(v) v 49 #define UINT16_C(v) v 50 #define UINT32_C(v) v 51 #define UINT64_C(v) v 52 #define INT8_C(v) v 53 #define INT16_C(v) v 54 #define INT32_C(v) v 55 #define INT64_C(v) v 43 56 44 57 … … 189 202 */ 190 203 .macro BEGINPROC, a_Name 204 #if defined(ASM_FORMAT_PE) 205 .def NAME(\a_Name) 206 .scl IMAGE_SYM_CLASS_EXTERNAL 207 .type IMAGE_SYM_DTYPE_FUNCTION << N_BTSHFT 208 .endef 209 #endif 210 .globl NAME(\a_Name) 191 211 NAME(\a_Name): 192 212 .endm … … 205 225 #elif defined(ASM_FORMAT_PE) 206 226 .def NAME(\a_Name) 207 .type 32 /* function */ 227 .scl IMAGE_SYM_CLASS_EXTERNAL 228 .type IMAGE_SYM_DTYPE_FUNCTION << N_BTSHFT 208 229 .endef 209 230 #endif … … 228 249 .popsection 229 250 .def NAME(\a_Name) 230 .type 32 /* function */ 251 .scl IMAGE_SYM_CLASS_EXTERNAL 252 .type IMAGE_SYM_DTYPE_FUNCTION << N_BTSHFT 231 253 .endef 232 254 #endif -
trunk/include/iprt/formats/pecoff.h
r106061 r106636 41 41 #endif 42 42 43 #include <iprt/types.h> 43 #ifndef __ASSEMBLER__ 44 # include <iprt/types.h> 45 #endif 44 46 #include <iprt/assertcompile.h> 45 47 … … 51 53 52 54 55 #ifndef __ASSEMBLER__ 53 56 /** 54 57 * PE & COFF file header. … … 70 73 typedef IMAGE_FILE_HEADER *PIMAGE_FILE_HEADER; 71 74 typedef IMAGE_FILE_HEADER const *PCIMAGE_FILE_HEADER; 75 #endif /* !__ASSEMBLER__ */ 72 76 73 77 … … 185 189 186 190 191 #ifndef __ASSEMBLER__ 187 192 /** 188 193 * PE data directory. … … 200 205 typedef IMAGE_DATA_DIRECTORY *PIMAGE_DATA_DIRECTORY; 201 206 typedef IMAGE_DATA_DIRECTORY const *PCIMAGE_DATA_DIRECTORY; 207 #endif /* !__ASSEMBLER__ */ 202 208 203 209 /** The standard number of data directories in the optional header. … … 207 213 #define IMAGE_NUMBEROF_DIRECTORY_ENTRIES 0x10 208 214 215 #ifndef __ASSEMBLER__ 209 216 210 217 /** … … 289 296 typedef IMAGE_OPTIONAL_HEADER64 const *PCIMAGE_OPTIONAL_HEADER64; 290 297 298 #endif /* !__ASSEMBLER__ */ 299 291 300 /** @name Optional header magic values. 292 301 * @{ */ … … 358 367 /** @} */ 359 368 369 #ifndef __ASSEMBLER__ 360 370 361 371 /** … … 389 399 typedef IMAGE_NT_HEADERS64 const *PCIMAGE_NT_HEADERS64; 390 400 401 #endif /* !__ASSEMBLER__ */ 402 391 403 /** The PE signature. 392 404 * Used by IMAGE_NT_HEADERS32::Signature, IMAGE_NT_HEADERS64::Signature. */ … … 397 409 #define IMAGE_SIZEOF_SHORT_NAME 0x8 398 410 411 #ifndef __ASSEMBLER__ 399 412 /** 400 413 * PE & COFF section header. … … 420 433 typedef IMAGE_SECTION_HEADER *PIMAGE_SECTION_HEADER; 421 434 typedef IMAGE_SECTION_HEADER const *PCIMAGE_SECTION_HEADER; 435 #endif /* !__ASSEMBLER__ */ 422 436 423 437 /** @name IMAGE_SCN_XXX - Section header characteristics. … … 478 492 479 493 494 #ifndef __ASSEMBLER__ 480 495 /** 481 496 * PE image base relocations block header. … … 497 512 typedef IMAGE_BASE_RELOCATION *PIMAGE_BASE_RELOCATION; 498 513 typedef IMAGE_BASE_RELOCATION const *PCIMAGE_BASE_RELOCATION; 514 #endif /* !__ASSEMBLER__ */ 499 515 500 516 /** @name IMAGE_REL_BASED_XXX - PE base relocations. … … 512 528 #define IMAGE_REL_BASED_HIGH3ADJ UINT16_C(0xb) 513 529 /** @} */ 530 531 #ifndef __ASSEMBLER__ 514 532 515 533 /** … … 567 585 568 586 569 # if 0587 # if 0 570 588 /* The image_thunk_data32/64 structures are not very helpful except for getting RSI. 571 589 keep them around till all the code has been converted. */ … … 595 613 typedef IMAGE_THUNK_DATA32 *PIMAGE_THUNK_DATA32; 596 614 typedef IMAGE_THUNK_DATA32 const *PCIMAGE_THUNK_DATA32; 597 #endif 615 # endif 616 617 #endif /* !__ASSEMBLER__ */ 598 618 599 619 /** @name PE import directory macros. … … 607 627 #define IMAGE_SNAP_BY_ORDINAL64(ord) (!!((ord) & IMAGE_ORDINAL_FLAG64)) 608 628 /** @} */ 629 630 #ifndef __ASSEMBLER__ 609 631 610 632 /** @name PE Resource directory … … 647 669 typedef IMAGE_RESOURCE_DIRECTORY_ENTRY const *PCIMAGE_RESOURCE_DIRECTORY_ENTRY; 648 670 671 #endif /* !__ASSEMBLER__ */ 672 649 673 #define IMAGE_RESOURCE_NAME_IS_STRING UINT32_C(0x80000000) 650 674 #define IMAGE_RESOURCE_DATA_IS_DIRECTORY UINT32_C(0x80000000) 675 676 #ifndef __ASSEMBLER__ 651 677 652 678 typedef struct _IMAGE_RESOURCE_DIRECTORY_STRING … … 678 704 typedef IMAGE_RESOURCE_DATA_ENTRY const *PCIMAGE_RESOURCE_DATA_ENTRY; 679 705 706 #endif /* !__ASSEMBLER__ */ 707 680 708 /** @} */ 681 709 682 710 /** @name Image exception information 683 711 * @{ */ 712 713 #ifndef __ASSEMBLER__ 684 714 685 715 /** This structure is used by AMD64 and "Itanic". … … 746 776 typedef IMAGE_UNWIND_INFO const *PCIMAGE_UNWIND_INFO; 747 777 778 #endif /* !__ASSEMBLER__ */ 779 748 780 /** IMAGE_UNW_FLAGS_XXX - IMAGE_UNWIND_INFO::Flags. 749 781 * @{ */ … … 763 795 /** @} */ 764 796 797 #ifndef __ASSEMBLER__ 765 798 /** 766 799 * AMD64 unwind opcodes. … … 825 858 IMAGE_AMD64_UWOP_PUSH_MACHFRAME 826 859 } IMAGE_AMD64_UNWIND_OP_CODES; 860 #endif /* !__ASSEMBLER__ */ 861 827 862 /** @} */ 828 863 … … 831 866 /** @name Image load config directories 832 867 * @{ */ 868 #ifndef __ASSEMBLER__ 833 869 834 870 /** @since Windows 10 (preview 9879) */ … … 1934 1970 typedef PCIMAGE_LOAD_CONFIG_DIRECTORY64_V13 PCIMAGE_LOAD_CONFIG_DIRECTORY64; 1935 1971 1936 /** @} */ 1937 1938 1972 #endif /* !__ASSEMBLER__ */ 1973 /** @} */ 1974 1975 1976 #ifndef __ASSEMBLER__ 1939 1977 /** 1940 1978 * PE certificate directory. … … 1952 1990 typedef WIN_CERTIFICATE *PWIN_CERTIFICATE; 1953 1991 typedef WIN_CERTIFICATE const *PCWIN_CERTIFICATE; 1992 #endif /* !__ASSEMBLER__ */ 1954 1993 1955 1994 /** @name WIN_CERT_REVISION_XXX - Certificate data directory revision. … … 1978 2017 1979 2018 2019 #ifndef __ASSEMBLER__ 1980 2020 /** 1981 2021 * Debug directory. … … 1997 2037 typedef IMAGE_DEBUG_DIRECTORY *PIMAGE_DEBUG_DIRECTORY; 1998 2038 typedef IMAGE_DEBUG_DIRECTORY const *PCIMAGE_DEBUG_DIRECTORY; 2039 #endif /* !__ASSEMBLER__ */ 1999 2040 2000 2041 /** @name IMAGE_DEBUG_TYPE_XXX - Debug format types. … … 2026 2067 /** @} */ 2027 2068 2069 #ifndef __ASSEMBLER__ 2028 2070 2029 2071 /** … … 2041 2083 typedef IMAGE_DEBUG_MISC *PIMAGE_DEBUG_MISC; 2042 2084 typedef IMAGE_DEBUG_MISC const *PCIMAGE_DEBUG_MISC; 2043 2044 2085 2045 2086 … … 2067 2108 typedef IMAGE_SEPARATE_DEBUG_HEADER const *PCIMAGE_SEPARATE_DEBUG_HEADER; 2068 2109 2110 #endif /* !__ASSEMBLER__ */ 2111 2069 2112 /** The signature of a IMAGE_SEPARATE_DEBUG_HEADER. */ 2070 2113 #define IMAGE_SEPARATE_DEBUG_SIGNATURE UINT16_C(0x4944) 2071 2114 2115 #ifndef __ASSEMBLER__ 2072 2116 2073 2117 /** … … 2110 2154 typedef IMAGE_LINENUMBER const *PCIMAGE_LINENUMBER; 2111 2155 2156 #endif /* !__ASSEMBLER__ */ 2112 2157 2113 2158 /** The size of a IMAGE_SYMBOL & IMAGE_AUX_SYMBOL structure. */ … … 2115 2160 /** The size of a IMAGE_SYMBOL_EX & IMAGE_AUX_SYMBOL_EX structure. */ 2116 2161 #define IMAGE_SIZE_OF_SYMBOL_EX 20 2162 2163 #ifndef __ASSEMBLER__ 2117 2164 2118 2165 /** … … 2289 2336 typedef IMAGE_AUX_SYMBOL_EX *PIMAGE_AUX_SYMBOL_EX; 2290 2337 typedef IMAGE_AUX_SYMBOL_EX const *PCIMAGE_AUX_SYMBOL_EX; 2338 2339 #endif /* !__ASSEMBLER__ */ 2291 2340 2292 2341 /** @name Special COFF section numbers. … … 2381 2430 2382 2431 2432 #ifndef __ASSEMBLER__ 2383 2433 /** 2384 2434 * COFF relocation table entry. … … 2405 2455 typedef IMAGE_RELOCATION *PIMAGE_RELOCATION; 2406 2456 typedef IMAGE_RELOCATION const *PCIMAGE_RELOCATION; 2457 #endif /* !__ASSEMBLER__ */ 2407 2458 2408 2459 -
trunk/include/iprt/x86.h
r106610 r106636 2653 2653 /** Pointer to a const page table. */ 2654 2654 typedef const X86PTPAE *PCX86PTPAE; 2655 #endif /* !__ASSEMBL Y__ */2655 #endif /* !__ASSEMBLER__ */ 2656 2656 2657 2657 /** The page shift to get the PA PTE index. */ -
trunk/src/VBox/HostDrivers/Support/Makefile.kmk
r106635 r106636 560 560 VBoxSupLib_LDFLAGS.win.amd64 = -Entry:DllMainEntrypoint 561 561 VBoxSupLib_LDFLAGS.win.x86 = -Entry:DllMainEntrypoint 562 VBoxSupLib_LDFLAGS.win.arm64 = -Entry:DllMainEntrypoint 562 563 VBoxSupLib_DEFS = \ 563 564 $(if $(VBOX_WITHOUT_DEBUGGER_CHECKS),VBOX_WITHOUT_DEBUGGER_CHECKS,) … … 773 774 VBoxDrv_LDFLAGS.solaris += -N drv/dtrace 774 775 endif 775 VBoxDrv_LDFLAGS.win.x86 = -Entry:DriverEntry@8776 VBoxDrv_LDFLAGS.win.x86 = -Entry:DriverEntry@8 776 777 VBoxDrv_LDFLAGS.win.amd64 = -Entry:DriverEntry 778 VBoxDrv_LDFLAGS.win.arm64 = -Entry:DriverEntry 777 779 778 780 VBoxDrv_SOURCES.darwin = \ -
trunk/src/VBox/HostDrivers/Support/SUPDrvTracerA-arm64.S
r106625 r106636 48 48 49 49 /** Dummy stub function that just returns. */ 50 ALIGNCODE(32) 50 51 BEGINPROC supdrvTracerProbeFireStub 51 52 ret … … 54 55 55 56 /** Tail jump function. */ 57 ALIGNCODE(32) 56 58 BEGINPROC_EXPORTED SUPR0TracerFireProbe 57 59 adrp x8, PAGE(NAME(g_pfnSupdrvProbeFireKernel))
Note:
See TracChangeset
for help on using the changeset viewer.