Hi,

there is no com(4) direct access support in EFI, so setting the speed
will fail and crash the EFI Application.  Happens when you run stty
com0 115200.

ok?

Patrick


diff --git a/sys/arch/amd64/stand/libsa/dev_i386.c 
b/sys/arch/amd64/stand/libsa/dev_i386.c
index e40856cbf05..245ced84a8e 100644
--- a/sys/arch/amd64/stand/libsa/dev_i386.c
+++ b/sys/arch/amd64/stand/libsa/dev_i386.c
@@ -182,8 +182,10 @@ ttydev(char *name)
 int
 cnspeed(dev_t dev, int sp)
 {
+#ifndef EFIBOOT
        if (major(dev) == 8)    /* comN */
                return comspeed(dev, sp);
+#endif
 
        /* pc0 and anything else */
        return 9600;

Reply via email to