mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +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()
|
||||
{
|
||||
/* disable interrupts */
|
||||
__asm__("cli\n\t");
|
||||
_disable();
|
||||
|
||||
/* sequence reg */
|
||||
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);
|
||||
|
||||
/* enable interrupts */
|
||||
__asm__("sti\n\t");
|
||||
_enable();
|
||||
}
|
||||
|
||||
VOID
|
||||
CloseBitPlane()
|
||||
{
|
||||
/* disable interrupts */
|
||||
__asm__("cli\n\t");
|
||||
_disable();
|
||||
|
||||
/* sequence reg */
|
||||
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);
|
||||
|
||||
/* enable interrupts */
|
||||
__asm__("sti\n\t");
|
||||
_enable();
|
||||
}
|
||||
|
||||
VOID
|
||||
|
|
Loading…
Reference in a new issue