This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
i386: allow platforms to override HAL_MEM_REAL_REGION_TOP
- From: David Vrabel <dvrabel at arcom dot com>
- To: eCos Patches <ecos-patches at ecos dot sourceware dot org>
- Date: Thu, 21 Apr 2005 15:47:12 +0100
- Subject: i386: allow platforms to override HAL_MEM_REAL_REGION_TOP
Hi,
This patch allows i386 platforms to provide their own
HAL_MEM_REAL_REGION_TOP. Handy for i386 platforms that don't have a BIOS.
David Vrabel
--
David Vrabel, Design Engineer
Arcom, Clifton Road Tel: +44 (0)1223 411200 ext. 3233
Cambridge CB1 7EA, UK Web: http://www.arcom.com/
%status
pending
%patch
Index: packages/hal/i386/arch/current/ChangeLog
===================================================================
--- packages/hal/i386/arch/current/ChangeLog.orig 2005-04-21 15:12:22.000000000 +0100
+++ packages/hal/i386/arch/current/ChangeLog 2005-04-21 15:14:13.000000000 +0100
@@ -1,3 +1,9 @@
+2005-04-21 David Vrabel <dvrabel@arcom.com>
+
+ * include/hal_arch.h: Allow platforms to provide their own
+ HAL_MEM_REAL_REGION_TOP macro. Useful for platforms without a
+ BIOS.
+
2005-04-17 Andrew Lunn <andrew.lunn@ascom.ch>
* cdl/hal_i386.cdl:
Index: packages/hal/i386/arch/current/include/hal_arch.h
===================================================================
--- packages/hal/i386/arch/current/include/hal_arch.h.orig 2005-04-21 14:44:42.000000000 +0100
+++ packages/hal/i386/arch/current/include/hal_arch.h 2005-04-21 14:51:36.000000000 +0100
@@ -372,12 +372,15 @@
#if CYGINT_HAL_I386_MEM_REAL_REGION_TOP
+#ifndef HAL_MEM_REAL_REGION_TOP
externC cyg_uint8 *hal_i386_mem_real_region_top( cyg_uint8 *_regionend_ );
# define HAL_MEM_REAL_REGION_TOP( _regionend_ ) \
hal_i386_mem_real_region_top( _regionend_ )
#endif
+#endif
+
//--------------------------------------------------------------------------
// Macros for switching context between two eCos instances (jump from
// code in ROM to code in RAM or vice versa).