Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F97966047
D45356.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D45356.diff
View Options
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c
--- a/sys/amd64/amd64/machdep.c
+++ b/sys/amd64/amd64/machdep.c
@@ -1464,15 +1464,6 @@
r_idt.rd_base = (long) idt;
lidt(&r_idt);
- /*
- * Use vt(4) by default for UEFI boot (during the sc(4)/vt(4)
- * transition).
- * Once bootblocks have updated, we can test directly for
- * efi_systbl != NULL here...
- */
- if (efi_boot)
- vty_set_preferred(VTY_VT);
-
TUNABLE_INT_FETCH("hw.ibrs_disable", &hw_ibrs_disable);
TUNABLE_INT_FETCH("machdep.mitigations.ibrs.disable", &hw_ibrs_disable);
diff --git a/sys/kern/kern_cons.c b/sys/kern/kern_cons.c
--- a/sys/kern/kern_cons.c
+++ b/sys/kern/kern_cons.c
@@ -737,7 +737,6 @@
/*
* Temporary support for sc(4) to vt(4) transition.
*/
-static unsigned vty_prefer;
static char vty_name[16];
SYSCTL_STRING(_kern, OID_AUTO, vty, CTLFLAG_RDTUN | CTLFLAG_NOFETCH, vty_name,
0, "Console vty driver");
@@ -762,10 +761,6 @@
break;
}
#endif
- if (vty_prefer != 0) {
- vty_selected = vty_prefer;
- break;
- }
#if defined(DEV_VT)
vty_selected = VTY_VT;
#elif defined(DEV_SC)
@@ -780,16 +775,3 @@
}
return ((vty_selected & vty) != 0);
}
-
-void
-vty_set_preferred(unsigned vty)
-{
-
- vty_prefer = vty;
-#if !defined(DEV_SC)
- vty_prefer &= ~VTY_SC;
-#endif
-#if !defined(DEV_VT)
- vty_prefer &= ~VTY_VT;
-#endif
-}
diff --git a/sys/sys/cons.h b/sys/sys/cons.h
--- a/sys/sys/cons.h
+++ b/sys/sys/cons.h
@@ -145,7 +145,6 @@
#define VTY_SC 0x01
#define VTY_VT 0x02
int vty_enabled(unsigned int);
-void vty_set_preferred(unsigned int);
#endif /* _KERNEL */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Oct 2, 9:20 PM (10 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
13314901
Default Alt Text
D45356.diff (1 KB)
Attached To
Mode
D45356: vt/sc: retire logic to select vt(4) by default for UEFI boot
Attached
Detach File
Event Timeline
Log In to Comment