- Use _enable/_disable intrinsics instead of inline asm.

svn path=/trunk/; revision=31889
This commit is contained in:
Aleksey Bragin 2008-01-19 16:36:54 +00:00
parent 462e22a7ea
commit 6e6060a610

View file

@ -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