2004-11-22 Joel Sherrill <joel@OARcorp.com>

PR 693/misc
	* libchip/rtc/mc146818a_ioreg.c: Disable unless on a target with
	in/outport routines.
This commit is contained in:
Jennifer Averett
2004-11-22 22:27:19 +00:00
parent 8eaa3eaf8d
commit bb15d1d2ca
2 changed files with 19 additions and 0 deletions

View File

@@ -1,3 +1,15 @@
2004-11-22 Joel Sherrill <joel@OARcorp.com>
PR 693/misc
* libchip/rtc/mc146818a_ioreg.c: Disable unless on a target with
in/outport routines.
2004-11-22 Joel Sherrill <joel@OARcorp.com>
PR 693/misc
* libchip/rtc/mc146818a_ioreg.c: Disable unless on a target with
in/outport routines.
2004-11-22 Ralf Corsepius <ralf_corsepius@rtems.org>
* aclocal/enable-itron.m4: Remove (unused).

View File

@@ -19,6 +19,11 @@
#include <rtems.h>
#include <bsp.h>
/*
* At this point, not all CPUs or BSPs have defined in/out port routines.
*/
#if defined(__i386__) || defined(__PPC__)
#if defined(inport_byte)
uint32_t mc146818a_get_register(
uint32_t ulCtrlPort,
uint8_t ucRegNum
@@ -43,3 +48,5 @@ void mc146818a_set_register(
outport_byte( ulCtrlPort, ucRegNum );
outport_byte( ulCtrlPort+1, (uint8_t)ucData );
}
#endif
#endif