diff options
Diffstat (limited to 'c/src/lib/libcpu')
-rw-r--r-- | c/src/lib/libcpu/powerpc/ChangeLog | 5 | ||||
-rw-r--r-- | c/src/lib/libcpu/powerpc/mpc8260/cpm/dpram.c | 10 | ||||
-rw-r--r-- | c/src/lib/libcpu/powerpc/mpc8xx/cpm/dpram.c | 10 |
3 files changed, 15 insertions, 10 deletions
diff --git a/c/src/lib/libcpu/powerpc/ChangeLog b/c/src/lib/libcpu/powerpc/ChangeLog index 8e75a344ae..8921263ec7 100644 --- a/c/src/lib/libcpu/powerpc/ChangeLog +++ b/c/src/lib/libcpu/powerpc/ChangeLog @@ -1,3 +1,8 @@ +2005-02-11 Ralf Corsepius <ralf.corsepius@rtems.org> + + * mpc8260/cpm/dpram.c, mpc8xx/cpm/dpram.c: + Remove local rtems_panic, use #include <rtems/error.h>. + 2005-02-10 Ralf Corsepius <ralf.corsepius@rtems.org> * mpc505/vectors/vectors.S, ppc403/vectors/vectors.S: diff --git a/c/src/lib/libcpu/powerpc/mpc8260/cpm/dpram.c b/c/src/lib/libcpu/powerpc/mpc8260/cpm/dpram.c index 3136098cd8..8e97a6d4e6 100644 --- a/c/src/lib/libcpu/powerpc/mpc8260/cpm/dpram.c +++ b/c/src/lib/libcpu/powerpc/mpc8260/cpm/dpram.c @@ -18,11 +18,11 @@ */ #include <rtems.h> +#include <rtems/error.h> + #include <mpc8260.h> #include <mpc8260/cpm.h> -void rtems_panic(char *, int); - /* * Allocation order: * - Dual-Port RAM section 0 @@ -31,9 +31,9 @@ void rtems_panic(char *, int); * - Dual-Port RAM section 3 */ static struct { - uint8_t *base; - unsigned int size; - unsigned int used; + char *base; + size_t size; + unsigned int used; } dpram_regions[] = { /* { (char *)&m8260.dpram0[0], sizeof m8260.dpram0, 0 },*/ { (char *)&m8260.dpram1[0], sizeof m8260.dpram1, 0 }, diff --git a/c/src/lib/libcpu/powerpc/mpc8xx/cpm/dpram.c b/c/src/lib/libcpu/powerpc/mpc8xx/cpm/dpram.c index e4034af202..77b8a448a8 100644 --- a/c/src/lib/libcpu/powerpc/mpc8xx/cpm/dpram.c +++ b/c/src/lib/libcpu/powerpc/mpc8xx/cpm/dpram.c @@ -14,11 +14,11 @@ */ #include <rtems.h> +#include <rtems/error.h> + #include <mpc8xx.h> #include <mpc8xx/cpm.h> -extern void rtems_panic(char *, int); - /* * Allocation order: * - Dual-Port RAM section 0 @@ -28,9 +28,9 @@ extern void rtems_panic(char *, int); * - Dual-Port RAM section 4 */ static struct { - uint8_t *base; - unsigned int size; - unsigned int used; + char *base; + size_t size; + unsigned int used; } dpram_regions[] = { { (char *)&m8xx.dpram0[0], sizeof m8xx.dpram0, 0 }, { (char *)&m8xx.dpram1[0], sizeof m8xx.dpram1, 0 }, |