summaryrefslogtreecommitdiff
path: root/arch/powerpc/include/asm/vga.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/include/asm/vga.h')
-rw-r--r--arch/powerpc/include/asm/vga.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/powerpc/include/asm/vga.h b/arch/powerpc/include/asm/vga.h
index ab3acd2f2786..f2dc40e1c52a 100644
--- a/arch/powerpc/include/asm/vga.h
+++ b/arch/powerpc/include/asm/vga.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_POWERPC_VGA_H_
#define _ASM_POWERPC_VGA_H_
@@ -33,8 +34,11 @@ static inline u16 scr_readw(volatile const u16 *addr)
return le16_to_cpu(*addr);
}
-#define VT_BUF_HAVE_MEMCPYW
-#define scr_memcpyw memcpy
+#define VT_BUF_HAVE_MEMSETW
+static inline void scr_memsetw(u16 *s, u16 v, unsigned int n)
+{
+ memset16(s, cpu_to_le16(v), n / 2);
+}
#endif /* !CONFIG_VGA_CONSOLE && !CONFIG_MDA_CONSOLE */