Skip to content
Snippets Groups Projects
Commit 7b8c541c authored by John Hodge's avatar John Hodge
Browse files

Modules/ISADMA - Removed commented out cli/sti

parent e3554b0b
Branches
Tags
No related merge requests found
...@@ -77,7 +77,6 @@ void DMA_SetChannel(int Channel, int length, int read) ...@@ -77,7 +77,6 @@ void DMA_SetChannel(int Channel, int length, int read)
read = !!read; read = !!read;
if(length > DMA_SIZE) length = DMA_SIZE; if(length > DMA_SIZE) length = DMA_SIZE;
length --; //Adjust for DMA length --; //Adjust for DMA
//__asm__ __volatile__ ("cli");
outb( cMASKPORT[chan], 0x04 | (chan & 0x3) ); // mask channel outb( cMASKPORT[chan], 0x04 | (chan & 0x3) ); // mask channel
outb( cCLEARPORT[chan], 0x00 ); outb( cCLEARPORT[chan], 0x00 );
outb( cMODEPORT[chan], (0x44 + (!read)*4) | (chan & 0x3) ); outb( cMODEPORT[chan], (0x44 + (!read)*4) | (chan & 0x3) );
...@@ -89,7 +88,6 @@ void DMA_SetChannel(int Channel, int length, int read) ...@@ -89,7 +88,6 @@ void DMA_SetChannel(int Channel, int length, int read)
outb( cMASKPORT[chan], chan & 0x3 ); // unmask channel outb( cMASKPORT[chan], chan & 0x3 ); // unmask channel
dma_addresses[chan] = (char*)DMA_ADDRESS(chan); dma_addresses[chan] = (char*)DMA_ADDRESS(chan);
dma_addresses[chan] += KERNEL_BASE; dma_addresses[chan] += KERNEL_BASE;
//__asm__ __volatile__ ("sti");
} }
/** /**
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment