forked from Imagelibrary/rtems
2005-04-26 Joel Sherrill <joel@OARcorp.com>
* startup/alloc360.c: Eliminate warnings.
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2005-04-26 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
|
* startup/alloc360.c: Eliminate warnings.
|
||||||
|
|
||||||
2005-03-11 Joel Sherrill <joel@OARcorp.com>
|
2005-03-11 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
* startup/init68360.c: Add _RomBase declaration.
|
* startup/init68360.c: Add _RomBase declaration.
|
||||||
|
|||||||
@@ -23,14 +23,14 @@
|
|||||||
* - Dual-Port RAM section 2
|
* - Dual-Port RAM section 2
|
||||||
*/
|
*/
|
||||||
static struct {
|
static struct {
|
||||||
char *base;
|
uint8_t *base;
|
||||||
unsigned int size;
|
uint32_t size;
|
||||||
unsigned int used;
|
uint32_t used;
|
||||||
} bdregions[] = {
|
} bdregions[] = {
|
||||||
{ (char *)&m360.dpram1[0], sizeof m360.dpram1, 0 },
|
{ (uint8_t *)&m360.dpram1[0], sizeof m360.dpram1, 0 },
|
||||||
{ (char *)&m360.dpram3[0], sizeof m360.dpram3, 0 },
|
{ (uint8_t *)&m360.dpram3[0], sizeof m360.dpram3, 0 },
|
||||||
{ (char *)&m360.dpram0[0], sizeof m360.dpram0, 0 },
|
{ (uint8_t *)&m360.dpram0[0], sizeof m360.dpram0, 0 },
|
||||||
{ (char *)&m360.dpram2[0], sizeof m360.dpram2, 0 },
|
{ (uint8_t *)&m360.dpram2[0], sizeof m360.dpram2, 0 },
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -57,7 +57,7 @@ M360AllocateBufferDescriptors (int count)
|
|||||||
* less dual-port RAM.
|
* less dual-port RAM.
|
||||||
*/
|
*/
|
||||||
if (bdregions[i].used == 0) {
|
if (bdregions[i].used == 0) {
|
||||||
volatile unsigned char *cp = bdregions[i].base;
|
volatile uint8_t *cp = bdregions[i].base;
|
||||||
*cp = 0xAA;
|
*cp = 0xAA;
|
||||||
if (*cp != 0xAA) {
|
if (*cp != 0xAA) {
|
||||||
bdregions[i].used = bdregions[i].size;
|
bdregions[i].used = bdregions[i].size;
|
||||||
|
|||||||
Reference in New Issue
Block a user