1 /* SPDX-License-Identifier: GPL-2.0 */
2 #include <linux/init.h>
3 #include <asm/thread_info.h>
5 #if defined(CONFIG_CPU_H8300H)
8 #define IRAMTOP 0xffff20
11 #if defined(CONFIG_CPU_H8S)
13 #define INTCR 0xffff31
14 #define IRAMTOP 0xffc000
22 #if !defined(CONFIG_H8300H_SIM) && \
23 !defined(CONFIG_H8S_SIM)
27 mov.l #_begin_data,er5
52 /* get cmdline from gdb */
56 mov.l #command_line,er3
81 /* linux kernel start */
82 #if defined(CONFIG_CPU_H8300H)
83 ldc #0xd0,ccr /* running kernel */
87 #if defined(CONFIG_CPU_H8S)
90 bset #5,@INTCR:8 /* Interrupt mode 2 */
91 ldc #0x90,ccr /* running kernel */
93 mov.l #init_thread_union,sp
100 #if defined(CONFIG_ROMKERNEL)
101 /* interrupt vector */
102 .section .vectors,"ax"
107 .long _interrupt_redirect_table+vector*4