diff options
Diffstat (limited to 'arch/h8300')
-rw-r--r-- | arch/h8300/Kconfig | 7 | ||||
-rw-r--r-- | arch/h8300/kernel/Makefile | 4 | ||||
-rw-r--r-- | arch/h8300/kernel/setup.c | 6 | ||||
-rw-r--r-- | arch/h8300/kernel/time.c | 6 | ||||
-rw-r--r-- | arch/h8300/kernel/vmlinux.lds.S | 2 |
5 files changed, 15 insertions, 10 deletions
diff --git a/arch/h8300/Kconfig b/arch/h8300/Kconfig index 34a84bc4baf5..1734d96422c6 100644 --- a/arch/h8300/Kconfig +++ b/arch/h8300/Kconfig | |||
@@ -17,6 +17,10 @@ config SWAP | |||
17 | bool | 17 | bool |
18 | default n | 18 | default n |
19 | 19 | ||
20 | config ZONE_DMA | ||
21 | bool | ||
22 | default y | ||
23 | |||
20 | config FPU | 24 | config FPU |
21 | bool | 25 | bool |
22 | default n | 26 | default n |
@@ -53,6 +57,9 @@ config TIME_LOW_RES | |||
53 | bool | 57 | bool |
54 | default y | 58 | default y |
55 | 59 | ||
60 | config NO_IOPORT | ||
61 | def_bool y | ||
62 | |||
56 | config ISA | 63 | config ISA |
57 | bool | 64 | bool |
58 | default y | 65 | default y |
diff --git a/arch/h8300/kernel/Makefile b/arch/h8300/kernel/Makefile index 71b6131e98b8..4edbc2ef6ca2 100644 --- a/arch/h8300/kernel/Makefile +++ b/arch/h8300/kernel/Makefile | |||
@@ -6,6 +6,8 @@ extra-y := vmlinux.lds | |||
6 | 6 | ||
7 | obj-y := process.o traps.o ptrace.o ints.o \ | 7 | obj-y := process.o traps.o ptrace.o ints.o \ |
8 | sys_h8300.o time.o semaphore.o signal.o \ | 8 | sys_h8300.o time.o semaphore.o signal.o \ |
9 | setup.o gpio.o init_task.o syscalls.o | 9 | setup.o gpio.o init_task.o syscalls.o devres.o |
10 | |||
11 | devres-y = ../../../kernel/irq/devres.o | ||
10 | 12 | ||
11 | obj-$(CONFIG_MODULES) += module.o h8300_ksyms.o | 13 | obj-$(CONFIG_MODULES) += module.o h8300_ksyms.o |
diff --git a/arch/h8300/kernel/setup.c b/arch/h8300/kernel/setup.c index 6adf8f41d2a1..313cd8081044 100644 --- a/arch/h8300/kernel/setup.c +++ b/arch/h8300/kernel/setup.c | |||
@@ -54,7 +54,7 @@ unsigned long rom_length; | |||
54 | unsigned long memory_start; | 54 | unsigned long memory_start; |
55 | unsigned long memory_end; | 55 | unsigned long memory_end; |
56 | 56 | ||
57 | char command_line[COMMAND_LINE_SIZE]; | 57 | char __initdata command_line[COMMAND_LINE_SIZE]; |
58 | 58 | ||
59 | extern int _stext, _etext, _sdata, _edata, _sbss, _ebss, _end; | 59 | extern int _stext, _etext, _sdata, _edata, _sbss, _ebss, _end; |
60 | extern int _ramstart, _ramend; | 60 | extern int _ramstart, _ramend; |
@@ -154,8 +154,8 @@ void __init setup_arch(char **cmdline_p) | |||
154 | #endif | 154 | #endif |
155 | /* Keep a copy of command line */ | 155 | /* Keep a copy of command line */ |
156 | *cmdline_p = &command_line[0]; | 156 | *cmdline_p = &command_line[0]; |
157 | memcpy(saved_command_line, command_line, COMMAND_LINE_SIZE); | 157 | memcpy(boot_command_line, command_line, COMMAND_LINE_SIZE); |
158 | saved_command_line[COMMAND_LINE_SIZE-1] = 0; | 158 | boot_command_line[COMMAND_LINE_SIZE-1] = 0; |
159 | 159 | ||
160 | #ifdef DEBUG | 160 | #ifdef DEBUG |
161 | if (strlen(*cmdline_p)) | 161 | if (strlen(*cmdline_p)) |
diff --git a/arch/h8300/kernel/time.c b/arch/h8300/kernel/time.c index 8abab3bc2b6f..d1ef615ba895 100644 --- a/arch/h8300/kernel/time.c +++ b/arch/h8300/kernel/time.c | |||
@@ -118,9 +118,3 @@ int do_settimeofday(struct timespec *tv) | |||
118 | } | 118 | } |
119 | 119 | ||
120 | EXPORT_SYMBOL(do_settimeofday); | 120 | EXPORT_SYMBOL(do_settimeofday); |
121 | |||
122 | unsigned long long sched_clock(void) | ||
123 | { | ||
124 | return (unsigned long long)jiffies * (1000000000 / HZ); | ||
125 | |||
126 | } | ||
diff --git a/arch/h8300/kernel/vmlinux.lds.S b/arch/h8300/kernel/vmlinux.lds.S index f05288be8878..65f1cdc5ee04 100644 --- a/arch/h8300/kernel/vmlinux.lds.S +++ b/arch/h8300/kernel/vmlinux.lds.S | |||
@@ -126,10 +126,12 @@ SECTIONS | |||
126 | ___con_initcall_end = .; | 126 | ___con_initcall_end = .; |
127 | *(.exit.text) | 127 | *(.exit.text) |
128 | *(.exit.data) | 128 | *(.exit.data) |
129 | #if defined(CONFIG_BLK_DEV_INITRD) | ||
129 | . = ALIGN(4); | 130 | . = ALIGN(4); |
130 | ___initramfs_start = .; | 131 | ___initramfs_start = .; |
131 | *(.init.ramfs) | 132 | *(.init.ramfs) |
132 | ___initramfs_end = .; | 133 | ___initramfs_end = .; |
134 | #endif | ||
133 | . = ALIGN(0x4) ; | 135 | . = ALIGN(0x4) ; |
134 | ___init_end = .; | 136 | ___init_end = .; |
135 | __edata = . ; | 137 | __edata = . ; |