Ignore:
Timestamp:
2016-09-01T22:14:30Z (8 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2c2d54a
Parents:
8b6aa39
Message:

amd64: resurrect optional support for the 'large' memory model ('kernel' memory model stays the default)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/amd64/src/boot/multiboot2.S

    r8b6aa39 r4bf0926e  
    253253        movl multiboot_eax, %edi
    254254        movl multiboot_ebx, %esi
    255         callq amd64_pre_main
     255       
     256#ifdef MEMORY_MODEL_large
     257        movabsq $amd64_pre_main, %rax
     258        callq *%rax
     259#else
     260        callq amd64_pre_main
     261#endif
    256262       
    257263        /* Call main_bsp() */
    258         callq main_bsp
     264#ifdef MEMORY_MODEL_large
     265        movabsq $main_bsp, %rax
     266        callq *%rax
     267#else
     268        callq main_bsp
     269#endif
    259270       
    260271        /* Not reached */
Note: See TracChangeset for help on using the changeset viewer.