From 33cb8bf64d7b7551ea3a2e7ced5d4b56cd32d6db Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 17 Feb 2014 11:40:18 +0100 Subject: score: Add RTEMS_FATAL_SOURCE_BSP Merge RTEMS_FATAL_SOURCE_BSP_GENERIC and RTEMS_FATAL_SOURCE_BSP_SPECIFIC into new fatal source RTEMS_FATAL_SOURCE_BSP. This makes it easier to figure out the code position given a fatal source and code. --- c/src/lib/libbsp/powerpc/gen5200/tod/pcf8563.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'c/src/lib/libbsp/powerpc/gen5200/tod') diff --git a/c/src/lib/libbsp/powerpc/gen5200/tod/pcf8563.c b/c/src/lib/libbsp/powerpc/gen5200/tod/pcf8563.c index 2f38ea86fb..0b584a013b 100644 --- a/c/src/lib/libbsp/powerpc/gen5200/tod/pcf8563.c +++ b/c/src/lib/libbsp/powerpc/gen5200/tod/pcf8563.c @@ -41,6 +41,7 @@ */ #include +#include #include #include #include "../tod/pcf8563.h" @@ -185,7 +186,7 @@ pcf8563_set_time(int minor, const rtems_time_of_day *time) addr = RTC_Table[minor].ulDataPort; if ((time->year >= 2100) || (time->year < 1900)) { - mpc5200_fatal(MPC5200_FATAL_PCF8563_INVALID_YEAR); + bsp_fatal(MPC5200_FATAL_PCF8563_INVALID_YEAR); } info[0] = PCF8563_SECOND_ADR; info[1 + PCF8563_YEAR_ADR -PCF8563_SECOND_ADR] = To_BCD(time->year % 100); -- cgit v1.2.3