Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 26f5bdf in mainline


Ignore:
Timestamp:
2018-11-30T22:31:12Z (19 months ago)
Author:
Jakub Jermar <jakub@…>
Branches:
master
Children:
9c3038d
Parents:
ea4910b
Message:

Use aligned addresses to take over the MMU

Commit cfdeedc55a55b7c1fc8de8b3faea55104ff3f641 made the kernel image
start address unaligned, which broke the MMU takeover on sun4v. Use
kernel load address, which is still aligned.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/src/sun4v/start.S

    rea4910b r26f5bdf  
    162162
    163163        ! map kernel in context 1
    164         set kernel_image_start, %o0                             ! virt. address
     164        set kernel_load_address, %o0                            ! virt. address
    165165        set 1, %o1                                              ! context
    166         TTE_DATA(kernel_image_start, %l5, %g2, %g3, %o2)        ! TTE data
     166        TTE_DATA(kernel_load_address, %l5, %g2, %g3, %o2)       ! TTE data
    167167        set MMU_FLAG_DTLB | MMU_FLAG_ITLB, %o3                  ! MMU flags
    168168        __HYPERCALL_HYPERFAST(MMU_MAP_ADDR)
     
    181181
    182182        ! install permanent mapping for kernel in context 0
    183         set kernel_image_start, %o0                             ! virtual address
     183        set kernel_load_address, %o0                            ! virtual address
    184184        set 0, %o1                                              ! context
    185         TTE_DATA(kernel_image_start, %l5, %g2, %g3, %o2)        ! TTE data
     185        TTE_DATA(kernel_load_address, %l5, %g2, %g3, %o2)       ! TTE data
    186186        set MMU_FLAG_DTLB | MMU_FLAG_ITLB, %o3                  ! MMU flags
    187187        __HYPERCALL_FAST(MMU_MAP_PERM_ADDR)
Note: See TracChangeset for help on using the changeset viewer.