Oops, this should have been in the previous commit (ensure atomic update

of com->cor[1]).
This commit is contained in:
Bruce Evans 1998-12-17 18:18:06 +00:00
parent 657365cdd7
commit 7cfc9b133e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=41904
3 changed files with 9 additions and 3 deletions

View File

@ -27,7 +27,7 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: cy.c,v 1.76 1998/11/28 15:48:09 bde Exp $
* $Id: cy.c,v 1.77 1998/12/17 17:40:13 bde Exp $
*/
#include "opt_compat.h"
@ -2018,10 +2018,12 @@ comparam(tp, t)
if (cflag & CCTS_OFLOW)
opt |= CD1400_COR2_CCTS_OFLOW;
#endif
disable_intr();
if (opt != com->cor[1]) {
cor_change |= CD1400_CCR_COR2;
cd_setreg(com, CD1400_COR2, com->cor[1] = opt);
}
enable_intr();
/*
* set channel option register 3 -

View File

@ -27,7 +27,7 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: cy.c,v 1.76 1998/11/28 15:48:09 bde Exp $
* $Id: cy.c,v 1.77 1998/12/17 17:40:13 bde Exp $
*/
#include "opt_compat.h"
@ -2018,10 +2018,12 @@ comparam(tp, t)
if (cflag & CCTS_OFLOW)
opt |= CD1400_COR2_CCTS_OFLOW;
#endif
disable_intr();
if (opt != com->cor[1]) {
cor_change |= CD1400_CCR_COR2;
cd_setreg(com, CD1400_COR2, com->cor[1] = opt);
}
enable_intr();
/*
* set channel option register 3 -

View File

@ -27,7 +27,7 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: cy.c,v 1.76 1998/11/28 15:48:09 bde Exp $
* $Id: cy.c,v 1.77 1998/12/17 17:40:13 bde Exp $
*/
#include "opt_compat.h"
@ -2018,10 +2018,12 @@ comparam(tp, t)
if (cflag & CCTS_OFLOW)
opt |= CD1400_COR2_CCTS_OFLOW;
#endif
disable_intr();
if (opt != com->cor[1]) {
cor_change |= CD1400_CCR_COR2;
cd_setreg(com, CD1400_COR2, com->cor[1] = opt);
}
enable_intr();
/*
* set channel option register 3 -