xtensa: fix compilation somewhat
* ->put_char changes * HIGHMEM is bogus it seems, there is no kmap_atomic() et al * some includes Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Acked-by: Chris Zankel <zankel@tensilica.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
8ef1f0291a
commit
5a891ed5ad
@@ -103,9 +103,6 @@ config MATH_EMULATION
|
|||||||
help
|
help
|
||||||
Can we use information of configuration file?
|
Can we use information of configuration file?
|
||||||
|
|
||||||
config HIGHMEM
|
|
||||||
bool "High memory support"
|
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
||||||
menu "Platform options"
|
menu "Platform options"
|
||||||
|
@@ -44,6 +44,8 @@
|
|||||||
#include <asm/setup.h>
|
#include <asm/setup.h>
|
||||||
#include <asm/param.h>
|
#include <asm/param.h>
|
||||||
|
|
||||||
|
#include <platform/hardware.h>
|
||||||
|
|
||||||
#if defined(CONFIG_VGA_CONSOLE) || defined(CONFIG_DUMMY_CONSOLE)
|
#if defined(CONFIG_VGA_CONSOLE) || defined(CONFIG_DUMMY_CONSOLE)
|
||||||
struct screen_info screen_info = { 0, 24, 0, 0, 0, 80, 0, 0, 0, 24, 1, 16};
|
struct screen_info screen_info = { 0, 24, 0, 0, 0, 80, 0, 0, 0, 24, 1, 16};
|
||||||
#endif
|
#endif
|
||||||
|
@@ -30,6 +30,7 @@
|
|||||||
#include <linux/stringify.h>
|
#include <linux/stringify.h>
|
||||||
#include <linux/kallsyms.h>
|
#include <linux/kallsyms.h>
|
||||||
#include <linux/delay.h>
|
#include <linux/delay.h>
|
||||||
|
#include <linux/hardirq.h>
|
||||||
|
|
||||||
#include <asm/ptrace.h>
|
#include <asm/ptrace.h>
|
||||||
#include <asm/timex.h>
|
#include <asm/timex.h>
|
||||||
|
@@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
#include <linux/mm.h>
|
#include <linux/mm.h>
|
||||||
#include <linux/module.h>
|
#include <linux/module.h>
|
||||||
|
#include <linux/hardirq.h>
|
||||||
#include <asm/mmu_context.h>
|
#include <asm/mmu_context.h>
|
||||||
#include <asm/cacheflush.h>
|
#include <asm/cacheflush.h>
|
||||||
#include <asm/hardirq.h>
|
#include <asm/hardirq.h>
|
||||||
|
@@ -140,16 +140,14 @@ static void rs_poll(unsigned long priv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void rs_put_char(struct tty_struct *tty, unsigned char ch)
|
static int rs_put_char(struct tty_struct *tty, unsigned char ch)
|
||||||
{
|
{
|
||||||
char buf[2];
|
char buf[2];
|
||||||
|
|
||||||
if (!tty)
|
|
||||||
return;
|
|
||||||
|
|
||||||
buf[0] = ch;
|
buf[0] = ch;
|
||||||
buf[1] = '\0'; /* Is this NULL necessary? */
|
buf[1] = '\0'; /* Is this NULL necessary? */
|
||||||
__simc (SYS_write, 1, (unsigned long) buf, 1, 0, 0);
|
__simc (SYS_write, 1, (unsigned long) buf, 1, 0, 0);
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void rs_flush_chars(struct tty_struct *tty)
|
static void rs_flush_chars(struct tty_struct *tty)
|
||||||
|
Reference in New Issue
Block a user