162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci#ifndef _PPC_BOOT_CUBOOT_H_ 362306a36Sopenharmony_ci#define _PPC_BOOT_CUBOOT_H_ 462306a36Sopenharmony_ci 562306a36Sopenharmony_civoid cuboot_init(unsigned long r4, unsigned long r5, 662306a36Sopenharmony_ci unsigned long r6, unsigned long r7, 762306a36Sopenharmony_ci unsigned long end_of_ram); 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci#define CUBOOT_INIT() \ 1062306a36Sopenharmony_ci do { \ 1162306a36Sopenharmony_ci memcpy(&bd, (bd_t *)r3, sizeof(bd)); \ 1262306a36Sopenharmony_ci cuboot_init(r4, r5, r6, r7, bd.bi_memstart + bd.bi_memsize); \ 1362306a36Sopenharmony_ci } while (0) 1462306a36Sopenharmony_ci 1562306a36Sopenharmony_ci#endif /* _PPC_BOOT_CUBOOT_H_ */ 16