head.S (d077cb3cb90470f8bd7dbe357a474e13589390b9) | head.S (f6f0c4362f070cab4a0cec432e82428d702ce0a6) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0-only */ 2/* 3 * Low-level CPU initialisation 4 * Based on arch/arm/kernel/head.S 5 * 6 * Copyright (C) 1994-2002 Russell King 7 * Copyright (C) 2003-2012 ARM Ltd. 8 * Authors: Catalin Marinas <catalin.marinas@arm.com> --- 422 unchanged lines hidden (view full) --- 431 adr_l x2, __bss_stop 432 sub x2, x2, x0 433 bl __pi_memset 434 dsb ishst // Make zero page visible to PTW 435 436#if defined(CONFIG_KASAN_GENERIC) || defined(CONFIG_KASAN_SW_TAGS) 437 bl kasan_early_init 438#endif | 1/* SPDX-License-Identifier: GPL-2.0-only */ 2/* 3 * Low-level CPU initialisation 4 * Based on arch/arm/kernel/head.S 5 * 6 * Copyright (C) 1994-2002 Russell King 7 * Copyright (C) 2003-2012 ARM Ltd. 8 * Authors: Catalin Marinas <catalin.marinas@arm.com> --- 422 unchanged lines hidden (view full) --- 431 adr_l x2, __bss_stop 432 sub x2, x2, x0 433 bl __pi_memset 434 dsb ishst // Make zero page visible to PTW 435 436#if defined(CONFIG_KASAN_GENERIC) || defined(CONFIG_KASAN_SW_TAGS) 437 bl kasan_early_init 438#endif |
439 mov x0, x21 // pass FDT address in x0 440 bl early_fdt_map // Try mapping the FDT early |
|
439#ifdef CONFIG_RANDOMIZE_BASE 440 tst x23, ~(MIN_KIMG_ALIGN - 1) // already running randomized? 441 b.ne 0f | 441#ifdef CONFIG_RANDOMIZE_BASE 442 tst x23, ~(MIN_KIMG_ALIGN - 1) // already running randomized? 443 b.ne 0f |
442 mov x0, x21 // pass FDT address in x0 | |
443 bl kaslr_early_init // parse FDT for KASLR options 444 cbz x0, 0f // KASLR disabled? just proceed 445 orr x23, x23, x0 // record KASLR offset 446 ldp x29, x30, [sp], #16 // we must enable KASLR, return 447 ret // to __primary_switch() 4480: 449#endif 450 bl switch_to_vhe // Prefer VHE if possible --- 401 unchanged lines hidden --- | 444 bl kaslr_early_init // parse FDT for KASLR options 445 cbz x0, 0f // KASLR disabled? just proceed 446 orr x23, x23, x0 // record KASLR offset 447 ldp x29, x30, [sp], #16 // we must enable KASLR, return 448 ret // to __primary_switch() 4490: 450#endif 451 bl switch_to_vhe // Prefer VHE if possible --- 401 unchanged lines hidden --- |