19 #include <linux/kernel.h>
20 #include <linux/sched.h>
28 #include <linux/errno.h>
29 #include <linux/string.h>
35 #include <asm/setup.h>
37 #include <asm/pgtable.h>
38 #include <asm/sections.h>
40 #if defined(__H8300H__)
45 #if defined(__H8300S__)
50 #define STUBSIZE 0xc000
62 #if (defined(CONFIG_H8300H_SIM) || defined(CONFIG_H8S_SIM)) \
63 && defined(CONFIG_GDB_MAGICPRINT)
65 static void gdb_console_output(
struct console *
c,
const char *
msg,
unsigned len)
67 for (; len > 0; len--) {
69 "jsr @0xc4"::
"r"(*msg++):
"er2");
84 static const struct console gdb_console = {
86 .write = gdb_console_output,
88 .setup = gdb_console_setup,
102 #if defined(CONFIG_BLK_DEV_INITRD)
110 #if !defined(CONFIG_BLKDEV_RESERVE)
112 #if defined(CONFIG_GDB_DEBUG)
116 if ((
memory_end < CONFIG_BLKDEV_RESERVE_ADDRESS) &&
127 #if (defined(CONFIG_H8300H_SIM) || defined(CONFIG_H8S_SIM)) && defined(CONFIG_GDB_MAGICPRINT)
133 printk(
KERN_INFO "Flat model support (C) 1998,1999 Kenneth Albanowski, D. Jeff Dionne\n");
145 #ifdef CONFIG_DEFAULT_CMDLINE
180 #if defined(CONFIG_H8300_AKI3068NET) && defined(CONFIG_IDE)
182 #define AREABIT(addr) (1 << (((addr) >> 21) & 7))
184 volatile unsigned char *abwcr = (
volatile unsigned char *)ABWCR;
185 volatile unsigned char *cscr = (
volatile unsigned char *)
CSCR;
186 *abwcr &= ~(AREABIT(CONFIG_H8300_IDE_BASE) | AREABIT(CONFIG_H8300_IDE_ALT));
187 *cscr |= (AREABIT(CONFIG_H8300_IDE_BASE) | AREABIT(CONFIG_H8300_IDE_ALT)) | 0x0f;
206 mode = *(
volatile unsigned char *)MDCR & 0x07;
208 clockfreq = CONFIG_CPU_CLOCK;
211 "Clock:\t\t%lu.%1luMHz\n"
212 "BogoMips:\t%lu.%02lu\n"
213 "Calibration:\t%lu loops\n",
215 clockfreq/1000,clockfreq%1000,
224 return *pos <
NR_CPUS ? ((
void *) 0x12345678) :
NULL;
227 static void *c_next(
struct seq_file *m,
void *v, loff_t *
pos)
233 static void c_stop(
struct seq_file *m,
void *v)