Revert "tty: hvc: Fix data abort due to race in hvc_open"
[linux/fpc-iii.git] / arch / x86 / include / asm / processor-cyrix.h
blobdf700a6cc869bb6309bc1069e3e3c030b47281f7
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * NSC/Cyrix CPU indexed register access. Must be inlined instead of
4 * macros to ensure correct access ordering
5 * Access order is always 0x22 (=offset), 0x23 (=value)
6 */
8 static inline u8 getCx86(u8 reg)
10 outb(reg, 0x22);
11 return inb(0x23);
14 static inline void setCx86(u8 reg, u8 data)
16 outb(reg, 0x22);
17 outb(data, 0x23);