VirtualBox

Changeset 61533 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jun 7, 2016 11:59:56 AM (9 years ago)
Author:
vboxsync
Message:

bs3kit: bs3-first-init-all-pe32.asm

Location:
trunk/src/VBox/ValidationKit/bootsectors/bs3kit
Files:
1 edited
1 copied

Legend:

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

    r61389 r61533  
    337337bs3kit-pe32_INSTTYPE = none
    338338bs3kit-pe32_DEFS     = TMPL_MODE=BS3_MODE_PE32
    339 bs3kit-pe32_SOURCES  = $(VBOX_BS3KIT_MODE_SOURCES)
     339bs3kit-pe32_SOURCES  = $(VBOX_BS3KIT_MODE_SOURCES) \
     340        bs3-first-init-all-pe32.asm
    340341
    341342# The 16-bit BS3Kit library for 32-bit protected kernel+tss.
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-first-init-all-pe32.asm

    r61523 r61533  
    11; $Id$
    22;; @file
    3 ; BS3Kit - First Object, calling real-mode main().
     3; BS3Kit - First Object, calling 32-bit protected mode main() after full init.
    44;
    55
    66;
    7 ; Copyright (C) 2007-2015 Oracle Corporation
     7; Copyright (C) 2007-2016 Oracle Corporation
    88;
    99; This file is part of VirtualBox Open Source Edition (OSE), as
     
    3232%include "bs3-first-common.mac"
    3333
     34extern NAME(Bs3InitAll_rm)
     35extern NAME(Bs3SwitchToPE32_rm)
     36
    3437
    3538EXTERN Main_rm
    36 BS3_EXTERN_CMN Bs3Shutdown
    3739        push    word 0                  ; zero return address.
    3840        push    word 0                  ; zero caller BP
     
    4042
    4143        ;
    42         ; Nothing to init here, just call main and shutdown if it returns.
     44        ; Init all while we're in real mode.
    4345        ;
    4446        mov     ax, BS3_SEL_DATA16
    4547        mov     es, ax
    4648        mov     ds, ax
    47         call    NAME(Main_rm)
     49        call    NAME(Bs3InitAll_rm)
     50
     51        ;
     52        ; Switch to 32-bit protected mode and call main.
     53        ;
     54        call    NAME(Bs3SwitchToPE32_rm)
     55        BS3_SET_BITS 32
     56        call    _Main_pe32
     57extern _Main_pe32
     58BS3_EXTERN_CMN Bs3Shutdown
    4859        call    Bs3Shutdown
    4960
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