This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
PowerPC - platform register overrides
- From: Gary Thomas <gary at chez-thomas dot org>
- To: eCos patches <ecos-patches at sources dot redhat dot com>
- Date: 27 Jun 2002 14:26:35 -0600
- Subject: PowerPC - platform register overrides
Index: hal/powerpc/cogent/current/ChangeLog
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/powerpc/cogent/current/ChangeLog,v
retrieving revision 1.22
diff -u -5 -p -r1.22 ChangeLog
--- hal/powerpc/cogent/current/ChangeLog 23 May 2002 23:04:17 -0000 1.22
+++ hal/powerpc/cogent/current/ChangeLog 27 Jun 2002 20:21:06 -0000
@@ -1,5 +1,9 @@
+2002-06-27 Gary Thomas <gary@chez-thomas.org>
+
+ * include/plf_regs.h: New file - platform overrides.
+
2002-05-21 Gary Thomas <gthomas@redhat.com>
* misc/gdb_module.ecm: New file - ecosconfig data used to
build ROM based GDB stubs.
Index: hal/powerpc/cogent/current/include/plf_regs.h
===================================================================
RCS file: hal/powerpc/cogent/current/include/plf_regs.h
diff -N hal/powerpc/cogent/current/include/plf_regs.h
--- hal/powerpc/cogent/current/include/plf_regs.h 1 Jan 1970 00:00:00 -0000
+++ hal/powerpc/cogent/current/include/plf_regs.h 27 Jun 2002 20:16:58 -0000
@@ -0,0 +1,60 @@
+#ifndef CYGONCE_HAL_PLF_REGS_H
+#define CYGONCE_HAL_PLF_REGS_H
+
+//==========================================================================
+//
+// plf_regs.h
+//
+// PowerPC 8xx platform CPU definitions
+//
+//==========================================================================
+//####ECOSGPLCOPYRIGHTBEGIN####
+// -------------------------------------------
+// This file is part of eCos, the Embedded Configurable Operating System.
+// Copyright (C) 2002 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.
+//
+// eCos is distributed in the hope that it will be useful, but WITHOUT ANY
+// WARRANTY; without even the implied warranty of MERCHANTABILITY or
+// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+// for more details.
+//
+// You should have received a copy of the GNU General Public License along
+// with eCos; if not, write to the Free Software Foundation, Inc.,
+// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+//
+// As a special exception, if other files instantiate templates or use macros
+// or inline functions from this file, or you compile this file and link it
+// with other works to produce a work based on this file, this file does not
+// by itself cause the resulting work to be covered by the GNU General Public
+// License. However the source code for this file must still be made available
+// in accordance with section (3) of the GNU General Public License.
+//
+// This exception does not invalidate any other reasons why a work based on
+// this file might be covered by the GNU General Public License.
+//
+// Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
+// at http://sources.redhat.com/ecos/ecos-license/
+// -------------------------------------------
+//####ECOSGPLCOPYRIGHTEND####
+//==========================================================================
+//#####DESCRIPTIONBEGIN####
+//
+// Author(s): gthomas
+// Contributors: gthomas
+// Date: 2002-06-27
+// Purpose:
+// Description: Possibly override any platform assumptions
+//
+// Usage: Included via the variant+architecture register headers:
+// ...
+//
+//
+//####DESCRIPTIONEND####
+//
+//==========================================================================
+
+#endif // CYGONCE_HAL_PLF_REGS_H
Index: hal/powerpc/fads/current/ChangeLog
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/powerpc/fads/current/ChangeLog,v
retrieving revision 1.19
diff -u -5 -p -r1.19 ChangeLog
--- hal/powerpc/fads/current/ChangeLog 23 May 2002 23:04:20 -0000 1.19
+++ hal/powerpc/fads/current/ChangeLog 27 Jun 2002 20:21:17 -0000
@@ -1,5 +1,9 @@
+2002-06-27 Gary Thomas <gary@chez-thomas.org>
+
+ * include/plf_regs.h: New file - platform overrides.
+
2002-04-11 Gary Thomas <gthomas@redhat.com>
* include/plf_cache.h: Cache control is in hal/common CDL.
2001-01-26 Jesper Skov <jskov@redhat.com>
Index: hal/powerpc/fads/current/include/plf_regs.h
===================================================================
RCS file: hal/powerpc/fads/current/include/plf_regs.h
diff -N hal/powerpc/fads/current/include/plf_regs.h
--- hal/powerpc/fads/current/include/plf_regs.h 1 Jan 1970 00:00:00 -0000
+++ hal/powerpc/fads/current/include/plf_regs.h 27 Jun 2002 20:18:12 -0000
@@ -0,0 +1,60 @@
+#ifndef CYGONCE_HAL_PLF_REGS_H
+#define CYGONCE_HAL_PLF_REGS_H
+
+//==========================================================================
+//
+// plf_regs.h
+//
+// PowerPC 8xx platform CPU definitions
+//
+//==========================================================================
+//####ECOSGPLCOPYRIGHTBEGIN####
+// -------------------------------------------
+// This file is part of eCos, the Embedded Configurable Operating System.
+// Copyright (C) 2002 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.
+//
+// eCos is distributed in the hope that it will be useful, but WITHOUT ANY
+// WARRANTY; without even the implied warranty of MERCHANTABILITY or
+// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+// for more details.
+//
+// You should have received a copy of the GNU General Public License along
+// with eCos; if not, write to the Free Software Foundation, Inc.,
+// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+//
+// As a special exception, if other files instantiate templates or use macros
+// or inline functions from this file, or you compile this file and link it
+// with other works to produce a work based on this file, this file does not
+// by itself cause the resulting work to be covered by the GNU General Public
+// License. However the source code for this file must still be made available
+// in accordance with section (3) of the GNU General Public License.
+//
+// This exception does not invalidate any other reasons why a work based on
+// this file might be covered by the GNU General Public License.
+//
+// Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
+// at http://sources.redhat.com/ecos/ecos-license/
+// -------------------------------------------
+//####ECOSGPLCOPYRIGHTEND####
+//==========================================================================
+//#####DESCRIPTIONBEGIN####
+//
+// Author(s): gthomas
+// Contributors: gthomas
+// Date: 2002-06-27
+// Purpose:
+// Description: Possibly override any platform assumptions
+//
+// Usage: Included via the variant+architecture register headers:
+// ...
+//
+//
+//####DESCRIPTIONEND####
+//
+//==========================================================================
+
+#endif // CYGONCE_HAL_PLF_REGS_H
Index: hal/powerpc/mbx/current/ChangeLog
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/powerpc/mbx/current/ChangeLog,v
retrieving revision 1.27
diff -u -5 -p -r1.27 ChangeLog
--- hal/powerpc/mbx/current/ChangeLog 23 May 2002 23:04:23 -0000 1.27
+++ hal/powerpc/mbx/current/ChangeLog 27 Jun 2002 20:21:44 -0000
@@ -1,5 +1,9 @@
+2002-06-27 Gary Thomas <gary@chez-thomas.org>
+
+ * include/plf_regs.h: New file - platform overrides.
+
2002-05-13 Jesper Skov <jskov@redhat.com>
* cdl/hal_powerpc_mbx.cdl: Removed implemntation of
CYGINT_HAL_VIRTUAL_VECTOR_SUPPORT_NOT_GUARANTEED.
Index: hal/powerpc/mbx/current/include/plf_regs.h
===================================================================
RCS file: hal/powerpc/mbx/current/include/plf_regs.h
diff -N hal/powerpc/mbx/current/include/plf_regs.h
--- hal/powerpc/mbx/current/include/plf_regs.h 1 Jan 1970 00:00:00 -0000
+++ hal/powerpc/mbx/current/include/plf_regs.h 27 Jun 2002 20:18:21 -0000
@@ -0,0 +1,60 @@
+#ifndef CYGONCE_HAL_PLF_REGS_H
+#define CYGONCE_HAL_PLF_REGS_H
+
+//==========================================================================
+//
+// plf_regs.h
+//
+// PowerPC 8xx platform CPU definitions
+//
+//==========================================================================
+//####ECOSGPLCOPYRIGHTBEGIN####
+// -------------------------------------------
+// This file is part of eCos, the Embedded Configurable Operating System.
+// Copyright (C) 2002 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.
+//
+// eCos is distributed in the hope that it will be useful, but WITHOUT ANY
+// WARRANTY; without even the implied warranty of MERCHANTABILITY or
+// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+// for more details.
+//
+// You should have received a copy of the GNU General Public License along
+// with eCos; if not, write to the Free Software Foundation, Inc.,
+// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+//
+// As a special exception, if other files instantiate templates or use macros
+// or inline functions from this file, or you compile this file and link it
+// with other works to produce a work based on this file, this file does not
+// by itself cause the resulting work to be covered by the GNU General Public
+// License. However the source code for this file must still be made available
+// in accordance with section (3) of the GNU General Public License.
+//
+// This exception does not invalidate any other reasons why a work based on
+// this file might be covered by the GNU General Public License.
+//
+// Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
+// at http://sources.redhat.com/ecos/ecos-license/
+// -------------------------------------------
+//####ECOSGPLCOPYRIGHTEND####
+//==========================================================================
+//#####DESCRIPTIONBEGIN####
+//
+// Author(s): gthomas
+// Contributors: gthomas
+// Date: 2002-06-27
+// Purpose:
+// Description: Possibly override any platform assumptions
+//
+// Usage: Included via the variant+architecture register headers:
+// ...
+//
+//
+//####DESCRIPTIONEND####
+//
+//==========================================================================
+
+#endif // CYGONCE_HAL_PLF_REGS_H
Index: hal/powerpc/mpc8xx/current/ChangeLog
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/powerpc/mpc8xx/current/ChangeLog,v
retrieving revision 1.15
diff -u -5 -p -r1.15 ChangeLog
--- hal/powerpc/mpc8xx/current/ChangeLog 20 Jun 2002 23:10:07 -0000 1.15
+++ hal/powerpc/mpc8xx/current/ChangeLog 27 Jun 2002 20:22:32 -0000
@@ -1,5 +1,10 @@
+2002-06-27 Gary Thomas <gary@chez-thomas.org>
+
+ * include/var_regs.h: Allow platform to override certain assumptions,
+ e.g. the IMMR base, via <plf_regs.h>.
+
2002-06-20 Gary Thomas <gary@chez-thomas.org>
* include/var_regs.h (MI_RPN_LPS): Fix define.
2002-05-03 Gary Thomas <gthomas@redhat.com>
Index: hal/powerpc/mpc8xx/current/include/var_regs.h
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/powerpc/mpc8xx/current/include/var_regs.h,v
retrieving revision 1.6
diff -u -5 -p -r1.6 var_regs.h
--- hal/powerpc/mpc8xx/current/include/var_regs.h 20 Jun 2002 23:10:10 -0000 1.6
+++ hal/powerpc/mpc8xx/current/include/var_regs.h 27 Jun 2002 20:23:34 -0000
@@ -42,11 +42,11 @@
//####ECOSGPLCOPYRIGHTEND####
//==========================================================================
//#####DESCRIPTIONBEGIN####
//
// Author(s): jskov
-// Contributors: jskov
+// Contributors: jskov, gthomas
// Date: 2000-02-04
// Purpose: Provide MPC8xx register definitions
// Description: Provide MPC8xx register definitions
// The short difinitions (sans CYGARC_REG_) are exported only
// if CYGARC_HAL_COMMON_EXPORT_CPU_MACROS is defined.
@@ -57,10 +57,12 @@
//
//####DESCRIPTIONEND####
//
//==========================================================================
+#include <plf_regs.h>
+
//--------------------------------------------------------------------------
// Instruction cache control.
#define CYGARC_REG_IC_CST 560
#define CYGARC_REG_IC_ADR 561
#define CYGARC_REG_IC_DAT 562
@@ -191,11 +193,13 @@
#define CYGARC_REG_IMMR 638 // internal memory map base register
#define CYGARC_REG_IMMR_BASEMASK 0xffff0000 // imm base location mask (rw)
#define CYGARC_REG_IMMR_PARTNUM 0x0000ff00 // part number mask (ro)
#define CYGARC_REG_IMMR_MASKNUM 0x000000ff // mask number mask (ro)
+#ifndef CYGARC_REG_IMM_BASE // Can be defined by platform
#define CYGARC_REG_IMM_BASE 0xfa200000 // the internal memory map base
+#endif
// CP Microcode Revision Number
#define CYGARC_REG_REV_NUM (CYGARC_REG_IMM_BASE + 0x3cb0)
// system protection control
Index: hal/powerpc/viper/current/ChangeLog
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/powerpc/viper/current/ChangeLog,v
retrieving revision 1.8
diff -u -5 -p -r1.8 ChangeLog
--- hal/powerpc/viper/current/ChangeLog 25 Jun 2002 23:20:45 -0000 1.8
+++ hal/powerpc/viper/current/ChangeLog 27 Jun 2002 20:22:42 -0000
@@ -1,5 +1,9 @@
+2002-06-27 Gary Thomas <gary@chez-thomas.org>
+
+ * include/plf_regs.h: New file - platform overrides.
+
2002-06-25 Gary Thomas <gary@chez-thomas.org>
* src/redboot_linux_exec.c:
* cdl/hal_powerpc_viper.cdl: Add Linux boot (exec) command.
Index: hal/powerpc/viper/current/include/plf_regs.h
===================================================================
RCS file: hal/powerpc/viper/current/include/plf_regs.h
diff -N hal/powerpc/viper/current/include/plf_regs.h
--- hal/powerpc/viper/current/include/plf_regs.h 1 Jan 1970 00:00:00 -0000
+++ hal/powerpc/viper/current/include/plf_regs.h 27 Jun 2002 20:16:26 -0000
@@ -0,0 +1,60 @@
+#ifndef CYGONCE_HAL_PLF_REGS_H
+#define CYGONCE_HAL_PLF_REGS_H
+
+//==========================================================================
+//
+// plf_regs.h
+//
+// PowerPC 8xx platform CPU definitions
+//
+//==========================================================================
+//####ECOSGPLCOPYRIGHTBEGIN####
+// -------------------------------------------
+// This file is part of eCos, the Embedded Configurable Operating System.
+// Copyright (C) 2002 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.
+//
+// eCos is distributed in the hope that it will be useful, but WITHOUT ANY
+// WARRANTY; without even the implied warranty of MERCHANTABILITY or
+// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+// for more details.
+//
+// You should have received a copy of the GNU General Public License along
+// with eCos; if not, write to the Free Software Foundation, Inc.,
+// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+//
+// As a special exception, if other files instantiate templates or use macros
+// or inline functions from this file, or you compile this file and link it
+// with other works to produce a work based on this file, this file does not
+// by itself cause the resulting work to be covered by the GNU General Public
+// License. However the source code for this file must still be made available
+// in accordance with section (3) of the GNU General Public License.
+//
+// This exception does not invalidate any other reasons why a work based on
+// this file might be covered by the GNU General Public License.
+//
+// Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
+// at http://sources.redhat.com/ecos/ecos-license/
+// -------------------------------------------
+//####ECOSGPLCOPYRIGHTEND####
+//==========================================================================
+//#####DESCRIPTIONBEGIN####
+//
+// Author(s): gthomas
+// Contributors: gthomas
+// Date: 2002-06-27
+// Purpose:
+// Description: Possibly override any platform assumptions
+//
+// Usage: Included via the variant+architecture register headers:
+// ...
+//
+//
+//####DESCRIPTIONEND####
+//
+//==========================================================================
+
+#endif // CYGONCE_HAL_PLF_REGS_H