xref: /OK3568_Linux_fs/kernel/arch/powerpc/boot/cuboot.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun #ifndef _PPC_BOOT_CUBOOT_H_
3*4882a593Smuzhiyun #define _PPC_BOOT_CUBOOT_H_
4*4882a593Smuzhiyun 
5*4882a593Smuzhiyun void cuboot_init(unsigned long r4, unsigned long r5,
6*4882a593Smuzhiyun 		 unsigned long r6, unsigned long r7,
7*4882a593Smuzhiyun 		 unsigned long end_of_ram);
8*4882a593Smuzhiyun 
9*4882a593Smuzhiyun #define CUBOOT_INIT() \
10*4882a593Smuzhiyun 	do { \
11*4882a593Smuzhiyun 		memcpy(&bd, (bd_t *)r3, sizeof(bd)); \
12*4882a593Smuzhiyun 		cuboot_init(r4, r5, r6, r7, bd.bi_memstart + bd.bi_memsize); \
13*4882a593Smuzhiyun 	} while (0)
14*4882a593Smuzhiyun 
15*4882a593Smuzhiyun #endif /* _PPC_BOOT_CUBOOT_H_ */
16