Commit Graph

7994 Commits

Author SHA1 Message Date
Joel Sherrill
8ca2e5b778 2003-03-25 Till Straumann <strauman@slac.stanford.edu>
PR 349/bsps
	* shared/include/cpuIdent.c: Readd PPC604r CPU.
2003-03-25 16:43:47 +00:00
Ralf Corsepius
55837f7e4d Merger from rtems-4-6-branch. 2003-03-25 08:55:26 +00:00
Ralf Corsepius
0b22af60bb Merger from rtems-4-6-branch. 2003-03-25 08:50:16 +00:00
Ralf Corsepius
24af9a0677 Merger from rtems-4-6-branch. 2003-03-25 08:30:09 +00:00
Ralf Corsepius
db3e91f2db Merger from rtems-4-6-branch. 2003-03-25 07:20:58 +00:00
Joel Sherrill
81aa167d52 2003-03-24 Joel Sherrill <joel@OARcorp.com>
PR 378/bsps
	* bsp_specs: Did not include ecrtn in endfile sections. Reported
	and fixed by elkolli@crf.canon.fr.
2003-03-24 17:17:41 +00:00
Joel Sherrill
818ab36a1c 2003-03-24 Joel Sherrill <joel@OARcorp.com>
* direct.t, sample.t, utils.t: Significantly updated.
2003-03-24 16:40:49 +00:00
Ralf Corsepius
b2eb323d42 Merger from rtems-4-6-branch. 2003-03-24 10:57:03 +00:00
Ralf Corsepius
f62f49e3f3 Merger from rtems-4-6-branch. 2003-03-24 10:56:35 +00:00
Ralf Corsepius
0b882b7f91 Merger from rtems-4-6-branch. 2003-03-24 10:29:25 +00:00
Ralf Corsepius
dbe9b0ca1c Merger from rtems-4-6-branch. 2003-03-24 10:23:16 +00:00
Ralf Corsepius
6285bc89f3 Merger from rtems-4-6-branch. 2003-03-24 10:11:21 +00:00
Ralf Corsepius
dc135ad136 Merger from rtems-4-6-branch. 2003-03-24 10:11:20 +00:00
Ralf Corsepius
434b8ea114 Merger from rtems-4-6-branch. 2003-03-24 09:53:09 +00:00
Joel Sherrill
bef4fddd1d 2003-03-18 Till Straumann <strauman@slac.stanford.edu>
PR 356/bsps
	* sys/linker_set.h: This patch makes RTEMS/PowerPC eabi compliant.
	Declare all linker-script defined addresses as
	variables of unknown size and not as short objects
	like 'int', 'void*' etc.  Since only addresses are used and never those
	variable's values, the type used in a declaration is not important.
2003-03-18 20:42:51 +00:00
Joel Sherrill
73e3614f9e 2003-03-18 Till Straumann <strauman@slac.stanford.edu>
PR 356/bsps
	* custom/mvme2307.cfg: This patch makes RTEMS/PowerPC eabi compliant.
	Enable EABI by adding -meabi -msdata=eabi CFLAGS.
2003-03-18 19:26:14 +00:00
Joel Sherrill
66565bb217 2003-03-18 Till Straumann <strauman@slac.stanford.edu>
PR 356/bsps
	* src/threadhandlerc: This patch makes RTEMS/PowerPC eabi compliant.
	Let Thread_Handler verify that _init/_main are non-NULL
	before calling them (gives the linker script/user more
	freedom to handle special cases).
2003-03-18 19:24:13 +00:00
Joel Sherrill
ab504d3415 2003-03-18 Till Straumann <strauman@slac.stanford.edu>
PR 356/bsps
	* cpu.c: This patch makes RTEMS/PowerPC eabi compliant.
2003-03-18 19:22:33 +00:00
Joel Sherrill
64f8ae44cc 2003-03-18 Till Straumann <strauman@slac.stanford.edu>
PR 356/bsps
	This patch makes RTEMS/powerpc/shared EABI compliant.
	* irq/irq_init.c, start/Makefile.am, start/start.S, startup/bspstart.c,
	startup/pgtbl_setup.c, vectors/vectors.h, vectors/vectors_init.c:
	zero_bss() should clear not only bss but sbss and sbss2
	also (this is probably a bugfix, as sbss/sbss2 are
	probably used even if -msdata=eabi is not specified).
	* start/rtems_crti.S: New file which must
	be linked immediately after ecrti.o. rtems_crti.o contains
	a code snippet who lets __init() return immediately. Also,
	a new entry point '_init' to the C++ Ctors is generated
	for use by the RTEMS Thread_Handler.
2003-03-18 19:20:55 +00:00
Joel Sherrill
c4561f251d 2003-03-18 Till Straumann <strauman@slac.stanford.edu>
PR 356/bsps
	* bsp_specs, start/Makefile.am, startup/linkcmds
	This patch makes RTEMS/powerpc/shared EABI compliant.
	Declare all linker-script defined addresses as
	variables of unknown size and not as short objects
	like 'int', 'void*' etc.
	This prevents the compiler from generating a relocation
	who assumes the existence of an __rtems_end object in
	one of the short data areas (which would result in a
	linker error).
2003-03-18 18:16:43 +00:00
Joel Sherrill
c599ce7b57 2003-03-18 Joel Sherrill <joel@OARcorp.com>
* comm/GDB.HOWTO: Updated.
2003-03-18 14:24:52 +00:00
Ralf Corsepius
69b742ee43 Merger from rtems-4-6-branch. 2003-03-11 12:40:35 +00:00
Ralf Corsepius
5ba8f3067b Merger from rtems-4-6-branch. 2003-03-11 12:12:22 +00:00
Ralf Corsepius
ec0a3462b0 Merger from rtems-4-6-branch. 2003-03-11 11:47:17 +00:00
Ralf Corsepius
f418d6e270 Merger from rtems-4-6-branch. 2003-03-11 11:16:34 +00:00
Ralf Corsepius
6600424de4 Merger from rtems-4-6-branch. 2003-03-11 11:00:20 +00:00
Ralf Corsepius
7a97f26d80 Merger from rtems-4-6-branch. 2003-03-11 10:43:44 +00:00
Ralf Corsepius
afaa498da0 Merger from rtems-4-6-branch. 2003-03-11 09:42:13 +00:00
Ralf Corsepius
3c55718aca Merger from rtems-4-6-branch. 2003-03-11 09:06:13 +00:00
Ralf Corsepius
9b353a5013 Merger from rtems-4-6-branch. 2003-03-11 08:47:30 +00:00
Ralf Corsepius
d2c26e4bad Merger from rtems-4-6-branch. 2003-03-11 08:10:00 +00:00
Ralf Corsepius
6c63598f9f Fix CVS-Ids 2003-03-11 07:56:06 +00:00
Ralf Corsepius
89b51f4795 Merger from rtems-4-6-branch 2003-03-10 16:46:32 +00:00
Ralf Corsepius
5372f167a9 Merger from rtems-4-6-branch. 2003-03-04 06:55:35 +00:00
Joel Sherrill
68d4f9e203 2003-02-28 Joel Sherrill <joel@OARcorp.com>
* .cvsignore: Add newly generated .texi files.
2003-02-28 14:09:32 +00:00
Ralf Corsepius
490a605f28 Merger from rtems-4-6-branch. 2003-02-28 08:25:40 +00:00
Ralf Corsepius
83eda9b994 Merger from rtems-4-6-branch. 2003-02-28 08:06:58 +00:00
Ralf Corsepius
f0daa4c4eb Remove corrupted ChangeLog entry. 2003-02-28 08:01:39 +00:00
Ralf Corsepius
769f47ae8a Merger from rtems-4-6-branch. 2003-02-28 07:29:21 +00:00
Ralf Corsepius
9c59c2d953 Merger from rtems-4-6-branch. 2003-02-28 07:08:21 +00:00
Ralf Corsepius
b9184faa30 Merger from rtems-4-6-branch. 2003-02-28 06:57:04 +00:00
Ralf Corsepius
309a9dc8db Merger from rtems-4-6-branch. 2003-02-28 06:50:36 +00:00
Joel Sherrill
a696c7ae9e 2003-02-26 RTEMS
* setup.def: Updated gdb revision to -2 so arm will build and
	to fix psim build problem on NetBSD.
	* gcc3newlib/gccnewlib.add: Ignore dependency on GNAT RPM since
	RedHat 7.3 doesn't have it available.  Maybe later.
	* gdb/Makefile.am: Cleanup way the RPM_SPECS_DATA variable is built.
2003-02-26 18:05:17 +00:00
Joel Sherrill
cd228d76ad 2003-02-20 Till Straumann <strauman@slac.stanford.edu>
PR 349/bsps
	* rtems/powerpc/registers.h: Add definitions for HID1 and DABR SPRs.
2003-02-20 22:11:46 +00:00
Joel Sherrill
8860f103a5 Patch against RTEMS-ss-20030128
Author: Till Straumann <strauman@slac.stanford.edu>

2003/2/11

This patch addresses the following issues:
2003-02-20	Till Straumann <strauman@slac.stanford.edu>

	PR 349/bsps
	* src/mount.c, src/privateenv.c:
  	    - mount() bugfix: allocated 'loc' node must be released if
			mount fails due to missing node_type_h
	    - silence compiler warning about improper pointer type

Index: cpukit/libcsupport/src/mount.c
===================================================================
RCS file: /afs/slac/g/spear/cvsrep/rtems/src-20030128/cpukit/libcsupport/src/mount.c,v
retrieving revision 1.1.1.2
diff -c -r1.1.1.2 mount.c
*** cpukit/libcsupport/src/mount.c	29 Jan 2003 22:57:19 -0000	1.1.1.2
--- cpukit/libcsupport/src/mount.c	7 Feb 2003 20:47:49 -0000
***************
*** 142,147 ****
--- 142,149 ----
              mount_point, RTEMS_LIBIO_PERMS_RWX, &loc, TRUE ) == -1 )
        goto cleanup_and_bail;

+     loc_to_free = &loc;
+
      /*
       * Test for node_type_h
       */
***************
*** 155,161 ****
       *  Test to see if it is a directory
       */

-     loc_to_free = &loc;
      if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) {
        errno = ENOTDIR;
        goto cleanup_and_bail;
--- 157,162 ----
Index: cpukit/libcsupport/src/privateenv.c
===================================================================
RCS file: /afs/slac/g/spear/cvsrep/rtems/src-20030128/cpukit/libcsupport/src/privateenv.c,v
retrieving revision 1.1.1.3
diff -c -r1.1.1.3 privateenv.c
*** cpukit/libcsupport/src/privateenv.c	29 Jan 2003 22:57:20 -0000	1.1.1.3
--- cpukit/libcsupport/src/privateenv.c	30 Jan 2003 18:01:40 -0000
***************
*** 65,71 ****
     tmp->refcnt = 1;
  #endif

!    sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,free_user_env);
     if (sc != RTEMS_SUCCESSFUL) {
  	 /* don't use free_user_env because the pathlocs are
  	  * not initialized yet
--- 65,71 ----
     tmp->refcnt = 1;
  #endif

!    sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,(void(*)(void *))free_user_env);
     if (sc != RTEMS_SUCCESSFUL) {
  	 /* don't use free_user_env because the pathlocs are
  	  * not initialized yet
2003-02-20 22:09:50 +00:00
Joel Sherrill
d49389adb9 2003-02-20 Till Straumann <strauman@slac.stanford.edu>
PR 349/bsps
	* mpc6xx/exceptions/raw_exception.c, mpc6xx/mmu/bat.c,
	mpc6xx/mmu/pte121.c, shared/include/cpuIdent.c,
	shared/include/cpuIdent.h, shared/src/Makefile.am, shared/src/stack.c,
	shared/src/stackTrace.h, powerpc/registers.h:
	  - undo improper 'fix' who broke mpc604r identification
	  - fix: 7400 identification PVR value was wrong
	  - enhance 'setdbat()' to switch OFF a given BAT if called with 0 size
	  - fix: page table support bugfix
	  - enhancement: provide routines to take and print stack trace
	    snapshots
	  - add definitions for HID1 and DABR SPRs
2003-02-20 22:07:22 +00:00
Joel Sherrill
f3ceb2bf62 2003-02-20 Till Straumann <strauman@slac.stanford.edu>
PR 349/bsps
	* configure.ac: Add glue to the powerpc/shared BSP
	to use the vmeUniverse VME-PCI bridge driver.
2003-02-20 21:59:12 +00:00
Joel Sherrill
8f8147612f 2003-02-20 Till Straumann <strauman@slac.stanford.edu>
PR 349/bsps
	* startup/Makefile.am, startup/linkcmds startup/Makefile.am,
	startup/bspstart.c, startup/pgtbl_activate.c, startup/pgtbl_setup.c:
	Let the powerpc/shared (+derived) BSPs use pagetable support
	from libcpu.
2003-02-20 21:57:59 +00:00
Joel Sherrill
e00763df0d 2003-02-20 Till Straumann <strauman@slac.stanford.edu>
PR 349/bsps
	* Makefile.am, configure.ac: Add glue to the powerpc/shared BSP
	to use the vmeUniverse VME-PCI bridge driver.
	* vme/.cvsignore, vme/Makefile.am, wrapup/Makefile.am: New files.
2003-02-20 21:57:26 +00:00
Joel Sherrill
8fcce4f6ae 2003-02-20 Till Straumann <strauman@slac.stanford.edu>
PR 349/bsps
	* openpic/Makefile.am, pci/Makefile.am:
	  - install the 'openpic.h' and 'pci.h' headers
	  - avoid a name clash by renaming 'vsprintf' & friends
	    to 'k_vsprintf' etc.
	  - let 'rtemsReboot' print a stack trace (in case an 'assert' failed)
	  - irq.c:
	     * fix: remove implicit assumption that ISA interrupt vectors start
	            at 0
	     * add BSP hook to let a VME interrupt acknowledge the PCI/openpic
	       IRQ. (SEE ALSO THE ppc-sharedbsp-vme.diff patch)
	  - fix: EABI compliance; isr/exception lowlevel handlers must not
	         clobber R2 or R13
	  - fix: openpic_init was called with the polarity/senses tables
	         swapped (fixed wrong order of arguments)
	  - cosmetics: use new _read_SPRXX() _write_SPRXX() macros
2003-02-20 21:52:45 +00:00