Author: fireball
Date: Sat Jan 19 19:36:54 2008
New Revision: 31889
URL:
http://svn.reactos.org/svn/reactos?rev=31889&view=rev
Log:
- Use _enable/_disable intrinsics instead of inline asm.
Modified:
trunk/reactos/drivers/setup/blue/font.c
Modified: trunk/reactos/drivers/setup/blue/font.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/setup/blue/font.c?…
==============================================================================
--- trunk/reactos/drivers/setup/blue/font.c (original)
+++ trunk/reactos/drivers/setup/blue/font.c Sat Jan 19 19:36:54 2008
@@ -50,7 +50,7 @@
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 @@
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 @@
WRITE_PORT_UCHAR (GCT_COMMAND, GCT_GRAPH_MODE); WRITE_PORT_UCHAR (GCT_DATA, 0x0e);
/* enable interrupts */
- __asm__("sti\n\t");
+ _enable();
}
VOID