source: mainline/kernel/arch/ppc32/src/boot/boot.S@ 8fd0675f

Last change on this file since 8fd0675f was cb7be8f, checked in by Jiří Zárevúcky <zarevucky.jiri@…>, 3 years ago

Update headers in .S files that incorrectly use #-style comments

  • Property mode set to 100644
File size: 615 bytes
Line 
1/*
2 * SPDX-FileCopyrightText: 2005 Jakub Jermar
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#include <abi/asmtool.h>
8#include <arch/asm/regname.h>
9#include <config.h>
10
11.section K_TEXT_START, "ax"
12
13SYMBOL(kernel_image_start)
14 # load temporary kernel stack
15
16 lis sp, kernel_stack@ha
17 addi sp, sp, kernel_stack@l
18
19 # set kernel stack for interrupt handling
20
21 mr r31, sp
22 subis r31, r31, 0x8000
23 mtsprg0 r31
24
25 # r3 contains physical address of bootinfo_t
26
27 addis r3, r3, 0x8000
28 bl ppc32_pre_main
29 b main_bsp
30
31.section K_DATA_START, "aw", @progbits
32
33.align 12
34kernel_stack_bottom:
35 .space STACK_SIZE
36kernel_stack:
Note: See TracBrowser for help on using the repository browser.