mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
- Use _enable/_disable intrinsics instead of inline asm.
svn path=/trunk/; revision=31889
This commit is contained in:
parent
462e22a7ea
commit
6e6060a610
1 changed files with 4 additions and 4 deletions
|
@ -50,7 +50,7 @@ VOID
|
||||||
OpenBitPlane()
|
OpenBitPlane()
|
||||||
{
|
{
|
||||||
/* disable interrupts */
|
/* disable interrupts */
|
||||||
__asm__("cli\n\t");
|
_disable();
|
||||||
|
|
||||||
/* sequence reg */
|
/* sequence reg */
|
||||||
WRITE_PORT_UCHAR (SEQ_COMMAND, SEQ_RESET); WRITE_PORT_UCHAR (SEQ_DATA, 0x01);
|
WRITE_PORT_UCHAR (SEQ_COMMAND, SEQ_RESET); WRITE_PORT_UCHAR (SEQ_DATA, 0x01);
|
||||||
|
@ -64,14 +64,14 @@ OpenBitPlane()
|
||||||
WRITE_PORT_UCHAR (GCT_COMMAND, GCT_GRAPH_MODE); WRITE_PORT_UCHAR (GCT_DATA, 0x00);
|
WRITE_PORT_UCHAR (GCT_COMMAND, GCT_GRAPH_MODE); WRITE_PORT_UCHAR (GCT_DATA, 0x00);
|
||||||
|
|
||||||
/* enable interrupts */
|
/* enable interrupts */
|
||||||
__asm__("sti\n\t");
|
_enable();
|
||||||
}
|
}
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
CloseBitPlane()
|
CloseBitPlane()
|
||||||
{
|
{
|
||||||
/* disable interrupts */
|
/* disable interrupts */
|
||||||
__asm__("cli\n\t");
|
_disable();
|
||||||
|
|
||||||
/* sequence reg */
|
/* sequence reg */
|
||||||
WRITE_PORT_UCHAR (SEQ_COMMAND, SEQ_RESET); WRITE_PORT_UCHAR (SEQ_DATA, 0x01);
|
WRITE_PORT_UCHAR (SEQ_COMMAND, SEQ_RESET); WRITE_PORT_UCHAR (SEQ_DATA, 0x01);
|
||||||
|
@ -85,7 +85,7 @@ CloseBitPlane()
|
||||||
WRITE_PORT_UCHAR (GCT_COMMAND, GCT_GRAPH_MODE); WRITE_PORT_UCHAR (GCT_DATA, 0x0e);
|
WRITE_PORT_UCHAR (GCT_COMMAND, GCT_GRAPH_MODE); WRITE_PORT_UCHAR (GCT_DATA, 0x0e);
|
||||||
|
|
||||||
/* enable interrupts */
|
/* enable interrupts */
|
||||||
__asm__("sti\n\t");
|
_enable();
|
||||||
}
|
}
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
|
|
Loading…
Reference in a new issue