Ignore:
Timestamp:
2014-06-16T11:32:05Z (10 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2cb32f9
Parents:
334bf28
Message:

Switch the amd64 kernel (back) from 'large' to 'kernel' memory model.

  • This makes the amd64 kernel 6% smaller and more comfortable to debug.
  • Unlike in the original 'kernel' memory model implementation, KA2PA(PA2KA(x)) == x; for x from kernel identity.
  • Memory outside of the kernel identity region continues to be available by the standard means.
File:
1 edited

Legend:

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

    r334bf28 r17af882  
    244244       
    245245        /* Call arch_pre_main(multiboot_eax, multiboot_ebx) */
    246         xorq %rdi, %rdi
    247246        movl multiboot_eax, %edi
    248         xorq %rsi, %rsi
    249247        movl multiboot_ebx, %esi
    250        
    251         movabsq $arch_pre_main, %rax
    252         callq *%rax
     248        callq arch_pre_main
    253249       
    254250        /* Call main_bsp() */
    255         movabsq $main_bsp, %rax
    256         call *%rax
     251        callq main_bsp
    257252       
    258253        /* Not reached */
Note: See TracChangeset for help on using the changeset viewer.