UBUNTU: SAUCE: vga_set_mode -- avoid jump tables

BugLink: http://bugs.launchpad.net/bugs/1758856

Signed-off-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
This commit is contained in:
Andy Whitcroft
2018-03-21 09:49:40 +00:00
committed by Paolo Pisati
parent e5e24f4025
commit ac3bad6b29
+1 -1
View File
@@ -188,7 +188,7 @@ static void vga_set_80x60(void)
vga_set_vertical_end(60*8);
}
static int vga_set_mode(struct mode_info *mode)
static int __attribute__((optimize("no-jump-tables"))) vga_set_mode(struct mode_info *mode)
{
/* Set the basic mode */
vga_set_basic_mode();