diff options
author | Patrick Wildt <patrick@cvs.openbsd.org> | 2017-03-01 12:43:08 +0000 |
---|---|---|
committer | Patrick Wildt <patrick@cvs.openbsd.org> | 2017-03-01 12:43:08 +0000 |
commit | e6ba37795275a126d431e25b489de066b66cb4ad (patch) | |
tree | 28386d13cbfd502478aaae9d6ba95db31ed817ce /sys/arch/amd64 | |
parent | 14cf02da3f671b92b062268bd810b6fa1378277e (diff) |
Don't try to access the com(4) hardware to set up the console speed
on efiboot(8), as it can crash the EFI application.
ok tom@
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r-- | sys/arch/amd64/stand/libsa/dev_i386.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/amd64/stand/libsa/dev_i386.c b/sys/arch/amd64/stand/libsa/dev_i386.c index e40856cbf05..ee1a11ca6b0 100644 --- a/sys/arch/amd64/stand/libsa/dev_i386.c +++ b/sys/arch/amd64/stand/libsa/dev_i386.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dev_i386.c,v 1.18 2016/09/11 17:51:21 jsing Exp $ */ +/* $OpenBSD: dev_i386.c,v 1.19 2017/03/01 12:43:07 patrick Exp $ */ /* * Copyright (c) 1996-1999 Michael Shalayeff @@ -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; |