VirtualBox

Changeset 58785 in vbox for trunk/src/VBox/ValidationKit


Ignore:
Timestamp:
Nov 19, 2015 11:30:50 PM (9 years ago)
Author:
vboxsync
Message:

bs3kit: Memory detection and pool init.

Location:
trunk/src/VBox/ValidationKit/bootsectors/bs3kit
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/Makefile.kmk

    r58777 r58785  
    396396bs3kit-common-16_ASDEFS   = RT_ASMDEFS_INC_FIRST_FILE
    397397bs3kit-common-16_SOURCES  = $(VBOX_BS3KIT_COMMON_SOURCES) \
    398         bs3-system-data.asm
     398        bs3-system-data.asm \
     399        bs3-rm-InitMemory.c
    399400
    400401# The 32-bit BS3Kit library.
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-first-rm.asm

    r58694 r58785  
    4444section BS3TEXT16_END   align=2 CLASS=BS3CODE16 PUBLIC USE16
    4545%endif
     46
     47BS3_GLOBAL_DATA Bs3Text16_Size, 2
     48    dw  BS3_DATA_NM(Bs3Text16_EndOfSegment) wrt BS3TEXT16
    4649BS3_GLOBAL_DATA Bs3Text16_EndOfSegment, 0
    4750
     
    6568section BS3DATA16_END   align=2   CLASS=FAR_DATA PUBLIC USE16
    6669%endif
     70
    6771BS3_GLOBAL_DATA Bs3Data16_EndOfSegment, 0
    6872
     
    8185section BS3TEXT32_END   align=1 CLASS=BS3CODE32 PUBLIC USE32 FLAT
    8286%endif
     87BS3_GLOBAL_DATA Bs3Data16_Size, 4
     88    dd  BS3_DATA_NM(Bs3Data16_EndOfSegment) wrt BS3DATA16
    8389BS3_GLOBAL_DATA Bs3Text32_EndOfSegment, 0
    8490
     
    115121section BS3DATA64_END   align=16   CLASS=DATA PUBLIC USE32 FLAT
    116122%endif
     123
     124ALIGNDATA(16)
     125    db      10,13,'eye-catcher: sizes  ',10,13
     126BS3_GLOBAL_DATA Bs3Data16Thru64Text32And64_TotalSize, 4
     127    dd  BS3_DATA_NM(Bs3Data64_EndOfSegment) wrt BS3DATA16
     128BS3_GLOBAL_DATA Bs3TotalImageSize, 4
     129    dd  BS3_DATA_NM(Bs3Data64_EndOfSegment) wrt BS3TEXT16
    117130BS3_GLOBAL_DATA Bs3Data64_EndOfSegment, 0
    118131
     
    140153    db      10,13,'eye-catcher: BS3TEXT16',10,13
    141154.after_eye_catcher:
    142 mov     ax, BS3SYSTEM16
    143 mov     ds, ax
    144 lgdt    [BS3_DATA_NM(Bs3Lgdt_Gdt)]
    145 mov ax, X86_CR0_PE
    146 lmsw ax
    147 cli
    148 hlt
    149 
    150155    mov     ax, BS3DATA16
    151156    mov     es, ax
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-shutdown.c

    r58714 r58785  
    1111BS3_DECL(void) Main_rm(void)
    1212{
     13    Bs3InitMemory_rm();
     14
    1315    Bs3TestInit("bs3-shutdown");
    1416
     17Bs3Panic();
    1518    Bs3Shutdown();
    1619    return;
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit.h

    r58777 r58785  
    596596
    597597
     598/** @name Segment start and end markers, sizes.
     599 * @{ */
     600/** Start of the BS3TEXT16 segment.   */
     601extern uint8_t BS3_DATA_NM(Bs3Text16_StartOfSegment);
     602/** End of the BS3TEXT16 segment.   */
     603extern uint8_t BS3_DATA_NM(Bs3Text16_EndOfSegment);
     604/** The size of the BS3TEXT16 segment.   */
     605extern uint8_t BS3_DATA_NM(Bs3Text16_Size);
     606
     607/** Start of the BS3SYSTEM16 segment.   */
     608extern uint8_t BS3_DATA_NM(Bs3System16_StartOfSegment);
     609/** End of the BS3SYSTEM16 segment.   */
     610extern uint8_t BS3_DATA_NM(Bs3System16_EndOfSegment);
     611
     612/** Start of the BS3DATA16 segment.   */
     613extern uint8_t BS3_DATA_NM(Bs3Data16_StartOfSegment);
     614/** End of the BS3DATA16 segment.   */
     615extern uint8_t BS3_DATA_NM(Bs3Data16_EndOfSegment);
     616
     617/** Start of the BS3TEXT32 segment.   */
     618extern uint8_t BS3_DATA_NM(Bs3Text32_StartOfSegment);
     619/** Start of the BS3TEXT32 segment.   */
     620extern uint8_t BS3_DATA_NM(Bs3Text32_EndOfSegment);
     621
     622/** Start of the BS3DATA32 segment.   */
     623extern uint8_t BS3_DATA_NM(Bs3Data32_StartOfSegment);
     624/** Start of the BS3DATA32 segment.   */
     625extern uint8_t BS3_DATA_NM(Bs3Data32_EndOfSegment);
     626
     627/** Start of the BS3TEXT64 segment.   */
     628extern uint8_t BS3_DATA_NM(Bs3Text64_StartOfSegment);
     629/** Start of the BS3TEXT64 segment.   */
     630extern uint8_t BS3_DATA_NM(Bs3Text64_EndOfSegment);
     631
     632/** Start of the BS3DATA64 segment.   */
     633extern uint8_t BS3_DATA_NM(Bs3Data64_StartOfSegment);
     634/** Start of the BS3DATA64 segment.   */
     635extern uint8_t BS3_DATA_NM(Bs3Data64_EndOfSegment);
     636
     637/** The size of the Data16, Text32, Text64, Data32 and Data64 blob. */
     638extern uint8_t BS3_DATA_NM(Bs3Data16Thru64Text32And64_TotalSize);
     639/** The total image size (from Text16 thu Data64). */
     640extern uint8_t BS3_DATA_NM(Bs3TotalImageSize);
     641/** @} */
     642
     643
    598644#ifdef __WATCOMC__
    599645/**
     
    12341280
    12351281
     1282/**
     1283 * Initializes the REAL and TILED memory pools.
     1284 */
     1285BS3_DECL(void) Bs3InitMemory_rm(void);
     1286
    12361287
    12371288/** @defgroup grp_bs3kit_mode   Mode Specific Functions and Data
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette