public inbox for ecos-patches@sourceware.org
 help / color / mirror / Atom feed
* PowerPC memory descriptor
@ 2009-08-22 22:10 Edgar Grimberg
  0 siblings, 0 replies; only message in thread
From: Edgar Grimberg @ 2009-08-22 22:10 UTC (permalink / raw)
  To: ecos-patches

[-- Attachment #1: Type: text/plain, Size: 330 bytes --]

Hi,

Attached you can find the patch to declare two new memory descriptors,
used for setting up memory areas with MMU . This can be used in the
variant HALs in cyg_hal_map_memory function.

Regards,
Edgar

-- 
Edgar Grimberg
System Developer
Zylin AS
ZY1000 JTAG Debugger http://www.zylin.com/zy1000.html
Phone: (+47) 51 63 25 00

[-- Attachment #2: patch.txt --]
[-- Type: text/plain, Size: 2301 bytes --]

### Eclipse Workspace Patch 1.0
#P ecos
Index: packages/hal/powerpc/arch/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/powerpc/arch/current/ChangeLog,v
retrieving revision 1.75
diff -u -r1.75 ChangeLog
--- packages/hal/powerpc/arch/current/ChangeLog	7 Aug 2009 09:22:55 -0000	1.75
+++ packages/hal/powerpc/arch/current/ChangeLog	22 Aug 2009 22:08:12 -0000
@@ -1,3 +1,10 @@
+2009-08-22  Edgar Grimberg  <edgar.grimberg@zylin.com>
+	
+	* include/hal_mem.h: Add 2 more memory descriptors: write through and 
+	memory coherence, as defined in: www.freescale.com/files/product/doc/MPCFPE32B.pdf
+	(Programming Environments Manual for 32-Bit Implementations of the 
+	PowerPCŞ Architecture) chapter 5.2.4.1 Memory/Cache Access Modes 
+
 2009-08-07  Nick Garnett  <nickg@ecoscentric.com>
 
 	* cdl/hal_powerpc.cdl: Add CYGHWR_HAL_POWERPC_BOOK_E_FIXED_VECTORS
Index: packages/hal/powerpc/arch/current/include/hal_mem.h
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/powerpc/arch/current/include/hal_mem.h,v
retrieving revision 1.5
diff -u -r1.5 hal_mem.h
--- packages/hal/powerpc/arch/current/include/hal_mem.h	29 Jan 2009 17:49:33 -0000	1.5
+++ packages/hal/powerpc/arch/current/include/hal_mem.h	22 Aug 2009 22:08:12 -0000
@@ -83,6 +83,8 @@
 
 #define CYGARC_MEMDESC_CI       1       // cache inhibit
 #define CYGARC_MEMDESC_GUARDED  2       // guarded
+#define CYGARC_MEMDESC_WRITE_THROUGH 	4
+#define CYGARC_MEMDESC_MEMORY_COHERENCE 8
 
 // these macros should ease that task, and ease any future extension of the
 // structure (physical == virtual addresses):
@@ -101,6 +103,12 @@
 #define CYGARC_MEMDESC_NOCACHEGUARD( _va_, _sz_ ) \
         { (_va_), (_va_), (_sz_), CYGARC_MEMDESC_GUARDED|CYGARC_MEMDESC_CI }
 
+#define CYGARC_MEMDESC_CACHE_WRITE_THROUGH( _va_, _sz_ ) \
+        { (_va_), (_va_), (_sz_), CYGARC_MEMDESC_WRITE_THROUGH }
+
+#define CYGARC_MEMDESC_CACHE_MEMORY_COHERENCE( _va_, _sz_ ) \
+        { (_va_), (_va_), (_sz_), CYGARC_MEMDESC_MEMORY_COHERENCE }
+
 #define CYGARC_MEMDESC_TABLE_END      {0, 0, 0, 0}
 #define CYGARC_MEMDESC_TABLE          cyg_memdesc_t cyg_hal_mem_map[]
 #define CYGARC_MEMDESC_EMPTY_TABLE    { CYGARC_MEMDESC_TABLE_END }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-08-22 22:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-22 22:10 PowerPC memory descriptor Edgar Grimberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).