boot.c (de7e907d011cf12805b80150a81470ff7c8b5d44) boot.c (72674db080bcdf2fd66b2a538379ee6000f5b113)
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*
3 * LoongArch boot helper functions.
4 *
5 * Copyright (c) 2023 Loongson Technology Corporation Limited
6 */
7
8#include "qemu/osdep.h"
9#include "qemu/units.h"
10#include "target/loongarch/cpu.h"
11#include "hw/loongarch/virt.h"
12#include "hw/loader.h"
13#include "elf.h"
14#include "qemu/error-report.h"
15#include "sysemu/reset.h"
16#include "sysemu/qtest.h"
17
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*
3 * LoongArch boot helper functions.
4 *
5 * Copyright (c) 2023 Loongson Technology Corporation Limited
6 */
7
8#include "qemu/osdep.h"
9#include "qemu/units.h"
10#include "target/loongarch/cpu.h"
11#include "hw/loongarch/virt.h"
12#include "hw/loader.h"
13#include "elf.h"
14#include "qemu/error-report.h"
15#include "sysemu/reset.h"
16#include "sysemu/qtest.h"
17
18struct memmap_entry *memmap_table;
19unsigned memmap_entries;
20
18ram_addr_t initrd_offset;
19uint64_t initrd_size;
20
21static const unsigned int slave_boot_code[] = {
22 /* Configure reset ebase. */
23 0x0400302c, /* csrwr $t0, LOONGARCH_CSR_EENTRY */
24
25 /* Disable interrupt. */

--- 311 unchanged lines hidden ---
21ram_addr_t initrd_offset;
22uint64_t initrd_size;
23
24static const unsigned int slave_boot_code[] = {
25 /* Configure reset ebase. */
26 0x0400302c, /* csrwr $t0, LOONGARCH_CSR_EENTRY */
27
28 /* Disable interrupt. */

--- 311 unchanged lines hidden ---