Changeset 97430 in vbox
- Timestamp:
- Nov 7, 2022 1:51:44 PM (2 years ago)
- Location:
- trunk/src/VBox/ValidationKit/bootsectors/bs3kit
- Files:
-
- 5 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/Makefile.kmk
r97320 r97430 192 192 bs3-cmn-SelFlatDataToRealMode.asm \ 193 193 bs3-cmn-SelLnkPtrToCurPtr.c \ 194 bs3-cmn-SelLnkPtrToFlat.c \ 194 195 bs3-cmn-SelSetup16BitData.c \ 195 196 bs3-cmn-SelSetup16BitCode.c \ -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-cmn-SelLnkPtrToFlat.c
r97405 r97430 1 1 /* $Id$ */ 2 2 /** @file 3 * BS3Kit - Bs3SelLnkPtrTo CurPtr3 * BS3Kit - Bs3SelLnkPtrToFlat 4 4 */ 5 5 … … 38 38 39 39 40 #undef Bs3SelLnkPtrTo CurPtr41 BS3_CMN_DEF( void BS3_FAR *, Bs3SelLnkPtrToCurPtr,(void BS3_FAR *pvLnkPtr))40 #undef Bs3SelLnkPtrToFlat 41 BS3_CMN_DEF(uint32_t, Bs3SelLnkPtrToFlat,(void BS3_FAR *pvLnkPtr)) 42 42 { 43 43 #if ARCH_BITS == 16 44 if (BS3_MODE_IS_RM_OR_V86(g_bBs3CurrentMode)) 45 return pvLnkPtr; 46 return (void BS3_FAR *)Bs3SelRealModeDataToProtFar16((uint32_t)pvLnkPtr); 44 return Bs3SelRealModeDataToFlat(pvLnkPtr); 47 45 #else 48 return pvLnkPtr;46 return (uint32_t)(uintptr_t)pvLnkPtr; 49 47 #endif 50 48 } -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit-autostubs.kmk
r97320 r97430 37 37 $(call BS3KIT_FN_GEN_CMN_FARSTUB,bs3kit-common-16,Bs3SelFlatDataToProtFar16,4) 38 38 $(call BS3KIT_FN_GEN_CMN_FARSTUB,bs3kit-common-16,Bs3SelFlatDataToRealMode,4) 39 $(call BS3KIT_FN_GEN_CMN_FARSTUB,bs3kit-common-16,Bs3SelLnkPtrToFlat,4) 39 40 $(call BS3KIT_FN_GEN_CMN_FARSTUB,bs3kit-common-16,Bs3SelProtFar16DataToFlat,4) 40 41 $(call BS3KIT_FN_GEN_CMN_FARSTUB,bs3kit-common-16,Bs3SelProtFar16DataToRealMode,4) -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit-mangling-code-define.h
r97320 r97430 161 161 #define Bs3SelFlatDataToRealMode BS3_CMN_MANGLER(Bs3SelFlatDataToRealMode) 162 162 #define Bs3SelLnkPtrToCurPtr BS3_CMN_MANGLER(Bs3SelLnkPtrToCurPtr) 163 #define Bs3SelLnkPtrToFlat BS3_CMN_MANGLER(Bs3SelLnkPtrToFlat) 163 164 #define Bs3SelProtFar16DataToFlat BS3_CMN_MANGLER(Bs3SelProtFar16DataToFlat) 164 165 #define Bs3SelProtFar16DataToRealMode BS3_CMN_MANGLER(Bs3SelProtFar16DataToRealMode) -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit-mangling-code-undef.h
r97320 r97430 161 161 #undef Bs3SelFlatDataToRealMode 162 162 #undef Bs3SelLnkPtrToCurPtr 163 #undef Bs3SelLnkPtrToFlat 163 164 #undef Bs3SelProtFar16DataToFlat 164 165 #undef Bs3SelProtFar16DataToRealMode -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit.h
r97320 r97430 1944 1944 1945 1945 /** 1946 * Converts a link-time pointer to a flat address. 1947 * 1948 * @returns 32-bit flag address. 1949 * @param pvLnkPtr The pointer the linker produced. 1950 */ 1951 BS3_CMN_PROTO_FARSTUB(4, uint32_t, Bs3SelLnkPtrToFlat,(void BS3_FAR *pvLnkPtr)); 1952 1953 /** 1946 1954 * Gets a flat address from a working poitner. 1947 1955 * … … 4119 4127 4120 4128 /** 4121 * Initialize dthe X0TEXT16 and X1TEXT16 GDT entries.4129 * Initializes the X0TEXT16 and X1TEXT16 GDT entries. 4122 4130 */ 4123 4131 BS3_DECL_FAR(void) Bs3InitGdt_rm_far(void);
Note:
See TracChangeset
for help on using the changeset viewer.