VirtualBox

Ignore:
Timestamp:
Apr 18, 2016 7:26:35 PM (9 years ago)
Author:
vboxsync
Message:

bs3kit: far updates.

Location:
trunk/src/VBox/ValidationKit/bootsectors/bs3kit
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-first-pe16.asm

    r60539 r60556  
    5050extern Bs3TestInit_c64
    5151
     52BS3_BEGIN_RMTEXT16
     53EXTERN Bs3InitMemory_rm_far
     54
    5255BS3_BEGIN_TEXT16
    53 EXTERN Bs3InitMemory_rm
    54 
    5556%if 0
    5657EXTERN Main_pe16
     
    8687    ; We need to enter 16-bit protected mode before we can call Main_pe16.
    8788    ;
    88     call    NAME(Bs3InitMemory_rm)      ; Initialize the memory (must be done from real mode).
     89    call far NAME(Bs3InitMemory_rm_far) ; Initialize the memory (must be done from real mode).
    8990    call    Bs3Trap32Init
    9091    sub     xSP, 20h                    ; for 64-bit calls.
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-mode-CpuDetect.asm

    r60554 r60556  
    2828
    2929BS3_EXTERN_DATA16 g_uBs3CpuDetected
    30 TMPL_BEGIN_TEXT
     30
    3131
    3232;;
     
    4242; @remarks  ASSUMES we're in ring-0 when not in some kind of real mode.
    4343;
    44 BS3_PROC_BEGIN_MODE Bs3CpuDetect, BS3_PBC_HYBRID_0_ARGS
     44; @note     We put the real mode version of this code in the RMTEXT16 segment
     45;           to save space elsewhere.  We generate a far call stub that goes
     46;           to the right segment.
     47;
     48%if TMPL_MODE == BS3_MODE_RM
     49BS3_BEGIN_RMTEXT16
     50BS3_PROC_BEGIN_MODE Bs3CpuDetect, BS3_PBC_FAR
     51%else
     52TMPL_BEGIN_TEXT
     53BS3_PROC_BEGIN_MODE Bs3CpuDetect, BS3_PBC_HYBRID
     54%endif
    4555CPU 8086
    4656        push    xBP
     
    297307BS3_PROC_END_MODE   Bs3CpuDetect
    298308
     309
     310%if TMPL_MODE == BS3_MODE_RM
     311BS3_BEGIN_TEXT16_NEARSTUBS
     312BS3_PROC_BEGIN_MODE Bs3CpuDetect, BS3_PBC_NEAR
     313        call far TMPL_FAR_NM(Bs3CpuDetect)
     314        ret
     315BS3_PROC_END_MODE   Bs3CpuDetect
     316%endif
     317
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-rm-InitAll.c

    r60539 r60556  
    4141BS3_DECL(void) Bs3InitAll_rm(void)
    4242{
    43     Bs3CpuDetect_rm();
    44     Bs3InitMemory_rm();
    45     Bs3InitGdt_rm();
     43    Bs3CpuDetect_rm_far();
     44    Bs3InitMemory_rm_far();
     45    Bs3InitGdt_rm_far();
    4646
    4747    ASMIntDisable();
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-rm-InitGdt.c

    r60539 r60556  
    4242
    4343
    44 BS3_DECL_FAR(void) Bs3InitGdt_rm(void)
     44BS3_DECL_FAR(void) Bs3InitGdt_rm_far(void)
    4545{
    4646    Bs3Gdte_X0TEXT16_CS.Gen.u16LimitLow = Bs3X0Text16_Size - 1;
     
    5252}
    5353
    54 
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-rm-InitMemory.c

    r60527 r60556  
    239239
    240240
    241 BS3_DECL(void) BS3_FAR_CODE Bs3InitMemory_rm(void)
     241BS3_DECL(void) BS3_FAR_CODE Bs3InitMemory_rm_far(void)
    242242{
    243243    uint16_t        i;
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit.h

    r60554 r60556  
    25082508 * For proper operation on OLDer CPUs, call #Bs3CpuDetect_mmm first.
    25092509 */
    2510 BS3_DECL_FAR(void) Bs3InitMemory_rm(void);
     2510BS3_DECL_FAR(void) Bs3InitMemory_rm_far(void);
    25112511
    25122512/**
    25132513 * Initialized the X0TEXT16 and X1TEXT16 GDT entries.
    25142514 */
    2515 BS3_DECL_FAR(void) Bs3InitGdt_rm(void);
     2515BS3_DECL_FAR(void) Bs3InitGdt_rm_far(void);
    25162516
    25172517
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