summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libcpu/powerpc/mpc8260/cpm
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libcpu/powerpc/mpc8260/cpm')
-rw-r--r--c/src/lib/libcpu/powerpc/mpc8260/cpm/cp.c4
-rw-r--r--c/src/lib/libcpu/powerpc/mpc8260/cpm/dpram.c10
2 files changed, 7 insertions, 7 deletions
diff --git a/c/src/lib/libcpu/powerpc/mpc8260/cpm/cp.c b/c/src/lib/libcpu/powerpc/mpc8260/cpm/cp.c
index 7f56abff7e..b8adf9feaf 100644
--- a/c/src/lib/libcpu/powerpc/mpc8260/cpm/cp.c
+++ b/c/src/lib/libcpu/powerpc/mpc8260/cpm/cp.c
@@ -2,7 +2,7 @@
* cp.c
*
* MPC8xx CPM RISC Communication Processor routines.
- *
+ *
* Based on code (alloc860.c in eth_comm port) by
* Jay Monkman (jmonkman@frasca.com),
* which, in turn, is based on code by
@@ -23,7 +23,7 @@
void m8xx_cp_execute_cmd( uint32_t command )
{
uint16_t lvl;
-
+
rtems_interrupt_disable(lvl);
while (m8260.cpcr & M8260_CR_FLG) {
continue;
diff --git a/c/src/lib/libcpu/powerpc/mpc8260/cpm/dpram.c b/c/src/lib/libcpu/powerpc/mpc8260/cpm/dpram.c
index b38a63ee16..4e6202ed79 100644
--- a/c/src/lib/libcpu/powerpc/mpc8260/cpm/dpram.c
+++ b/c/src/lib/libcpu/powerpc/mpc8260/cpm/dpram.c
@@ -49,16 +49,16 @@ m8xx_dpram_allocate( unsigned int byte_count )
unsigned int i;
ISR_Level level;
void *blockp = NULL;
-
+
byte_count = (byte_count + 3) & ~0x3;
-
+
/*
* Running with interrupts disabled is usually considered bad
* form, but this routine is probably being run as part of an
* initialization sequence so the effect shouldn't be too severe.
*/
_ISR_Disable (level);
-
+
for ( i = 0; i < NUM_DPRAM_REGIONS; i++ ) {
/*
* Verify that the region is available for use.
@@ -84,9 +84,9 @@ m8xx_dpram_allocate( unsigned int byte_count )
break;
}
}
-
+
_ISR_Enable(level);
-
+
if (blockp == NULL)
rtems_panic("Can't allocate %d bytes of dual-port RAM.\n", byte_count);
return blockp;