This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
PowerPC - Support non 1-1 mapped memory
- From: Gary Thomas <gary at mlbassoc dot com>
- To: eCos patches <ecos-patches at sources dot redhat dot com>
- Date: 03 Jan 2003 20:37:56 -0700
- Subject: PowerPC - Support non 1-1 mapped memory
Used to get uncached PCI window
Index: hal/powerpc/arch/current/ChangeLog
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/powerpc/arch/current/ChangeLog,v
retrieving revision 1.46
diff -u -5 -p -r1.46 ChangeLog
--- hal/powerpc/arch/current/ChangeLog 24 Dec 2002 16:04:18 -0000 1.46
+++ hal/powerpc/arch/current/ChangeLog 3 Jan 2003 14:49:42 -0000
@@ -1,5 +1,10 @@
+2003-01-03 Gary Thomas <gary@mlbassoc.com>
+
+ * include/hal_mem.h (CYGARC_MEMDESC_NOCACHE_PA): New macro which
+ allows defining non-cached space with non 1-1 mapping.
+
2002-12-24 Gary Thomas <gary@mlbassoc.com>
* src/vectors.S:
* cdl/hal_powerpc.cdl: Add option to allow ROM code to simply
jump to the startup code, instead of using an absolute address.
Index: hal/powerpc/arch/current/include/hal_mem.h
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/powerpc/arch/current/include/hal_mem.h,v
retrieving revision 1.3
diff -u -5 -p -r1.3 hal_mem.h
--- hal/powerpc/arch/current/include/hal_mem.h 23 May 2002 23:04:13 -0000 1.3
+++ hal/powerpc/arch/current/include/hal_mem.h 3 Jan 2003 14:49:42 -0000
@@ -10,10 +10,11 @@
//=============================================================================
//####ECOSGPLCOPYRIGHTBEGIN####
// -------------------------------------------
// This file is part of eCos, the Embedded Configurable Operating System.
// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
+// Copyright (C) 2003 Gary Thomas
//
// eCos is free software; you can redistribute it and/or modify it under
// the terms of the GNU General Public License as published by the Free
// Software Foundation; either version 2 or (at your option) any later version.
//
@@ -90,10 +91,13 @@ externC cyg_memdesc_t cyg_hal_mem_map[];
#define CYGARC_MEMDESC_CACHE( _va_, _sz_ ) \
{ (_va_), (_va_), (_sz_), 0 }
#define CYGARC_MEMDESC_NOCACHE( _va_, _sz_ ) \
{ (_va_), (_va_), (_sz_), CYGARC_MEMDESC_CI }
+
+#define CYGARC_MEMDESC_NOCACHE_PA( _va_, _pa_, _sz_ ) \
+ { (_va_), (_pa_), (_sz_), CYGARC_MEMDESC_CI }
#define CYGARC_MEMDESC_CACHEGUARD( _va_, _sz_ ) \
{ (_va_), (_va_), (_sz_), CYGARC_MEMDESC_GUARDED }
#define CYGARC_MEMDESC_NOCACHEGUARD( _va_, _sz_ ) \
--
------------------------------------------------------------
Gary Thomas |
MLB Associates | Consulting for the
+1 (970) 229-1963 | Embedded world
http://www.mlbassoc.com/ |
email: <gary@mlbassoc.com> |
gpg: http://www.chez-thomas.org/gary/gpg_key.asc
------------------------------------------------------------