1 /* SPDX-License-Identifier: GPL-2.0 */
4 #include <linux/init.h>
5 #include <asm/unistd.h>
7 #include <asm/segment.h>
8 #include <asm/linkage.h>
9 #include <asm/asm-offsets.h>
10 #include <asm/thread_info.h>
11 #include <asm/errno.h>
13 #if defined(CONFIG_CPU_H8300H)
15 #define SYSCR 0xfee012
16 #define IRAMTOP 0xffff20
18 #if defined(CONFIG_CPU_H8S)
20 #define INTCR 0xffff31
21 #define IRAMTOP 0xffc000
42 /* linux kernel start */
43 #if defined(CONFIG_CPU_H8300H)
44 ldc #0xd0,ccr /* running kernel */
48 #if defined(CONFIG_CPU_H8S)
51 bset #5,@INTCR:8 /* Interrupt mode 2 */
52 ldc #0x90,ccr /* running kernel */
54 mov.l #init_thread_union,sp