Changeset 06f10ac in mainline for boot


Ignore:
Timestamp:
2021-08-22T19:08:44Z (4 years ago)
Author:
Martin Decky <martin@…>
Branches:
master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c21cc26
Parents:
95b7d4df
Message:

Implement support for HiKey 960

Initial support for the 96Boards HiKey 960 board.

  • The kernel identity mapping has been extended to 4 GiB. The initial bootstrap mapping maps 3 GiB as nornal memory and the next 1 GiB as device memory to support early UART debugging output.
  • The istate_t has been padded in order to preserve the stack pointer alignment invariant.

The current implementation is limited to UP and UART input/output.

Location:
boot/arch/arm64
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/arm64/include/arch/arch.h

    r95b7d4df r06f10ac  
    4141
    4242#define BOOT_OFFSET  0x80000
     43
    4344#ifndef __ASSEMBLER__
    44 #define KA2PA(x)  (((uintptr_t) (x)) - UINT64_C(0xffffffff80000000))
     45#define KA2PA(x)  (((uintptr_t) (x)) - UINT64_C(0xffffffff00000000))
    4546#endif
    4647
  • boot/arch/arm64/meson.build

    r95b7d4df r06f10ac  
    2929BUILD = true
    3030
    31 POST_OUTPUT = 'image.iso'
    32 POSTBUILD = 'grub'
    33 GRUB_LOADER = 'chainloader'
     31if MACHINE == 'virt'
     32        POST_OUTPUT = 'image.iso'
     33        POSTBUILD = 'grub'
     34        GRUB_LOADER = 'chainloader'
     35endif
     36
     37if MACHINE == 'hikey960'
     38        POSTBUILD = 'raw'
     39        POST_OUTPUT = 'image.boot'
     40endif
    3441
    3542# Request binary output. The ARM64 port manually prepares the .text
Note: See TracChangeset for help on using the changeset viewer.