diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2024-01-30 14:25:43 -0500 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2024-05-03 22:08:50 +0200 |
commit | 5d7531517427429e31d7bb84c00b0c7bec30e280 (patch) | |
tree | b8261b07d91cde408bc4b03452a55281f6c2da55 /arch/alpha/include/asm | |
parent | fec50db7033ea478773b159e0e2efb135270e3b7 (diff) | |
download | linux-stable-5d7531517427429e31d7bb84c00b0c7bec30e280.tar.gz linux-stable-5d7531517427429e31d7bb84c00b0c7bec30e280.tar.bz2 linux-stable-5d7531517427429e31d7bb84c00b0c7bec30e280.zip |
alpha: sort scr_mem{cpy,move}w() out
Take scr_memmove() out of line, make both it and scr_memcpyw()
conditional upon VGA_CONSOLE or MDA_CONSOLE (if neither is
selected, we are certain to be working with the kernel-allocated
buffer rather than VRAM and defaults will work just fine).
That allows to clean vt_buffer.h, but that's a separate story
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: Paul E. McKenney <paulmck@kernel.org>
Acked-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/alpha/include/asm')
-rw-r--r-- | arch/alpha/include/asm/vga.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/alpha/include/asm/vga.h b/arch/alpha/include/asm/vga.h index 4c347a8454c7..919931cb5b63 100644 --- a/arch/alpha/include/asm/vga.h +++ b/arch/alpha/include/asm/vga.h @@ -13,6 +13,7 @@ #define VT_BUF_HAVE_RW #define VT_BUF_HAVE_MEMSETW #define VT_BUF_HAVE_MEMCPYW +#define VT_BUF_HAVE_MEMMOVEW static inline void scr_writew(u16 val, volatile u16 *addr) { @@ -40,6 +41,7 @@ static inline void scr_memsetw(u16 *s, u16 c, unsigned int count) /* Do not trust that the usage will be correct; analyze the arguments. */ extern void scr_memcpyw(u16 *d, const u16 *s, unsigned int count); +extern void scr_memmovew(u16 *d, const u16 *s, unsigned int count); /* ??? These are currently only used for downloading character sets. As such, they don't need memory barriers. Is this all they are intended |