Compare commits

...

200 Commits
4.6.0 ... 4.6.5

Author SHA1 Message Date
Joel Sherrill
2d1119e7ed 2005-10-06 Joel Sherrill <joel@OARcorp.com>
* VERSION: Updated to rtems-4.6.5.
2005-10-06 19:43:30 +00:00
Joel Sherrill
a5222eeff9 2005-10-06 Joel Sherrill <joel@OARcorp.com>
* aclocal/version.m4: Updated to rtems-4.6.5.
2005-10-06 19:43:29 +00:00
Joel Sherrill
5d6e54d08b 2005-10-06 Till Straumann <strauman@slac.stanford.edu>
PR 833/bsps
	* irq/irq_asm.S: Currently, all (new exception) BSPs explicitely enable
	the FPU across the user ISR but DONT save/restore the FPU context.
	Any use of the FPU fron the user handler (e.g., due to GCC
	optimizations) result in corruption. The fix results in an exception
	in such cases (user ISR must explicitely save/enable/restore FPU).
2005-10-06 19:36:09 +00:00
Joel Sherrill
6fa59698c7 2005-10-06 Joel Sherrill <joel@OARcorp.com>
* custom/leon3.cfg: New file.
2005-10-06 16:52:18 +00:00
Joel Sherrill
cdd0fc8a89 2005-10-06 Joel Sherrill <joel@OARcorp.com>
* ChangeLog, Makefile.am: Fix hard-coded reference to leon BSP and use
	generated path. Remove ChangeLog entries copied from erc32.
2005-10-06 16:51:37 +00:00
Joel Sherrill
ae557d1abb 2005-10-06 Joel Sherrill <joel@OARcorp.com>
PR 828/filesystems
	* src/dosfs/msdos_misc.c: Problem retracted. Revert patch.
2005-10-06 12:10:58 +00:00
Joel Sherrill
37f094158b 2005-10-06 Joel Sherrill <joel@OARcorp.com>
* include/bsp.h: Remove include of libchip/smc91111exp.h from bsp.h
	since it is not available when networking is disabled.
2005-10-06 12:08:15 +00:00
Joel Sherrill
aba5ed401e 2005-10-05 Joel Sherrill <joel@OARcorp.com>
* ChangeLog, Makefile.am: Fix hard-coded reference to leon BSP and use
	generated path. Remove ChangeLog entries copied from erc32.
2005-10-05 23:02:08 +00:00
Joel Sherrill
7a92e3ddc3 2005-10-05 Joel Sherrill <joel@OARcorp.com>
* amba/amba.c: Fix obvious typo introduced with addition of missing CVS
	Ids.
2005-10-05 22:34:50 +00:00
Joel Sherrill
eefbe35533 2005-10-05 Jiri Gaisler <jiri@gaisler.com>
Edvin Catovic <edvin@gaisler.com>
            Konrad Eisele <konrad@gaisler.com>

	PR 827/bsps
	* aclocal/bsp-alias.m4, aclocal/check-bsps.m4: Portion of large update
	of SPARC BSPs. Includes addition of sis, leon2 and leon3 BSPs,
	deletion of leon BSP, addition of SMC91111 NIC driver and much more.
2005-10-05 19:31:20 +00:00
Joel Sherrill
59d55753a8 2005-10-05 Jiri Gaisler <jiri@gaisler.com>
Edvin Catovic <edvin@gaisler.com>
            Konrad Eisele <konrad@gaisler.com>

	PR 827/bsps
	* ChangeLog, cpu.c, cpu_asm.S, rtems/score/cpu.h: Portion of large
	update of SPARC BSPs. Includes addition of sis, leon2 and leon3 BSPs,
	deletion of leon BSP, addition of SMC91111 NIC driver and much more.
2005-10-05 19:30:18 +00:00
Joel Sherrill
3ffa814199 2005-10-05 Jiri Gaisler <jiri@gaisler.com>
Edvin Catovic <edvin@gaisler.com>
            Konrad Eisele <konrad@gaisler.com>

	PR 827/bsps
	* network/Makefile.am, network/open_eth.c, network/open_eth.h: Portion
	of large update of SPARC BSPs. Includes addition of sis, leon2 and
	leon3 BSPs, deletion of leon BSP, addition of SMC91111 NIC driver and
	much more.
	* network/README.smc91111, network/smc91111.c, network/smc91111.h,
	network/smc91111config.h, network/smc91111exp.h: New files.
2005-10-05 19:29:23 +00:00
Joel Sherrill
774515b753 2005-10-05 Jiri Gaisler <jiri@gaisler.com>
Edvin Catovic <edvin@gaisler.com>
            Konrad Eisele <konrad@gaisler.com>

	PR 827/bsps
	* .cvsignore, acinclude.m4: Portion of large update of SPARC BSPs.
	Includes addition of sis, leon2 and leon3 BSPs, deletion of leon BSP,
	addition of SMC91111 NIC driver and much more.
	* leon/.cvsignore, leon/ChangeLog, leon/Makefile.am, leon/README,
	leon/bsp_specs, leon/configure.ac, leon/times, leon/clock/.cvsignore,
	leon/clock/Makefile.am, leon/clock/ckinit.c, leon/console/.cvsignore,
	leon/console/Makefile.am, leon/console/console.c,
	leon/console/consolereserveresources.c, leon/console/debugputs.c,
	leon/gnatsupp/.cvsignore, leon/gnatsupp/Makefile.am,
	leon/gnatsupp/gnatsupp.c, leon/include/.cvsignore,
	leon/include/Makefile.am, leon/include/bsp.h, leon/include/coverhd.h,
	leon/include/leon.h, leon/leon_open_eth/.cvsignore,
	leon/leon_open_eth/Makefile.am, leon/leon_open_eth/leon_open_eth.c,
	leon/start/.cvsignore, leon/start/Makefile.am,
	leon/startup/.cvsignore, leon/startup/Makefile.am,
	leon/startup/boardinit.S, leon/startup/linkcmds,
	leon/startup/setvec.c, leon/startup/spurious.c,
	leon/timer/.cvsignore, leon/timer/Makefile.am, leon/timer/timer.c,
	leon/tools/.cvsignore, leon/tools/ChangeLog, leon/tools/Makefile.am,
	leon/tools/configure.ac, leon/tools/runtest.in,
	leon/wrapup/.cvsignore, leon/wrapup/Makefile.am: Removed.
2005-10-05 19:26:31 +00:00
Joel Sherrill
1348869fbb 2005-10-05 Jiri Gaisler <jiri@gaisler.com>
Edvin Catovic <edvin@gaisler.com>
            Konrad Eisele <konrad@gaisler.com>

	PR 827/bsps
	* .cvsignore, ChangeLog, Makefile.am, README, bsp_specs, configure.ac,
	times, amba/.cvsignore, amba/Makefile.am, amba/amba.c,
	clock/.cvsignore, clock/Makefile.am, clock/ckinit.c,
	console/.cvsignore, console/Makefile.am, console/console.c,
	console/consolereserveresources.c, console/debugputs.c,
	gnatsupp/.cvsignore, gnatsupp/Makefile.am, gnatsupp/gnatsupp.c,
	include/.cvsignore, include/Makefile.am, include/amba.h,
	include/bsp.h, include/coverhd.h, include/leon.h,
	leon_open_eth/.cvsignore, leon_open_eth/Makefile.am,
	leon_open_eth/leon_open_eth.c, leon_smc91111/.cvsignore,
	leon_smc91111/Makefile.am, leon_smc91111/leon_smc91111.c,
	start/.cvsignore, start/Makefile.am, startup/.cvsignore,
	startup/Makefile.am, startup/bspstart.c, startup/ithread.S,
	startup/linkcmds, startup/setvec.c, startup/spurious.c,
	timer/.cvsignore, timer/Makefile.am, timer/timer.c, tools/.cvsignore,
	tools/ChangeLog, tools/Makefile.am, tools/configure.ac,
	tools/runtest.in, wrapup/.cvsignore, wrapup/Makefile.am: New files.
2005-10-05 19:26:00 +00:00
Joel Sherrill
d2a30c77f5 2005-10-05 Jiri Gaisler <jiri@gaisler.com>
Edvin Catovic <edvin@gaisler.com>
            Konrad Eisele <konrad@gaisler.com>

	PR 827/bsps
	* .cvsignore, ChangeLog, Makefile.am, README, bsp_specs, configure.ac,
	times, clock/.cvsignore, clock/Makefile.am, clock/ckinit.c,
	console/.cvsignore, console/Makefile.am, console/console.c,
	console/consolereserveresources.c, console/debugputs.c,
	gnatsupp/.cvsignore, gnatsupp/Makefile.am, gnatsupp/gnatsupp.c,
	include/.cvsignore, include/Makefile.am, include/bsp.h,
	include/coverhd.h, include/leon.h, leon_open_eth/.cvsignore,
	leon_open_eth/Makefile.am, leon_open_eth/leon_open_eth.c,
	leon_smc91111/.cvsignore, leon_smc91111/Makefile.am,
	leon_smc91111/leon_smc91111.c, start/.cvsignore, start/Makefile.am,
	startup/.cvsignore, startup/Makefile.am, startup/linkcmds,
	startup/setvec.c, startup/spurious.c, timer/.cvsignore,
	timer/Makefile.am, timer/timer.c, tools/.cvsignore, tools/ChangeLog,
	tools/Makefile.am, tools/configure.ac, tools/runtest.in,
	wrapup/.cvsignore, wrapup/Makefile.am: New files.
2005-10-05 19:25:45 +00:00
Joel Sherrill
73c2d237de 2005-10-05 Jiri Gaisler <jiri@gaisler.com>
Edvin Catovic <edvin@gaisler.com>
            Konrad Eisele <konrad@gaisler.com>

	PR 827/bsps
	* ChangeLog, configure.ac, console/Makefile.am, console/console.c,
	console/debugputs.c, startup/Makefile.am, startup/linkcmds,
	tools/Makefile.am: Portion of large update of SPARC BSPs. Includes
	addition of sis, leon2 and leon3 BSPs, deletion of leon BSP, addition
	of SMC91111 NIC driver and much more.
2005-10-05 19:25:07 +00:00
Joel Sherrill
d490fff3c1 2005-10-05 Jiri Gaisler <jiri@gaisler.com>
Edvin Catovic <edvin@gaisler.com>
            Konrad Eisele <konrad@gaisler.com>

	PR 827/bsps
	* Makefile.am, bspstart.c, gnatcommon.c, start.S: Portion of large
	update of SPARC BSPs. Includes addition of sis, leon2 and leon3 BSPs,
	deletion of leon BSP, addition of SMC91111 NIC driver and much more.
2005-10-05 19:24:48 +00:00
Joel Sherrill
e75e10dcac 2005-10-05 Jiri Gaisler <jiri@gaisler.com>
Edvin Catovic <edvin@gaisler.com>
            Konrad Eisele <konrad@gaisler.com>

	PR 827/bsps
	* custom/Makefile.am, custom/erc32.cfg, custom/erc32nfp.cfg,
	custom/leon1.cfg, custom/leon2.cfg: Portion of large update of SPARC
	BSPs. Includes addition of sis, leon2 and leon3 BSPs, deletion of
	leon BSP, addition of SMC91111 NIC driver and much more.
	* custom/sis.cfg: New file.
2005-10-05 19:24:00 +00:00
Joel Sherrill
fb573a71f1 2005-08-23 Karel Gardas <kgardas@objectsecurity.com>>
* timer/timer.c: Enhance to use either interupt-based timer
	functions on older CPUs or to use TSC-based timer functions on
	more recent (Pentium and above) CPUs. The decision is made in
	Timer_initialize function when it is called for the first time
	based on a result obtained from cpuid instruction during the BSP
	initialization phase. During the first call, there are also late
	bindings to the implementation functions initialized to
	appropriate values.
2005-10-05 02:39:35 +00:00
Joel Sherrill
24b6d2f9a8 2005-09-12 Thomas Doerfler <Thomas.Doerfler@imd-systems.de>
PR 527/bsps
	PR 822/bsps
	* mpc8xx/clock/clock.c: Currently the MBX8xx BSP does not boot,
	because some logical errors are in the startup code. Additionally,
	the mpc8xx shared clock driver does not support the clocking scheme
	of some of the board variants, which are clocked from a
	32768Hz (!) external crystal.
2005-10-05 02:34:17 +00:00
Joel Sherrill
a3b4632866 2005-10-04 Till Straumann <strauman@slac.stanford.edu>
PR 829/rtems
	* src/tasks.c, src/taskvariabledelete.c: If task variables are deleted
	from a different context (i.e., executing context != owner of the
	task variable. The owner meaning the task that registered the dtor in
	question) the argument passed to the task variable dtor must be tvar
	and not *ptr which yields the executing task's value of the task
	variable instead of the owner's.
2005-10-04 21:53:58 +00:00
Joel Sherrill
dc4bd19dfa Removed blank line. 2005-09-29 12:09:08 +00:00
Thomas Doerfler
3741506c42 2005-09-29 Thomas Doerfler <Thomas.Doerfler@imd-systems.de>
PR649/filesystem
	* ide/idecfg.c, configure.ac:
	added configuration items for primary/secondary
2005-09-29 11:50:47 +00:00
Joel Sherrill
8747cac1e3 Added reference to PR527. 2005-09-12 13:38:18 +00:00
Joel Sherrill
5a5af8c1a1 2005-09-12 Thomas Doerfler <Thomas.Doerfler@imd-systems.de>
PR 822/bsps
	* console/console.c, startup/bspstart.c, startup/imbx8xx.c,
	startup/mmutlbtab.c, startup/start.S, vectors/vectors_init.c:
	Currently the MBX8xx BSP does not boot, because some logical errors
	are in the startup code. Additionally, the mpc8xx shared clock driver
	does not support the clocking scheme of some of the board variants,
	which are clocked from a 32768Hz (!) external crystal.
2005-09-12 13:28:24 +00:00
Joel Sherrill
21a6137140 2005-09-12 Thomas Doerfler <Thomas.Doerfler@imd-systems.de>
PR 822/bsps
	* custom/mbx860_001b.cfg: New file.
2005-09-12 13:27:39 +00:00
Joel Sherrill
52adbd42e5 2005-09-09 Joel Sherrill <joel@OARcorp.com>
PR 577/bsps
	* console.c: Make the previously committed patch for this PR compile.
2005-09-09 11:19:25 +00:00
Joel Sherrill
d7bf841a96 2005-09-01 Joel Sherrill <joel@OARcorp.com>
* VERSION: Updated to rtems-4.6.4.
2005-09-01 17:18:50 +00:00
Joel Sherrill
58cfecc76a 2005-09-01 Joel Sherrill <joel@OARcorp.com>
* aclocal/version.m4: Updated to rtems-4.6.4.
2005-09-01 17:18:49 +00:00
Joel Sherrill
0bb4dd0337 2005-09-01 Joel Sherrill <joel@OARcorp.com>
PR 820/rtems
	* inline/rtems/score/coremsg.inl, macros/rtems/score/coremsg.inl,
	src/coremsginsert.c: Increment of pending message count should be
	atomic with insertion on the pending message chain. Determination of
	the need to call the notification handler should also be in this
	atomic section of code.
2005-09-01 16:31:22 +00:00
Joel Sherrill
feedcdc65f 2005-09-01 Joel Sherrill <joel@OARcorp.com>
PR 628/rtems
	* psx04/init.c, psx04/psx04.scn: Update tests to reflect a signal of 0
	being an error.
2005-09-01 16:14:17 +00:00
Joel Sherrill
3c838f1ac8 2005-09-01 Joel Sherrill <joel@OARcorp.com>
PR 796/rtems
	* src/semtimedwait.c: sem_timedwait is supposed to use absolute time
	for timeout specification. This patch is a modified version of the
	one suggested by Peter Dufault.
2005-09-01 14:46:02 +00:00
Joel Sherrill
45a32542db 2005-09-01 Joel Sherrill <joel@OARcorp.com>
PR 350/make_build
	* compilers/gcc-target-default.cfg: Honor LD_PATHS set by user.
2005-09-01 13:39:14 +00:00
Joel Sherrill
f54bc05285 2005-09-01 Nuno Costa <nuno-costa@iol.pt>
PR 804
	* include/confdefs.h: Memory for POSIX timers not accounted for. Patch
	adapted from edit comment in PR filed.
2005-09-01 13:27:02 +00:00
Joel Sherrill
fd06f6c0d4 2005-09-01 Joel Sherrill <joel@OARcorp.com>
* include/bsp.h: This file is only to be used by BSPs with the new
	interrupt API so checking for USE_ENHANCED_INTR_API is not needed.
2005-09-01 13:22:18 +00:00
Joel Sherrill
cc2efb6012 2005-09-01 Joel Sherrill <joel@OARcorp.com>
* clock/Makefile.am, include/Makefile.am: Install tod.h
2005-09-01 13:20:47 +00:00
Ralf Corsepius
82973a283f 2005-08-31 Ralf Corsepius <ralf.corsepius@rtems.org>
PR 819/filesystem
        * src/ttyname_r.c: Remove.
        * src/ttyname.c: Partial update from FreeBSD.
        * Makefile.am: Reflect changes above.
2005-08-31 04:34:58 +00:00
Joel Sherrill
4a4c78d97f 2005-08-19 Cedric Aubert <cedric_aubert@yahoo.fr>
PR 577/bsps
	* console.c: The console_close() method currently calls StopRemoteTx()
	on all invocations. It should should be ok for last close only but
	not for any others. If you open a port multiple times, you only want
	to call StopRemoteTx() only as part of the last close.
2005-08-19 16:20:00 +00:00
Joel Sherrill
3d7d233c03 2005-08-18 Andrew Sinclair <Andrew.Sinclair@elprotech.com>
PR 807/rtems
	* src/timerfireafter.c, src/timerserverfireafter.c: First patch
	returned without exitting dispatching critical section.
2005-08-18 13:39:00 +00:00
Joel Sherrill
ecfdafc62e 2005-08-17 Nuno Costa <nuno-costa@iol.pt>
PR 805/rtems
	* include/rtems/posix/timer.h: Due to bad choice of error constants by
	original submitter, it was impossible to create more than 10 POSIX
	timers.
2005-08-17 22:56:30 +00:00
Joel Sherrill
f45e8840c8 2005-08-17 Andrew Sinclair <Andrew.Sinclair@elprotech.com>
PR 807/rtems
	* rtems/src/timerfireafter.c, rtems/src/timerserverfireafter.c,
	score/src/watchdoginsert.c: Tighten critical section checks on an ISR
	using the same timer being inserted by a lower priority ISR or
	interupt task.
2005-08-17 22:50:30 +00:00
Joel Sherrill
5978038f77 2005-08-17 Nickolay Semyonov <snob@oktetlabs.ru>
PR 744/filesystem
	* libcsupport/src/unlink.c, libfs/src/dosfs/msdos_eval.c: DOSFS did not
	support permissions on directories so the check performed by unlink
	would always fail. The unlink code was modified to support a not
	supported status being returned.
2005-08-17 19:17:37 +00:00
Joel Sherrill
5c12a265fa 2005-08-12 Chris Johns <chrisj@rtems.org>
PR 808/rtems_misc
	* src/printk.c: Fix bug where specifying field width crashed on pc386
	BSP.
2005-08-12 23:55:14 +00:00
Joel Sherrill
3424a93ace 2005-08-12 Phil Torre <ptorre@zetron.com>
PR 816/bsps
	* mpc8xx/include/mpc8xx.h: The struct which describes SCC Ethernet mode
	parameters (m8xxSCCENparms_t) does not match the hardware: members
	taddr_h and taddr_l are transposed. When loading new multicast group
	addresses into the hash table, the wrong hash bit is set.
2005-08-12 23:44:55 +00:00
Ralf Corsepius
28e7d30f34 2005-08-02 Ralf Corsepius <ralf.corsepius@rtems.org>
PR 817/rtems
	* src/gxx_wrappers.c: Rename
	rtems_gxx_recursive_mutex_init_function to
	rtems_gxx_recursive_mutex_init.
2005-08-02 12:37:44 +00:00
Joel Sherrill
cec508dafb 2005-07-06 <ralf.corsepius@rtems.org>
PR 810/rtems
	* include/rtems/ide_part_table.h: Add C++ guards.
2005-07-06 18:06:18 +00:00
Joel Sherrill
73ca21f95e 2005-06-09 Jacques Seronie Vivien <jacques.seronievivien@astrium.eads.net>
PR 790/rtems
	* src/extensioncreate.c, src/extensionident.c: Correct use of name.
	This was missed when the other ident services in rtems/src where
	changed.
2005-06-09 14:14:04 +00:00
Joel Sherrill
b0c516bfa1 2005-05-20 Sergei Organov <osv@javad.ru>
PR networking/772.
	* rtems_select.c (socket_select): fixed bug setting SB_WAIT flag
	of so_rcv instead of so_snd when FWRITE.
2005-05-20 19:58:56 +00:00
Joel Sherrill
7918027fad 2005-05-20 Ralf Corsepius <ralf_corsepius@rtems.org>
PR 717/bsps
	* bootloader/Makefile.am: Typo results in wrong flags being used.
2005-05-20 19:53:48 +00:00
Joel Sherrill
da56a02f6c 2005-05-20 Sergei Organov <osv@topconrd.ru>
PR 750/networking
	* pppd/sys-rtems.c: Avoid NULL dereference in wait_input().
2005-05-20 19:31:18 +00:00
Joel Sherrill
c230bc312d 2005-05-20 Sergei Organov <osv@topconrd.ru>
PR 749/networking
	* rtems/rtems_showroute.c: Avoid NULL dereference.
2005-05-20 19:19:17 +00:00
Jennifer Averett
c3f26834d6 2005-05-13 Jennifer Averett <jennifer.averett@oarcorp.com>
PR 786/rtems
        Backport mallocfreespace optimization.
	* Makefile.am, include/rtems/score/heap.h, src/heapgetinfo.c:
	* src/heapgetfreeinfo.c: New file.
2005-05-13 17:13:09 +00:00
Jennifer Averett
41ef136059 2005-05-13 Jennifer Averett <jennifer.averett@oarcorp.com>
PR 786/rtems
        Backport mallocfreespace optimization.
        * Makefile.am, include/rtems/rtems/region.h:
	* src/regiongetfreeinfo.c: New file.
2005-05-13 17:11:42 +00:00
Jennifer Averett
9d31e3498c 2005-05-13 Jennifer Averett <jennifer.averett@oarcorp.com>
* src/mallocfreespace.c:
	PR 786/rtems
	Backport mallocfreespace optimization.
2005-05-13 17:09:26 +00:00
cvs2git
d2565cefae This commit was manufactured by cvs2svn to create branch 'rtems-4-6-branch'.
Cherrypick from master 2005-05-03 22:18:32 UTC Joel Sherrill <joel.sherrill@OARcorp.com> '2005-05-03	Joel Sherrill <joel@OARcorp.com>':
    cpukit/rtems/src/regiongetfreeinfo.c
    cpukit/score/src/heapgetfreeinfo.c
2005-05-03 22:18:33 +00:00
Jennifer Averett
0bdfa8d3ff 2005-04-28 Jennifer Averett <jennifer.averett@oarcorp.com>
PR 781/misc
	* serial/ns16550_p.h: Fix baud rate calculation
2005-04-28 14:56:36 +00:00
Jennifer Averett
53923e8377 2005-04-11 Jennifer Averett<jennifer.averett@oarcorp.com>
PR 778/bsps
	* include/bsp.h, include/gen2.h, startup/FPGA.c, startup/Hwr_init.c,
	startup/bspstart.c, tod/tod.c:
        modify SCORE_.. to BSP_.. for externally used define's.
2005-04-11 20:18:20 +00:00
Jennifer Averett
64c3f790a2 2005-04-11 Jennifer Averett <jennifer@OARcorp.com>
PR 777/bsps
	* include/bsp.h: Add a Processor_Synchronize command in bsp.h
2005-04-11 19:58:14 +00:00
Joel Sherrill
ba10dea56a 2005-03-17 Joel Sherrill <joel@OARcorp.com>
* VERSION: Updated to rtems-4.6.3.
2005-03-17 20:33:39 +00:00
Joel Sherrill
6e8a68e6c4 2005-03-17 Joel Sherrill <joel@OARcorp.com>
* VERSION: Updated to rtems-4.6.3.
2005-03-17 20:07:38 +00:00
Joel Sherrill
745760302e 2005-03-17 Joel Sherrill <joel@OARcorp.com>
* VERSION: Updated to rtems-4.6.3.
2005-03-17 19:29:37 +00:00
Joel Sherrill
732b2b3976 2005-03-17 Joel Sherrill <joel@OARcorp.com>
* include/rtems/score/object.h, src/objectinitializeinformation.c: Fix
	warning.
2005-03-17 14:32:53 +00:00
Joel Sherrill
0be243352f 2005-03-17 Joel Sherrill <joel@OARcorp.com>
PR 692/rtems
	* src/regiongetsegment.c, src/regionreturnsegment.c: The Region
	Manager did not follow the proper protocol when blocking and
	unblocking tasks waiting on buffers. This was a bug introduced with
	the transition to an Allocation Mutex.
2005-03-17 14:30:40 +00:00
Joel Sherrill
70541799ee 2005-03-17 Joel Sherrill <joel@OARcorp.com>
* irq/.cvsignore: New file.
2005-03-17 14:26:17 +00:00
Joel Sherrill
9f781394bd 2005-03-17 Joel Sherrill <joel@OARcorp.com>
PR 745/rtems
	* src/ratemoncreate.c, src/timercreate.c: Make sure internal timer
	structures are initialized so object control reuse is safe.
2005-03-17 14:24:35 +00:00
Joel Sherrill
44eb0beb20 2005-01-20 Joel Sherrill <joel@OARcorp.com>
PR 743/bsps
	* clock/Makefile.am: Did not install tod.h.
2005-01-20 16:54:45 +00:00
Ralf Corsepius
0a7bcfd60a 2005-01-14 Ralf Corsepius <ralf.corsepius@rtems.org>
PR 742/rtems
	* score/include/rtems/system.h: Remove stringify().
2005-01-14 05:23:21 +00:00
Ralf Corsepius
e8ece0b494 2005-01-14 Ralf Corsepius <ralf.corsepius@rtems.org>
* src/gxx_wrappers.c: Backport from trunk. Add support for GCC-4.0.
2005-01-14 05:03:32 +00:00
Ralf Corsepius
410c6f8593 2004-12-10 Ralf Corsepius <ralf.corsepius@rtems.org>
PR 704/bsps.
	* ide_ctrl.c: Removed (obsolete).
2004-12-10 09:29:41 +00:00
Joel Sherrill
0bedb7eced 2004-11-23 Richard Campbell <richard.campbell@oarcorp.com>
* startup/bspstart.c: Removed mpc824x conditionals around call to
	L1_caches_enables, conditionals are now in mmuAsm.S.
 	* vme/VMEConfig.h: Set up VME A16, A24 and A32 windows at different
	locations for mvme2100.
	* vme/vmeconfig.c: Fixed spelling.
2004-11-23 15:44:50 +00:00
Joel Sherrill
21b54fc117 2004-11-23 Richard Campbell <richard.campbell@oarcorp.com>
* powerpc/mpc6xx/mmu/mmuAsm.S: Enable L1 instruction cache only for
	mpc8240 and mpc8245.
2004-11-23 15:31:19 +00:00
Joel Sherrill
9146692992 Add PR617 as fixed by conversion to new exceptions. 2004-11-22 23:37:11 +00:00
Joel Sherrill
bf423bdb2b 2004-11-22 Jennifer Averett <jennifer@OARcorp.com>
* Makefile.am, wrapup/Makefile.am: Pick up SHM driver when MP enabled.
2004-11-22 23:32:33 +00:00
Jennifer Averett
624f551480 2004-11-22 Jennifer Averett <jennifer@OARcorp.com>
PR 581/bsps
	* custom/psim.cfg: Convert PSIM to new exception model.
2004-11-22 22:35:02 +00:00
Jennifer Averett
848d015196 2004-11-22 Jennifer Averett <jennifer@OARcorp.com>
* sp07/buffered_io.c: Remove warning.
2004-11-22 22:34:36 +00:00
Jennifer Averett
f778d4c531 2004-11-22 Jennifer Averett <jennifer@OARcorp.com>
PR 581/bsps
	* mpc6xx/exceptions/raw_exception.c, shared/include/cpuIdent.h:
	Converting PSIM to new exception model required addition of PSIM CPU
	model.
2004-11-22 22:32:47 +00:00
Jennifer Averett
561f53b71e 2004-11-22 Jennifer Averett <jennifer@OARcorp.com>
PR 581/bsps
	* Makefile.am, bsp_specs, configure.ac, clock/Makefile.am,
	include/bsp.h, start/Makefile.am, start/start.S, startup/Makefile.am,
	startup/bspstart.c, startup/linkcmds, vectors/Makefile.am,
	vectors/vectors.S, wrapup/Makefile.am: Convert PSIM to new exception
	model.
	* irq/Makefile.am, irq/irq.c, irq/irq.h, irq/irq_asm.S,
	irq/irq_init.c: New files.
	* clock/clock.c: Removed.
2004-11-22 22:30:59 +00:00
Jennifer Averett
24fced7e13 2004-11-22 Joel Sherrill <joel@OARcorp.com>
PR 693/misc
	* rtc/mc146818a_ioreg.c: Disable unless on a target with in/outport
	routines.
2004-11-22 22:25:05 +00:00
cvs2git
52d276b6bc This commit was manufactured by cvs2svn to create branch 'rtems-4-6-branch'.
Cherrypick from master 2004-11-22 22:13:35 UTC Jennifer Averett <Jennifer.Averett@OARcorp.com> '2004-11-22	Jennifer Averett <jennifer@OARcorp.com>':
    c/src/lib/libbsp/powerpc/psim/irq/irq.c
    c/src/lib/libbsp/powerpc/psim/irq/irq.h
    c/src/lib/libbsp/powerpc/psim/irq/irq_asm.S
    c/src/lib/libbsp/powerpc/psim/irq/irq_init.c
2004-11-22 22:13:36 +00:00
Ralf Corsepius
0293ad1159 2004-11-22 Ralf Corsepius <ralf.corsepius@rtems.org>
PR 721/tests
	* itronsem01/init.c: Fix bogus assert.
2004-11-22 08:19:13 +00:00
Joel Sherrill
30062b7576 2004-11-16 Richard Campbell <richard.campbell@OARcorp.com>
* vmeUniverse/vmeUniverse.c: Use PCI_MEM_BASE_ADJUSTMENT because some
	boards -- notably the MVME2100 -- return the physical address, not an
	offset in PCI memory space.
2004-11-16 23:00:27 +00:00
Joel Sherrill
022ee190c8 2004-11-16 Richard Campbell <richard.campbell@OARcorp.com>
* README.MVME2100: Update to include DBAT0.
	* bsp_specs: Fix spacing.
2004-11-16 22:57:50 +00:00
Joel Sherrill
70fefe6879 2004-11-10 Joel Sherrill <joel@oarcorp.com>
* tod.c: Add include of tod.h to remove warnings.
2004-11-10 22:38:38 +00:00
Joel Sherrill
d700909e7e 2004-11-10 Richard Campbell <richard.campbell@oarcorp.com>
* configure.ac, mpc6xx/exceptions/raw_exception.c,
	mpc6xx/exceptions/raw_exception.h, mpc6xx/mmu/bat.c,
	mpc6xx/mmu/bat.h, mpc6xx/mmu/mmuAsm.S, shared/include/cpuIdent.c,
	shared/include/cpuIdent.h: Add MPC8240 and MPC8245 support. There was
	also a significant amount of spelling and whitespace cleanup.
2004-11-10 22:37:57 +00:00
Joel Sherrill
b90855ceb3 2004-11-10 Richard Campbell <richard.campbell@oarcorp.com>
* network/dec21140.c: Cleanup a bit and remove message about not
	supported on PowerPC since it works on the MVME2100 BSP.
2004-11-10 22:27:55 +00:00
Joel Sherrill
0b929fe94b 2004-11-10 Joel Sherrill <joel@oarcorp.com>
PR 715/bsps
	* rtc/mc146818a.c: Delete include of bsp.h
2004-11-10 22:27:08 +00:00
Joel Sherrill
5dba517449 2004-11-10 Richard Campbell <richard.campbell@oarcorp.com>
* custom/Makefile.am: Add MVME2100 BSP.
	* custom/mvme2100.cfg: New file.
2004-11-10 22:18:12 +00:00
Joel Sherrill
f74483f280 2004-11-10 Richard Campbell <richard.campbell@oarcorp.com>
* aclocal/bsp-alias.m4: Add MVME2100 BSP.
2004-11-10 22:17:37 +00:00
Joel Sherrill
9d8590da5d 2004-11-10 Richard Campbell <richard.campbell@oarcorp.com>
* configure.ac: Add TOD support in shared as part of adding MVME2100
	BSP.
2004-11-10 22:16:34 +00:00
Joel Sherrill
bd91ff4e71 2004-11-10 Richard Campbell <richard.campbell@oarcorp.com>
* ChangeLog, Makefile.am, bootloader/misc.c, bootloader/pci.c,
	bootloader/pci.h, console/console.c, console/inch.c,
	console/reboot.c, console/uart.c, console/uart.h, include/bsp.h,
	irq/irq.c, irq/irq.h, irq/irq_init.c, motorola/motorola.c,
	motorola/motorola.h, openpic/openpic.c, openpic/openpic.h,
	pci/detect_raven_bridge.c, pci/pci.c, pci/pci.h, start/start.S,
	startup/bspstart.c, vectors/vectors_init.c, vme/vmeconfig.c: Add
	MVME2100 BSP and MPC8240 support. There was also a significant amount
	of spelling and whitespace cleanup.
	* tod/.cvsignore, tod/Makefile.am, tod/todcfg.c: New files.
2004-11-10 22:15:01 +00:00
Joel Sherrill
ae460ecea9 2004-11-10 Richard Campbell <richard.campbell@oarcorp.com>
* Makefile.am, configure.ac, bootloader/Makefile.am,
	include/Makefile.am, wrapup/Makefile.am: Add MVME2100 BSP.
	* README.MVME2100, tod/.cvsignore, tod/Makefile.am: New files.
2004-11-10 22:13:57 +00:00
Joel Sherrill
ef842b4665 2004-11-05 Joel Sherrill <joel@OARcorp.com>
PR 706/doc
	* task.t: Remove not that changes explanation.
2004-11-05 14:37:31 +00:00
Ralf Corsepius
6316b74ef1 2004-10-02 Ralf Corsepius <ralf_corsepius@rtems.org>
PR 697/bsps
	* flashentry/flashentry.S: Fix broken comments
	(Patch by Thomas.Doerfler@imd-systems.de)
2004-11-02 02:43:35 +00:00
Joel Sherrill
5f56c3c73c Fixed date. 2004-10-27 19:40:48 +00:00
Ralf Corsepius
d0c64050ec 2004-10-20 Ralf Corsepius <ralf_corsepius@rtems.org>
PR 696/bsps
	* cpu.c: Include bsp.h.
2004-10-20 08:30:22 +00:00
Joel Sherrill
c03dd07226 2004-10-18 Joel Sherrill <joel@OARcorp.com>
* VERSION: Updated to rtems-4.6.2.
2004-10-18 19:15:22 +00:00
Joel Sherrill
9150b49feb 2004-10-18 Joel Sherrill <joel@OARcorp.com>
* VERSION: Updated to rtems-4.6.2.
2004-10-18 19:15:21 +00:00
Joel Sherrill
881da84b2f 2004-10-18 Joel Sherrill <joel@OARcorp.com>
* aclocal/version.m4: Updated to rtems-4.6.2.
2004-10-18 19:15:20 +00:00
Joel Sherrill
eb961b2a63 2004-10-18 Joel Sherrill <joel@OARcorp.com>
* aclocal/version.m4: Updated to rtems-4.6.2.
2004-10-18 19:15:19 +00:00
Joel Sherrill
ee50e9a30a 2004-10-18 RTEMS
* autotools/autoconf-rtems.spec.in: Comment out line giving trouble. It
	only references unneeded documentation.
2004-10-18 19:15:01 +00:00
Joel Sherrill
a561860261 2004-04-08 Joel Sherrill <joel@OARcorp.com>
PR 594/tools
	* setup.def, autotools/autoconf-rtems.spec.in: Increment and rebuild so
	GNAT included.
2004-10-18 19:14:15 +00:00
Joel Sherrill
1a626ab72f 2004-10-18 Joel Sherrill <joel@OARcorp.com>
* VERSION: Updated to rtems-4.6.2.
2004-10-18 19:12:40 +00:00
Joel Sherrill
a240bf2122 2004-10-18 Joel Sherrill <joel@OARcorp.com>
* aclocal/version.m4: Updated to rtems-4.6.2.
2004-10-18 19:12:38 +00:00
Joel Sherrill
e95cc1ca1a 2004-10-18 Joel Sherrill <joel@OARcorp.com>
* include/rtems/system.h: Bump revision number.
2004-10-18 19:12:26 +00:00
Joel Sherrill
1f1252a197 2004-10-18 Joel Sherrill <joel@OARcorp.com>
* buildc.t, buildrt.t: Fix typo which keeps this from building.
2004-10-18 19:08:00 +00:00
Joel Sherrill
5550a389ad 2004-10-18 Joel Sherrill <joel@OARcorp.com>
* VERSION: Updated to rtems-4.6.2.
2004-10-18 17:50:49 +00:00
Joel Sherrill
1157fe214e 2004-10-18 Joel Sherrill <joel@OARcorp.com>
* aclocal/version.m4: Updated to rtems-4.6.2.
2004-10-18 17:50:48 +00:00
Joel Sherrill
8d55b1f03c 2004-10-15 Joel Sherrill <joel@OARcorp.com>
PR 692/rtems
	* src/regiongetsegment.c, src/regionreturnsegment.c: The Region Manager
	did not follow the proper protocol when blocking and unblocking tasks
	waiting on buffers. This was a bug introduced with the transition to
	an Allocation Mutex.
2004-10-15 20:06:35 +00:00
Joel Sherrill
27320205e8 2004-10-15 Gene Smith <gene.smith@seimens.com>
PR 691/bsps
	* startup/linkcmds: Correct bug in linker script.
2004-10-15 19:29:34 +00:00
Joel Sherrill
22ba3c63dd Distribute entry to appropriate places. 2004-10-15 14:29:55 +00:00
Joel Sherrill
801595223e 2004-10-13 Eric Norum <norume@aps.anl.gov>
PR 688/bsps
	* Makefile.am clock/todcfg.c: Add support for MC146818A TOD chip.
2004-10-15 14:29:15 +00:00
Joel Sherrill
08d8625f92 2004-10-13 Eric Norum <norume@aps.anl.gov>
PR 688/bsps
	* shared/tod.c: Set RTEMS time during TOD initialization
2004-10-15 14:29:04 +00:00
Joel Sherrill
201f1c038d Remove bad entry. 2004-10-15 14:28:36 +00:00
Joel Sherrill
6944b20eed 2004-10-13 Eric Norum <norume@aps.anl.gov>
PR 688/bsps
        * libchip/rtc/rtc.h, libchip/rtc/mc146818a.c, libchip/rtc/mc146818a.h,
	libchip/rtc/mc146818a_ioreg.c: New files.  Add libchip driver for
	MC146818A (and several Dallas Semiconductor) TOD chips.

2004-10-13      Eric Norum <norume@aps.anl.gov>

        PR 686/networking
        * libchip/network/if_fxp.c: Fix lockup in if_fxp.c, add additional
	device code.
2004-10-15 14:27:04 +00:00
Eric Norum
a78aada98b Describe last few days' changes. 2004-10-13 19:56:37 +00:00
Eric Norum
1d7f365cfc Add explanation. 2004-10-13 14:51:13 +00:00
Eric Norum
0bd6d2b1aa Set time from TOD to RTEMS as part of TOD initialization. 2004-10-13 14:07:22 +00:00
Eric Norum
359d170476 Add prototype. 2004-10-13 00:40:09 +00:00
Eric Norum
728abc471a Remove delay. 2004-10-13 00:10:18 +00:00
Eric Norum
172f7dc444 Avoid lockup during initialization.
Add additional supported device code.
2004-10-13 00:09:54 +00:00
Eric Norum
5378a296f4 Add driver for Motorola MC146818A time-of-day clock.
Use above driver in i386/pc386 BSP.
2004-10-13 00:03:09 +00:00
cvs2git
361d58eef6 This commit was manufactured by cvs2svn to create branch 'rtems-4-6-branch'.
Cherrypick from master 2004-10-11 20:13:31 UTC Eric Norum <WENorum@lbl.gov> 'Don't get duplication rtc_probe() definitions.':
    c/src/lib/libbsp/i386/pc386/clock/todcfg.c
    c/src/libchip/rtc/README.mc146818a
    c/src/libchip/rtc/mc146818a.c
    c/src/libchip/rtc/mc146818a.h
    c/src/libchip/rtc/mc146818a_ioreg.c
2004-10-11 20:13:32 +00:00
Ralf Corsepius
ab924e93e7 2004-09-30 Ralf Corsepius <ralf_corsepius@rtems.org>
* autotools/autoconf-rtems.spec.in: Remove bogus BuildDep on
	autoconf.
	* autotools/automake-rtems.spec.in: Use my rtems.org address.
2004-09-30 10:28:34 +00:00
Joel Sherrill
0f5bc89c21 2004-09-27 Joel Sherrill <joel@OARcorp.com>
PR 294/rtems
	* src/pthread.c: POSIX thread exit handler now confirms that it created
	the executing thread before implicitly exitting it.
2004-09-27 22:43:14 +00:00
Joel Sherrill
206d973621 Correct PR category. 2004-09-27 22:29:00 +00:00
Joel Sherrill
fafdf95453 2004-09-27 Joel Sherrill <joel@OARcorp.com>
PR 683/doc
	* overview.t: Chapter numbering in preface was wrong.
2004-09-27 22:28:43 +00:00
Joel Sherrill
38d354d335 2004-09-27 Joel Sherrill <joel@OARcorp.com>
PR 682/misc
	* buildc.t, buildrt.t, sample.t: Fix PATH and tar examples. Enable
	binutils link again.
2004-09-27 22:26:31 +00:00
Joel Sherrill
df5f3ca7f5 2004-09-27 Joel Sherrill <joel@OARcorp.com>
PR 681/misc
	* stackchk/check.c: Fix dereference.
2004-09-27 22:14:43 +00:00
Joel Sherrill
d49e8f8238 2004-09-27 Greg Menke <gregory.menke@gsfc.nasa.gov>
PR 606/bsps
	* bootloader/pci.c: Fixed IO remapping so buses >= 1 are remapped.
	Reduced PCI space to match bat2.  Fixed incorrect region size
	calculation in pci_read_bases.  Set PCI latency timers to known
	sane values.  Changed bridge PCI settings to minimum sane instead
	of whatever sounded neat in the PCI spec.  Force pf regions to
	memory mapped to preserve byte access.
2004-09-27 21:57:50 +00:00
Joel Sherrill
a3fab15ad8 2004-09-27 Joel Sherrill <joel@OARcorp.com>
PR 679/bsps
	* startup/linkcmds: Add gnu.linkonce.d and .gcc_except_table.
2004-09-27 21:53:46 +00:00
Joel Sherrill
993b7d1e85 2004-09-27 Joel Sherrill <joel@OARcorp.com>
PR 680/bsps
	* network/if_hdlcsubr.c: Add missing #include <rtems/rtems_bsdnet.h>.
2004-09-27 21:52:24 +00:00
Joel Sherrill
dd7db0f74e 2003-11-01 Greg Menke <gregory.menke@gsfc.nasa.gov>
PR 608/bsps
	* pci/pcibios.c: BusCountPCI().
2004-09-27 21:49:18 +00:00
Joel Sherrill
5ef84356b8 Spacing. 2004-09-27 17:36:01 +00:00
Joel Sherrill
d3f0606f9a 2004-04-09 Greg Menke <gregory.menke@gsfc.nasa.gov>
PR 607/networking
	* network/dec21140.c: Made PCI configuration minimum sane instead
	of fully specifying unused PCI features.
2004-09-27 17:33:07 +00:00
Joel Sherrill
8ad2873774 2004-09-17 Joel Sherrill <joel@OARcorp.com>
PR 677/misc
	* dumpbuf/dumpbuf.h, fsmount/fsmount.h, rtmonuse/rtmonuse.h,
	serdbg/serdbg.h, serdbg/serdbgcnf.h, serdbg/termios_printk.h,
	serdbg/termios_printk_cnf.h, untar/untar.h: Add extern C wrappers.
2004-09-17 16:59:37 +00:00
Joel Sherrill
b92e6124dd 2004-09-17 Till Strauman <strauman@slac.stanford.edu>
PR 676/networking
	* nfs/bootp_subr.c: /etc/resolv.conf contains NTP instead of DNS
	servers.
2004-09-17 16:38:05 +00:00
Ralf Corsepius
506ac56d9f 2004-09-06 Ralf Corsepius <ralf_corsepius@rtems.org>
* autotools/autoconf-rtems.spec.in: Backport from rtems-4.7.
	Update to autoconf-2.59.
2004-09-06 03:39:16 +00:00
Jay Monkman
069bf7544e 2004-08-23 Jay Monkman <jtm@lopingdog.com>
PR 671/bsps
	* rtems/score/cpu.h: Fixed bug in _CPU_ISR_Set_level for ARM
2004-08-24 01:07:30 +00:00
Ralf Corsepius
f485c56bfc Remove. 2004-08-19 08:41:25 +00:00
Ralf Corsepius
8230fa8199 Remove. 2004-08-19 08:25:48 +00:00
Ralf Corsepius
fa2acf9d00 2004-08-18 Ralf Corsepius <ralf_corsepius@rtems.org>
PR 673/make_build
	* config-ml.in: Quote 'cd "${ml_origdir}"'.
	Quote 'cd "${ML_POPDIR}"'.
2004-08-18 12:41:03 +00:00
Ralf Corsepius
64bd5e3532 2004-08-18 Ralf Corsepius <ralf_corsepius@rtems.org>
* aclocal/ppc.m4 (RTEMS_PPC_EXCEPTIONS): Quote ac_popdir uses.
	* aclocal/target.m4 (_RTEMS_POP_BUILDDIR): Ditto.
	* acinclude.m4 (_RTEMS_CONFIG_SUBDIR): Quote ac_popdir uses.
2004-08-18 07:38:49 +00:00
Ralf Corsepius
cdbe374774 2004-08-18 Ralf Corsepius <ralf_corsepius@rtems.org>
* acinclude.m4: Fix m4-underquoting.
2004-08-18 07:37:19 +00:00
Ralf Corsepius
3950f549d3 2004-08-17 Ralf Corsepius <ralf_corsepius@rtems.org>
* acinclude.m4 (_RTEMS_CONFIG_SUBDIR): Quote ac_popdir uses.
2004-08-18 07:34:50 +00:00
Ralf Corsepius
ba8c439f08 2004-08-18 Ralf Corsepius <ralf_corsepius@rtems.org>
* aclocal/canonical-host.m4, aclocal/canonical-target-name.m4,
	aclocal/canonicalize-tools.m4, aclocal/check-cpu.m4,
	aclocal/check-itron.m4, aclocal/check-multiprocessing.m4,
	aclocal/check-networking.m4, aclocal/check-newlib.m4,
	aclocal/check-posix.m4, aclocal/check-tool.m4, aclocal/enable-bare.m4,
	aclocal/enable-inlines.m4, aclocal/enable-itron.m4,
	aclocal/enable-multiprocessing.m4, aclocal/enable-networking.m4,
	aclocal/enable-posix.m4, aclocal/env-rtemscpu.m4,
	aclocal/gcc-isystem.m4, aclocal/gcc-pipe.m4, aclocal/multi.m4,
	aclocal/multilib.m4, aclocal/prog-cc.m4, aclocal/rtems-debug.m4,
	aclocal/rtems-top.m4, aclocal/sysv-ipc.m4: Fix m4-underquoting.
2004-08-18 07:28:27 +00:00
Ralf Corsepius
98b30aa72e Fix m4-underquoting. 2004-08-18 07:26:52 +00:00
Ralf Corsepius
1bdb08c7fb 2004-08-18 Ralf Corsepius <ralf_corsepius@rtems.org>
* aclocal/bsp-alias.m4, aclocal/bsp-arg-enable.m4,
	aclocal/canonical-host.m4, aclocal/canonical-target-name.m4,
	aclocal/canonicalize-tools.m4, aclocal/check-bsps.m4,
	aclocal/check-cpu.m4, aclocal/check-custom-bsp.m4, aclocal/check-cxx.m4,
	aclocal/check-itron.m4, aclocal/check-multiprocessing.m4,
	aclocal/check-networking.m4, aclocal/check-newlib.m4,
	aclocal/check-posix.m4, aclocal/check-rdbg.m4, aclocal/check-tool.m4,
	aclocal/config-subdirs.m4, aclocal/enable-bare.m4,
	aclocal/enable-cxx.m4, aclocal/enable-inlines.m4,
	aclocal/enable-itron.m4, aclocal/enable-multiprocessing.m4,
	aclocal/enable-networking.m4, aclocal/enable-posix.m4,
	aclocal/enable-rdbg.m4, aclocal/enable-rtemsbsp.m4,
	aclocal/enable-tests.m4, aclocal/env-rtemsbsp.m4,
	aclocal/gcc-isystem.m4, aclocal/gcc-pipe.m4, aclocal/gcc-specs.m4,
	aclocal/i386-gas-code16.m4, aclocal/multilib.m4, aclocal/path-ksh.m4,
	aclocal/path-perl.m4, aclocal/prog-cc.m4, aclocal/prog-cxx.m4,
	aclocal/project-root.m4, aclocal/rtems-debug.m4,
	aclocal/rtems-test-no-pause.m4, aclocal/rtems-top.m4,
	aclocal/target.m4, aclocal/tool-paths.m4: Fix m4-underquoting.
2004-08-18 07:23:15 +00:00
Joel Sherrill
9bbeed5df6 2004-07-25 Thomas Rauscher <trauscher@loytec.com>
PR 609/rtems
	* src/threaddispatch.c: Close race condition between _Thread_Dispatch
	and _Thread_Tickle_timeslice.
2004-07-25 14:59:40 +00:00
Joel Sherrill
0f20ef5418 2004-07-25 Victor Vengerov <Victor.Vengerov@oktetlabs.ru>
PR 654/rtems
	* src/threadinitialize.c: Initialize the per thread watchdog timer.
	When the thread control block is reused, we cannot depend on it being
	zeroed.
2004-07-25 14:53:30 +00:00
Joel Sherrill
0ca88a1dd4 2004-07-24 Mick Davis <mickd@microsol.iinet.net.au>
PR 641/rtems
	* src/eventsurrender.c: The problem here is that events may be lost
	when sent to a task which enters rtems_event_receive() with options
	set to wait with a timeout and to return on receipt of any event. The
	events are sent from an interrupt source such as a timer service
	routine. If more than one set of events is sent to the task before it
	returns, the first event set may be overwritten.
2004-07-24 17:52:40 +00:00
Joel Sherrill
8c829996c3 2004-07-24 Joel Sherrill <joel@OARcorp.com>
PR 661/rtems
	* src/objectmp.c: Fix invalid dereference.
2004-07-24 17:39:24 +00:00
Joel Sherrill
046f0094b5 2004-07-24 Joel Sherrill <joel@OARcorp.com>
PR 660/rtems
	* src/threadinitialize.c, src/threadstackallocate.c: Check for
	overflow when allocating stack.
2004-07-24 17:35:34 +00:00
Joel Sherrill
508023527b 2004-07-24 Joel Sherrill <joel@OARcorp.com>
PR 659/rtems
	* src/heapsizeofuserarea.c, src/objectmp.c, src/threadinitialize.c,
	src/threadstackallocate.c: Check that address specified is in the
	heap.
2004-07-24 17:20:16 +00:00
Joel Sherrill
e3da6673b5 Fix format. 2004-07-24 17:19:12 +00:00
Joel Sherrill
38198f3057 2004-07-24 Joel Sherrill <joel@OARcorp.com>
PR rtems/652
	* signal.t: Return RTEMS_INVALID_NUMBER when sending an empty signal
	set.
2004-07-24 17:08:38 +00:00
Joel Sherrill
7feb6f9f65 2004-07-24 Joel Sherrill <joel@OARcorp.com>
PR rtems/652
	* src/signalsend.c: Return RTEMS_INVALID_NUMBER when sending an empty
	signal set.
2004-07-24 17:08:17 +00:00
Joel Sherrill
e18303d997 2004-07-14 Joel Sherrill <joel@OARcorp.com>
PR 650/rtems
	* src/coremsg.c: Check for mathemathical overflow when calculating
	amount of memory to allocate for message buffers.
2004-07-14 21:05:38 +00:00
Joel Sherrill
72dfb969aa 2004-07-14 Joel Sherrill <joel@OARcorp.com>
PR 651/core
	* src/taskident.c: Add NULL check for id.
2004-07-14 14:32:23 +00:00
Joel Sherrill
469c41a421 2004-06-29 Joel Sherrill <joel@OARcorp.com>
PR 631/rtems
	* src/msgqcreate.c: Return unsatisfied from message_queue_create
	when unable to allocate message buffer memory.
2004-06-29 13:55:09 +00:00
Joel Sherrill
6fbf5c39f1 2004-06-29 Joel Sherrill <joel@OARcorp.com>
PR 631/rtems
	* msg.t: Document the return status from message_queue_create when
	unable to allocate message buffer memory.
2004-06-29 13:53:57 +00:00
Joel Sherrill
304d1a52df 2004-06-08 Joel Sherrill <joel@OARcorp.com>
* ChangeLog, include/confdefs.h: Reverse previous accidental commit
	which included too much and had no PR.
2004-06-08 13:53:29 +00:00
Joel Sherrill
01c96bfb75 2004-05-22 Till Strauman <strauman@slac.stanford.edu>
PR 619/bsps
	* mpc6xx/clock/c_clock.c: The PPC decrementer must be reloaded on each
	clock tick. Currently, this is done by just reloading a fixed value.
	The attached patch takes into account the time that elapsed since the
	decrementer crossed zero in order to adjust the value to be
	re-loaded. Without the patch, the effective system clock cycle is
	increased by the exception handler latency.
2004-05-22 15:14:03 +00:00
Joel Sherrill
cfc43898e6 2004-05-21 Joel Sherrill <joel@OARcorp.com>
PR 628/rtems
	* src/killinfo.c, src/pthreadkill.c, src/ptimer1.c, src/sigaction.c,
	src/sigaddset.c, src/sigsuspend.c: Signal set of 0 is supposed to
	return EINVAL.  In addition timer_create needed to return an error
	if the clock was not CLOCK_REALTIME.
2004-05-21 20:16:39 +00:00
Joel Sherrill
0732eb4997 2004-05-21 Joel Sherrill <joel@OARcorp.com>
PR 629/rtems
	* src/mqueuecreatesupp.c: Return EINVAL is mq_maxmsg is <= 0, not <.
2004-05-21 20:12:26 +00:00
Joel Sherrill
e2ce15fc77 2004-05-21 Joel Sherrill <joel@OARcorp.com>
PR 627/doc
	* task.t: Behavior documented for an rtems_task_create with stacksize <
	minimum was not the implemented behavior.
2004-05-21 16:04:44 +00:00
Joel Sherrill
f7219b211f 2004-05-21 Till Strauman <strauman@slac.stanford.edu>
* PR 624/bsps
	startup/bspstart.c: When probing the memory, make sure not to
	corrupt the application. Only probe addresses beyond rtemsFreeMemStart.
	* Let IBMPC_outch() convert LF -> CRLF to avoid printk scrambling
	the screen.
2004-05-21 15:26:20 +00:00
Joel Sherrill
922db6549e Fix formatting so script sees PR. 2004-05-21 15:21:13 +00:00
Joel Sherrill
640f1cb6b2 2004-05-21 Till Strauman <strauman@slac.stanford.edu>
* PR/625/networking
	* network/dec21140.c: Prevent name clashes by making 'ld_le32()' etc.
	static inlines.  Let dec21140 attach routine return an error rather
	than panic if no chip is detected (thus allowing for probing).
	* network/elnk.c: Let elnk bail out if autoneg never completes
	instead of looping forever.  Avoid divide by zero (crashed my PC).
	* network/if_fxp.c: Enable more fxp chip variants but warn that
	they are UNTESTED.
2004-05-21 15:09:43 +00:00
Joel Sherrill
e2f50f9d6d 2004-05-21 Till Strauman <strauman@slac.stanford.edu>
PR 626/networking
	* rtems/rtems_showifstat.c: Use unsigned char to avoid printing leading
	FFFFFF for byte values > 127.
2004-05-21 15:03:22 +00:00
Joel Sherrill
ca6c741739 2004-05-06 Joel Sherrill <joel@OARcorp.com>
PR 618/rtems
	* clock.t, dpmem.t, event.t, msg.t, part.t, region.t, sem.t, task.t,
	timer.t: Add NULL checks.
2004-05-06 19:22:02 +00:00
Joel Sherrill
df54012a8a 2004-05-06 Joel Sherrill <joel@OARcorp.com>
PR 618/rtems
	* include/rtems/score/object.h, src/coretodvalidate.c,
	src/objectnametoid.c: Add NULL checks.
2004-05-06 19:20:44 +00:00
Joel Sherrill
17bbaddcac 2004-05-06 Joel Sherrill <joel@OARcorp.com>
PR 618/rtems
	* include/rtems/rtems/status.h, src/clockget.c, src/clockset.c,
	src/dpmemcreate.c, src/dpmemexternal2internal.c,
	src/dpmeminternal2external.c, src/eventmp.c, src/eventreceive.c,
	src/eventsend.c, src/msgqbroadcast.c, src/msgqcreate.c,
	src/msgqflush.c, src/msgqgetnumberpending.c, src/msgqreceive.c,
	src/msgqsubmit.c, src/partcreate.c, src/partdelete.c,
	src/partgetbuffer.c, src/ratemoncancel.c, src/ratemoncreate.c,
	src/ratemondelete.c, src/ratemongetstatus.c, src/ratemonident.c,
	src/ratemonperiod.c, src/regioncreate.c, src/regiondelete.c,
	src/regionextend.c, src/regiongetsegment.c,
	src/regiongetsegmentsize.c, src/regionreturnsegment.c,
	src/semcreate.c, src/semdelete.c, src/semflush.c, src/semident.c,
	src/taskcreate.c, src/taskgetnote.c, src/taskmode.c,
	src/taskrestart.c, src/taskresume.c, src/tasksetnote.c,
	src/tasksuspend.c, src/taskvariableadd.c, src/taskvariabledelete.c,
	src/taskvariableget.c, src/taskwakewhen.c, src/timercreate.c,
	src/timerdelete.c, src/timerfireafter.c, src/timerfirewhen.c,
	src/timerserverfireafter.c, src/timerserverfirewhen.c: Add NULL
	checks.
2004-05-06 19:20:04 +00:00
Joel Sherrill
424f2e40e9 2004-04-09 Joel Sherrill <joel@OARcorp.com>
PR 605/bsps
	* cpu.c: Do not use C++ style comments.
2004-04-09 14:52:27 +00:00
Joel Sherrill
fbe21ef363 2004-04-08 Joel Sherrill <joel@OARcorp.com>
* VERSION: Updated to rtems-4.6.1.
2004-04-08 23:11:45 +00:00
Joel Sherrill
24a8fb3736 2004-04-08 Joel Sherrill <joel@OARcorp.com>
* aclocal/version.m4: Updated to rtems-4.6.1.
2004-04-08 23:11:44 +00:00
Joel Sherrill
107459f117 Add missing PR604 reference. 2004-04-08 22:48:01 +00:00
Joel Sherrill
4a74b03d7c 2004-04-08 Joel Sherrill <joel@OARcorp.com>
PR 594/tools
	* setup.def, autotools/autoconf-rtems.spec.in: Increment and rebuild so
	GNAT included.
2004-04-08 22:08:49 +00:00
Joel Sherrill
91a52b3105 2004-04-07 Joel Sherrill <joel@OARcorp.com>
PR 602/bsps
	* irq/irq.h: Fix typo.
2004-04-07 13:09:40 +00:00
Joel Sherrill
59db174d07 2004-04-03 Wilfried Busalski <w.busalski@lancier-monitoring.de>
PR 599/pppd
	* pppd/chat.c: Fre memory that is allocated to fix leak.
2004-04-03 16:36:01 +00:00
Joel Sherrill
869f6029d8 2004-04-03 Wilfried Busalski <w.busalski@lancier-monitoring.de>
PR 599/pppd
	* pppd/chat.c: Fre memory that is allocated to fix leak.
2004-04-03 16:33:21 +00:00
Joel Sherrill
9cec348537 2004-04-03 Art Ferrer <arturo.b.ferrer@nasa.gov>
PR 598/bsps
	* cpu_asm.S, rtems/score/cpu.h: Add save of floating point
	status/control register on context switches. Missing this register
	was causing intermittent floating point errors.
2004-04-03 16:29:06 +00:00
Ralf Corsepius
81cc5b271b 2004-02-10 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
PR 575/bsps
	* startup/linkcmds: Remove.
2004-04-01 00:14:59 +00:00
Joel Sherrill
04b4b389b8 2004-03-30 David Querbach <querbach@realtime.bc.ca>
PR 595/tests
	* sp13/fillbuff.c, sp13/init.c, sp13/putbuff.c, sp13/system.h,
	sp13/task1.c, sp13/task2.c: Fill_buffer() in fillbuff.c overruns the
	supplied buffer due to confusion in the definition of MESSAGE_SIZE.
	Some files in the sp13 test treat MESSAGE_SIZE as a count of bytes,
	others treat it as a count of longs.
2004-03-30 19:46:24 +00:00
Joel Sherrill
6a15087d24 2004-03-30 David Querbach <querbach@realtime.bc.ca>
PR 596/tests
	* sp32/init.c: A missing definition of TEST_INIT before including
	<tmacros.h> means that buffered output will not work even if selected
	in buffer_test_io.h.
2004-03-30 19:21:24 +00:00
Joel Sherrill
c3e88cadf1 2004-03-05 Joel Sherrill <joel@OARcorp.com>
* include/confdefs.h:
2004-03-05 17:58:18 +00:00
Joel Sherrill
8a41da4108 2004-03-05 Joel Sherrill <joel@OARcorp.com>
* psxmsgq01/init.c, psxtimer/psxtimer.c: Eliminate warning from
	previous patch.
2004-03-05 15:49:39 +00:00
Joel Sherrill
d1266a5990 2004-03-05 Joel Sherrill <joel@OARcorp.com>
PR 576/doc
	* FAQ/FAQ.texi, FAQ/Makefile.am: Remove embedded information as it was
	out of date and frequently duplicated information available from
	other public sources like the CrossGCC Wiki.
	* FAQ/embeddedinfo.t: Removed.
2004-03-05 15:45:32 +00:00
Joel Sherrill
30529eb7a5 2004-03-05 Joel Sherrill <joel@OARcorp.com>
PR 505/bsps
	* setvec.c: Rework to remove punned pointer warning generated by gcc
	3.3 and newer.
2004-03-05 15:30:57 +00:00
Joel Sherrill
1a17efbd2d 2004-02-26 Andreas Karlsson <andreas.karlsson@space.se>
* cpu_asm.S: Close window while restoring interrupted task state which
	resulted in CWP corruption.
2004-02-26 17:23:58 +00:00
Joel Sherrill
9a93d54070 2004-02-26 Thomas Rauscher <trauscher@loytec.com.
PR 584/RTEMS
	* src/eventtimeout.c: Fix critical section window.
2004-02-26 17:04:27 +00:00
Joel Sherrill
70e27c2d80 2004-02-26 Joel Sherrill <joel@OARcorp.com>
PR 583/tests
	* tm26/task1.c, tm27/task1.c: Correctly reset
	_Thread_Dispatch_disable_level so printing is safe.
2004-02-26 16:50:24 +00:00
Joel Sherrill
ec8472e0b7 2004-02-26 Joel Sherrill <joel@OARcorp.com>
PR 582/core
	* src/mqueue.c, src/mqueuecreatesupp.c, src/mqueuedeletesupp.c,
	src/mqueueunlink.c: Use memory from workspace to avoid use of mutex
	during dispatch disable critical section. Besides memory for object
	names should come from the Workspace anyway.
2004-02-26 14:29:02 +00:00
Joel Sherrill
4e0498e1f6 2004-02-26 Sébastien Barré <sbarre@sdelcc.com>
PR 582/core
	* psxmsgq01/init.c, psxmsgq01/psxmsgq01.scn: Fix the POSIX message
	queue test so more of it runs now.
2004-02-26 14:26:19 +00:00
Ralf Corsepius
a4454ed9c5 2004-02-10 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Use rtems_source_spec_DEPS instead of
	rtems_source_spec_DEPENDENCIES (Conflicts with automake internals).
2004-02-10 13:32:17 +00:00
Ralf Corsepius
04aa02d1d3 2004-02-10 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: Remove rtemsdoc/mkspec.
2004-02-10 13:26:19 +00:00
Ralf Corsepius
fe05191353 2004-02-10 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* rtemsdoc/.cvsignore: Reformat.
	* configure.ac: Add RTEMS_RPM_RELEASE.
	* Makefile.am: Reformat. Add RTEMS_RPM_RELEASE support to
	rtems-source.add
	* rtems/rtems-source.add: Add RTEMS_RPM_RELEASE.
	* rtemsdoc/mkspec.in: Remove.
	* rtemsdoc/Makefile.am: Reworked.
	* rtemsdoc/header.add: Update Copyright notice.
	* rtemsdoc/rtemsdoc.add: Add RTEMS_RPM_RELEASE.
	Add %{rpmgroup}. Remove bzip-ing *.ps.
	* rtemsdoc/supplement.add.in: Add %{rpmgroup}.
	* rtemsdoc/templ.add.in: Add %{rpmgroup}.
2004-02-10 13:24:23 +00:00
Ralf Corsepius
ede694c5d6 2004-02-10 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* index.html.in: Change header URL to www.rtems.com.
2004-02-10 12:07:40 +00:00
Ralf Corsepius
1620d0208a 2004-02-10 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
PR 575/bsps
	* startup/linkcmds: Remove.
2004-02-10 08:00:51 +00:00
Joel Sherrill
38c7e48100 2004-02-09 Joel Sherrill <joel@OARcorp.com>
PR make_build/574
	* Makefile.am: Re-added since missing for some reason.
2004-02-09 14:03:44 +00:00
Ralf Corsepius
d1bcf10669 2004-02-09 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* rtems/rtems-source.add: New.
	* Makefile.am: Add rtems/rtems-source.spec handling.
	* configure.ac: AC_SUBST(RTEMS_VERSION,[_RTEMS_VERSION]).
	* common/common.add.in: Use www.rtems.com as Vendor.
2004-02-09 13:34:14 +00:00
548 changed files with 12732 additions and 2710 deletions

View File

@@ -1,3 +1,87 @@
2005-10-06 Joel Sherrill <joel@OARcorp.com>
* VERSION: Updated to rtems-4.6.5.
2005-10-06 Joel Sherrill <joel@OARcorp.com>
* aclocal/version.m4: Updated to rtems-4.6.5.
2005-10-05 Jiri Gaisler <jiri@gaisler.com>
Edvin Catovic <edvin@gaisler.com>
Konrad Eisele <konrad@gaisler.com>
PR 827/bsps
* aclocal/bsp-alias.m4, aclocal/check-bsps.m4: Portion of large update
of SPARC BSPs. Includes addition of sis, leon2 and leon3 BSPs,
deletion of leon BSP, addition of SMC91111 NIC driver and much more.
2005-09-01 Joel Sherrill <joel@OARcorp.com>
* VERSION: Updated to rtems-4.6.4.
2005-09-01 Joel Sherrill <joel@OARcorp.com>
* aclocal/version.m4: Updated to rtems-4.6.4.
2005-03-17 Joel Sherrill <joel@OARcorp.com>
* VERSION: Updated to rtems-4.6.3.
2004-11-10 Richard Campbell <richard.campbell@oarcorp.com>
* aclocal/bsp-alias.m4: Add MVME2100 BSP.
2004-10-18 Joel Sherrill <joel@OARcorp.com>
* VERSION: Updated to rtems-4.6.2.
2004-10-18 Joel Sherrill <joel@OARcorp.com>
* aclocal/version.m4: Updated to rtems-4.6.2.
2004-08-18 Ralf Corsepius <ralf_corsepius@rtems.org>
PR 673/make_build
* config-ml.in: Quote 'cd "${ml_origdir}"'.
Quote 'cd "${ML_POPDIR}"'.
2004-08-18 Ralf Corsepius <ralf_corsepius@rtems.org>
PR 673/make_build
* aclocal/ppc.m4 (RTEMS_PPC_EXCEPTIONS): Quote ac_popdir uses.
* aclocal/target.m4 (_RTEMS_POP_BUILDDIR): Ditto.
* acinclude.m4 (_RTEMS_CONFIG_SUBDIR): Quote ac_popdir uses.
2004-08-18 Ralf Corsepius <ralf_corsepius@rtems.org>
* acinclude.m4: Fix m4-underquoting.
2004-08-18 Ralf Corsepius <ralf_corsepius@rtems.org>
* aclocal/bsp-alias.m4, aclocal/bsp-arg-enable.m4,
aclocal/canonical-host.m4, aclocal/canonical-target-name.m4,
aclocal/canonicalize-tools.m4, aclocal/check-bsps.m4,
aclocal/check-cpu.m4, aclocal/check-custom-bsp.m4, aclocal/check-cxx.m4,
aclocal/check-itron.m4, aclocal/check-multiprocessing.m4,
aclocal/check-networking.m4, aclocal/check-newlib.m4,
aclocal/check-posix.m4, aclocal/check-rdbg.m4, aclocal/check-tool.m4,
aclocal/config-subdirs.m4, aclocal/enable-bare.m4,
aclocal/enable-cxx.m4, aclocal/enable-inlines.m4,
aclocal/enable-itron.m4, aclocal/enable-multiprocessing.m4,
aclocal/enable-networking.m4, aclocal/enable-posix.m4,
aclocal/enable-rdbg.m4, aclocal/enable-rtemsbsp.m4,
aclocal/enable-tests.m4, aclocal/env-rtemsbsp.m4,
aclocal/gcc-isystem.m4, aclocal/gcc-pipe.m4, aclocal/gcc-specs.m4,
aclocal/i386-gas-code16.m4, aclocal/multilib.m4, aclocal/path-ksh.m4,
aclocal/path-perl.m4, aclocal/prog-cc.m4, aclocal/prog-cxx.m4,
aclocal/project-root.m4, aclocal/rtems-debug.m4,
aclocal/rtems-test-no-pause.m4, aclocal/rtems-top.m4,
aclocal/target.m4, aclocal/tool-paths.m4: Fix m4-underquoting.
2004-04-08 Joel Sherrill <joel@OARcorp.com>
* aclocal/version.m4: Updated to rtems-4.6.1.
2004-02-03 Joel Sherrill <joel@OARcorp.com>
* VERSION: Updated to rtems-4.6.0.

View File

@@ -4,4 +4,4 @@
# $Id$
#
RTEMS Version 4.6.0
RTEMS Version 4.6.5

View File

@@ -261,7 +261,7 @@ if test "$no_recursion" != yes; then
AC_MSG_ERROR([$ac_sub_configure failed for $ac_dir])
fi
cd $ac_popdir
cd "$ac_popdir"
done
fi
fi
@@ -332,7 +332,7 @@ m4_divert_text([DEFAULTS],
m4_expand_once([_RTEMS_COMMANDS_POST_CONFIG_SUBDIRS])
])
AC_DEFUN(_RTEMS_BUILD_CONFIG_PREPARE,[
AC_DEFUN([_RTEMS_BUILD_CONFIG_PREPARE],[
## # Record the configure arguments in Makefile.
m4_ifdef([_RTEMS_BUILD_CONFIGDIRS_LIST],
[
@@ -358,7 +358,7 @@ m4_divert_text([DEFAULTS],
m4_expand_once([_RTEMS_COMMANDS_POST_CONFIG_SUBDIRS])
])
AC_DEFUN(_RTEMS_HOST_CONFIG_PREPARE,[
AC_DEFUN([_RTEMS_HOST_CONFIG_PREPARE],[
m4_ifdef([_RTEMS_HOST_CONFIGDIRS_LIST],
[
m4_expand_once([_RTEMS_TOOLS([host],[HOST])])
@@ -382,7 +382,7 @@ m4_divert_text([DEFAULTS],
m4_expand_once([_RTEMS_COMMANDS_POST_CONFIG_SUBDIRS])
])
AC_DEFUN(_RTEMS_TARGET_CONFIG_PREPARE,[
AC_DEFUN([_RTEMS_TARGET_CONFIG_PREPARE],[
m4_ifdef([_RTEMS_TARGET_CONFIGDIRS_LIST],
[
m4_expand_once([_RTEMS_TOOLS([target],[TARGET])])

View File

@@ -4,12 +4,13 @@ dnl
dnl _RTEMS_BSP_ALIAS(BSP_ALIAS,RTEMS_BSP_FAMILY)
dnl Internal subroutine to RTEMS_BSP_ALIAS
AC_DEFUN(_RTEMS_BSP_ALIAS,
AC_DEFUN([_RTEMS_BSP_ALIAS],
[# account for "aliased" bsps which share source code
case $1 in
simcpu32) $2=sim68000 ;; # BSVC CPU32 variant
c3xsim) $2=c4xsim ;; # TI C3x Simulator in gdb
mcp750) $2=motorola_powerpc ;; # Motorola PPC board variant
mvme2100) $2=motorola_powerpc ;; # Motorola PPC board variant
mvme2307) $2=motorola_powerpc ;; # Motorola PPC board variant
mtx603e) $2=motorola_powerpc ;; # Motorola PPC board variant
mvme162lx) $2=mvme162 ;; # m68k - mvme162 board variant
@@ -23,9 +24,9 @@ AC_DEFUN(_RTEMS_BSP_ALIAS,
pc686) $2=pc386 ;; # i386 - PC with PentiumPro
pck6) $2=pc386 ;; # i386 - PC with K6
bare*) $2=bare ;; # EXP: bare-aliases
erc32nfp) $2=erc32 ;; # erc32 without fpu
leon1) $2=leon ;; # leon without fpu
leon2) $2=leon ;; # leon with fpu
sis) $2=erc32 ;; # ERC32 SIS simulator
leon2) $2=leon2 ;; # leon with fpu
leon3) $2=leon3 ;; # another leon variant
simsh7032) $2=shsim ;; # SH7032 simulator
simsh7045) $2=shsim ;; # SH7045 simulator
*) $2=$1;;
@@ -34,7 +35,7 @@ AC_DEFUN(_RTEMS_BSP_ALIAS,
dnl RTEMS_BSP_ALIAS(BSP_ALIAS,RTEMS_BSP_FAMILY)
dnl convert a bsp alias $1 into its bsp directory RTEMS_BSP_FAMILY
AC_DEFUN(RTEMS_BSP_ALIAS,
AC_DEFUN([RTEMS_BSP_ALIAS],
[_RTEMS_BSP_ALIAS(m4_if([$1],,[$RTEMS_BSP],[$1]),
m4_if([$2],,[RTEMS_BSP_FAMILY],[$2]))]
)

View File

@@ -9,7 +9,7 @@ dnl Configure scripts will receive <bsp-value> if <RTEMS_BSP> matches the
dnl actual value of the shell variable RTEMS_BSP (cf. RTEMS_ENV_RTEMSBSP),
dnl and the raw value passed to --enable-FEATURE otherwise.
dnl
AC_DEFUN(RTEMS_BSP_ARG_ENABLE,
AC_DEFUN([RTEMS_BSP_ARG_ENABLE],
[AC_REQUIRE([RTEMS_ENV_RTEMSBSP])
AC_ARG_ENABLE([$1],[$2],
[enableval=`echo "[$enable_]patsubst([$1], -, _)" | sed -e "s%^${RTEMS_BSP}:%%"`

View File

@@ -1,6 +1,6 @@
dnl $Id$
AC_DEFUN(RTEMS_CANONICAL_HOST,
AC_DEFUN([RTEMS_CANONICAL_HOST],
[dnl
AC_REQUIRE([AC_CANONICAL_HOST])
RTEMS_HOST=$host_os

View File

@@ -8,7 +8,7 @@ dnl target naming conventions "processor-vendor-os"
dnl Therefore autoconf's AC_CANONICAL_TARGET will fail for them
dnl and we have to fix it for rtems ourselves
AC_DEFUN(RTEMS_CANONICAL_TARGET_CPU,
AC_DEFUN([RTEMS_CANONICAL_TARGET_CPU],
[
AC_CANONICAL_TARGET
AC_MSG_CHECKING(rtems target cpu)

View File

@@ -4,7 +4,7 @@ dnl
dnl Set target tools
dnl
AC_DEFUN(RTEMS_CANONICALIZE_TOOLS,
AC_DEFUN([RTEMS_CANONICALIZE_TOOLS],
[AC_REQUIRE([RTEMS_PROG_CC])dnl
dnl FIXME: What shall be done if these tools are not available?

View File

@@ -4,7 +4,7 @@ dnl Report all available bsps for a target,
dnl check if a bsp-subdirectory is present for all bsps found
dnl
dnl RTEMS_CHECK_BSPS(bsp_list)
AC_DEFUN(RTEMS_CHECK_BSPS,
AC_DEFUN([RTEMS_CHECK_BSPS],
[
AC_REQUIRE([RTEMS_CHECK_CPU])dnl sets RTEMS_CPU, target
AC_REQUIRE([RTEMS_TOP])dnl sets RTEMS_TOPdir
@@ -21,8 +21,8 @@ AC_MSG_CHECKING([for bsps])
mbx8xx) $1="[$]$1 mbx821_001 mbx860_002 mbx860_005b";;
motorola_powerpc) $1="[$]$1 mvme2307 mcp750 mtx603e";;
pc386) $1="[$]$1 pc386 pc386dx pc486 pc586 pc686 pck6";;
erc32) $1="[$]$1 erc32 erc32nfp";;
leon) $1="[$]$1 leon1 leon2";;
erc32) $1="[$]$1 erc32 sis";;
leon) $1="[$]$1 leon2 leon3";;
sim68000) $1="[$]$1 sim68000 simcpu32";;
shsim) $1="[$]$1 simsh7032 simsh7045";;
*) $1="[$]$1 $file";;

View File

@@ -1,7 +1,7 @@
dnl $Id$
dnl check if RTEMS support a cpu
AC_DEFUN(RTEMS_CHECK_CPU,
AC_DEFUN([RTEMS_CHECK_CPU],
[dnl
AC_REQUIRE([RTEMS_TOP])
AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])

View File

@@ -1,6 +1,6 @@
dnl $Id$
AC_DEFUN(RTEMS_CHECK_CUSTOM_BSP,[
AC_DEFUN([RTEMS_CHECK_CUSTOM_BSP],[
AC_REQUIRE([RTEMS_TOP])
AC_MSG_CHECKING([for make/custom/[$]$1.cfg])

View File

@@ -1,6 +1,6 @@
dnl $Id$
dnl
AC_DEFUN(RTEMS_CHECK_CXX,
AC_DEFUN([RTEMS_CHECK_CXX],
[dnl
AC_REQUIRE([RTEMS_CHECK_CPU])dnl
AC_REQUIRE([RTEMS_PROG_CC_FOR_TARGET])dnl

View File

@@ -1,6 +1,6 @@
dnl $Id$
dnl
AC_DEFUN(RTEMS_CHECK_ITRON_API,
AC_DEFUN([RTEMS_CHECK_ITRON_API],
[dnl
AC_REQUIRE([RTEMS_CHECK_CPU])dnl
AC_REQUIRE([RTEMS_ENABLE_ITRON])dnl
@@ -28,7 +28,7 @@ fi
AC_SUBST(HAS_ITRON_API)dnl
])
AC_DEFUN(RTEMS_DEFINE_ITRON_API,
AC_DEFUN([RTEMS_DEFINE_ITRON_API],
[AC_REQUIRE([RTEMS_CHECK_ITRON_API])dnl
if test x"${HAS_ITRON_API}" = x"yes";
then

View File

@@ -2,7 +2,7 @@ dnl
dnl $Id$
dnl
AC_DEFUN(RTEMS_CHECK_MULTIPROCESSING,
AC_DEFUN([RTEMS_CHECK_MULTIPROCESSING],
[dnl
AC_REQUIRE([RTEMS_ENABLE_MULTILIB])dnl
AC_REQUIRE([RTEMS_ENV_RTEMSBSP])dnl

View File

@@ -1,6 +1,6 @@
dnl $Id$
dnl
AC_DEFUN(RTEMS_CHECK_NETWORKING,
AC_DEFUN([RTEMS_CHECK_NETWORKING],
[dnl
AC_REQUIRE([RTEMS_CHECK_CPU])dnl
AC_REQUIRE([RTEMS_ENABLE_NETWORKING])dnl

View File

@@ -1,6 +1,6 @@
dnl $Id$
AC_DEFUN(RTEMS_CHECK_NEWLIB,
AC_DEFUN([RTEMS_CHECK_NEWLIB],
[dnl
AC_REQUIRE([RTEMS_PROG_CC_FOR_TARGET])dnl
AC_REQUIRE([RTEMS_CANONICALIZE_TOOLS])dnl

View File

@@ -1,6 +1,6 @@
dnl $Id$
dnl
AC_DEFUN(RTEMS_CHECK_POSIX_API,
AC_DEFUN([RTEMS_CHECK_POSIX_API],
[dnl
AC_REQUIRE([RTEMS_CHECK_CPU])dnl
AC_REQUIRE([RTEMS_ENABLE_POSIX])dnl
@@ -28,7 +28,7 @@ fi
AC_SUBST(HAS_POSIX_API)dnl
])
AC_DEFUN(RTEMS_DEFINE_POSIX_API,
AC_DEFUN([RTEMS_DEFINE_POSIX_API],
[AC_REQUIRE([RTEMS_CHECK_POSIX_API])dnl
AS_IF(
[test x"${HAS_POSIX_API}" = x"yes"],

View File

@@ -1,6 +1,6 @@
dnl $Id$
dnl
AC_DEFUN(RTEMS_CHECK_RDBG,
AC_DEFUN([RTEMS_CHECK_RDBG],
[dnl
AC_REQUIRE([RTEMS_TOP])dnl
AC_REQUIRE([RTEMS_CHECK_CPU])dnl

View File

@@ -3,7 +3,7 @@ dnl $Id$
## Check for a cross tool, similar to AC_CHECK_TOOL, but do not fall back to
## the un-prefixed version of PROG-TO-CHECK-FOR.
dnl RTEMS_CHECK_TOOL(VARIABLE, PROG-TO-CHECK-FOR[, VALUE-IF-NOT-FOUND [, PATH]])
AC_DEFUN(RTEMS_CHECK_TOOL,
AC_DEFUN([RTEMS_CHECK_TOOL],
[
AS_IF([test "x$build_alias" != "x$host_alias"],
[rtems_tool_prefix=${ac_tool_prefix}])

View File

@@ -11,7 +11,7 @@ dnl
dnl
dnl _AC_DOTS(PATH)
dnl
AC_DEFUN(_AC_DOTS,[
AC_DEFUN([_AC_DOTS],[
# A "../" for each directory in $1.
ac_dots=`echo $1 | \
sed -e 's%^\./%%' -e 's%[[^/]]$%&/%' -e 's%[[^/]]*/%../%g'`
@@ -20,7 +20,7 @@ AC_DEFUN(_AC_DOTS,[
dnl
dnl _RTEMS_ADJUST_SRCDIR(REVAR,CONFIG_DIR[,TARGET_SUBDIR])
dnl
AC_DEFUN(_RTEMS_ADJUST_SRCDIR,[
AC_DEFUN([_RTEMS_ADJUST_SRCDIR],[
_AC_DOTS(ifelse([$3], ,[$2],[$3/$2]))
case "$srcdir" in

View File

@@ -1,4 +1,4 @@
AC_DEFUN(RTEMS_ENABLE_BARE,
AC_DEFUN([RTEMS_ENABLE_BARE],
[
AC_ARG_ENABLE(bare-cpu-cflags,
[AC_HELP_STRING([--enable-bare-cpu-cflags],

View File

@@ -1,6 +1,6 @@
dnl $Id$
AC_DEFUN(RTEMS_ENABLE_CXX,
AC_DEFUN([RTEMS_ENABLE_CXX],
[
AC_ARG_ENABLE(cxx,
[AC_HELP_STRING([--enable-cxx],

View File

@@ -1,6 +1,6 @@
dnl $Id$
AC_DEFUN(RTEMS_ENABLE_INLINES,
AC_DEFUN([RTEMS_ENABLE_INLINES],
[AC_ARG_ENABLE(rtems-inlines,
[AC_HELP_STRING([--enable-rtems-inlines],
[enable RTEMS inline functions (default:enabled, disable to use macros)])],

View File

@@ -1,6 +1,6 @@
dnl $Id$
AC_DEFUN(RTEMS_ENABLE_ITRON,
AC_DEFUN([RTEMS_ENABLE_ITRON],
[
## AC_BEFORE([$0], [RTEMS_CHECK_ITRON_API])dnl

View File

@@ -1,6 +1,6 @@
dnl $Id$
AC_DEFUN(RTEMS_ENABLE_MULTIPROCESSING,
AC_DEFUN([RTEMS_ENABLE_MULTIPROCESSING],
[
AC_ARG_ENABLE(multiprocessing,
[AC_HELP_STRING([--enable-multiprocessing],

View File

@@ -1,6 +1,6 @@
dnl $Id$
AC_DEFUN(RTEMS_ENABLE_NETWORKING,
AC_DEFUN([RTEMS_ENABLE_NETWORKING],
[
## AC_BEFORE([$0], [RTEMS_CHECK_NETWORKING])dnl

View File

@@ -1,6 +1,6 @@
dnl $Id$
AC_DEFUN(RTEMS_ENABLE_POSIX,
AC_DEFUN([RTEMS_ENABLE_POSIX],
[
## AC_BEFORE([$0], [RTEMS_CHECK_POSIX_API])dnl

View File

@@ -1,6 +1,6 @@
dnl $Id$
AC_DEFUN(RTEMS_ENABLE_RDBG,
AC_DEFUN([RTEMS_ENABLE_RDBG],
[
AC_BEFORE([$0], [RTEMS_CHECK_RDBG])dnl

View File

@@ -3,7 +3,7 @@ dnl $Id$
dnl Override the set of BSPs to be built.
dnl used by the toplevel configure script
dnl RTEMS_ENABLE_RTEMSBSP(rtems_bsp_list)
AC_DEFUN(RTEMS_ENABLE_RTEMSBSP,
AC_DEFUN([RTEMS_ENABLE_RTEMSBSP],
[
AC_BEFORE([$0], [RTEMS_ENV_RTEMSBSP])
AC_ARG_ENABLE(rtemsbsp,

View File

@@ -1,6 +1,6 @@
dnl $Id$
AC_DEFUN(RTEMS_ENABLE_TESTS,
AC_DEFUN([RTEMS_ENABLE_TESTS],
[
# If the tests are enabled, then find all the test suite Makefiles
AC_MSG_CHECKING([if the test suites are enabled? ])

View File

@@ -2,7 +2,7 @@ dnl $Id$
dnl Pass a single BSP via an environment variable
dnl used by per BSP configure scripts
AC_DEFUN(RTEMS_ENV_RTEMSBSP,
AC_DEFUN([RTEMS_ENV_RTEMSBSP],
[dnl
AC_BEFORE([$0], [RTEMS_ENABLE_RTEMSBSP])dnl
AC_BEFORE([$0], [RTEMS_PROJECT_ROOT])dnl

View File

@@ -4,7 +4,7 @@ dnl
dnl Check whether the gcc accepts -isystem
dnl
AC_DEFUN(RTEMS_GCC_ISYSTEM,
AC_DEFUN([RTEMS_GCC_ISYSTEM],
[AC_REQUIRE([RTEMS_PROG_CC])
AC_CACHE_CHECK(whether $CC accepts -isystem,rtems_cv_gcc_isystem,
[

View File

@@ -4,7 +4,7 @@ dnl
dnl Check whether the target compiler accepts -pipe
dnl
AC_DEFUN(RTEMS_GCC_PIPE,
AC_DEFUN([RTEMS_GCC_PIPE],
[AC_REQUIRE([RTEMS_PROG_CC])
AC_REQUIRE([AC_CANONICAL_HOST])
AC_CACHE_CHECK(whether $CC accepts --pipe,rtems_cv_gcc_pipe,

View File

@@ -4,7 +4,7 @@ dnl
dnl Check whether the target compiler accepts -specs
dnl
AC_DEFUN(RTEMS_GCC_SPECS,
AC_DEFUN([RTEMS_GCC_SPECS],
[AC_REQUIRE([RTEMS_PROG_CC])
AC_CACHE_CHECK(whether $CC accepts -specs,rtems_cv_gcc_specs,
[

View File

@@ -5,7 +5,7 @@ dnl
dnl check for i386 gas supporting 16 bit mode
dnl - binutils 2.9.1.0.7 and higher
AC_DEFUN(RTEMS_I386_GAS_CODE16,
AC_DEFUN([RTEMS_I386_GAS_CODE16],
[ if test "${host_cpu}" = "i386"; then
AC_CACHE_CHECK([for 16 bit mode assembler support],
rtems_cv_prog_gas_code16,

View File

@@ -2,7 +2,7 @@ dnl This provides configure definitions used for multilib support
dnl parts of these macros are derived from newlib-1.8.2's multilib support
AC_DEFUN(RTEMS_ENABLE_MULTILIB,
AC_DEFUN([RTEMS_ENABLE_MULTILIB],
[
AC_ARG_ENABLE(multilib,
AC_HELP_STRING([--enable-multilib],

View File

@@ -1,6 +1,6 @@
dnl $Id$
AC_DEFUN(RTEMS_PATH_KSH,
AC_DEFUN([RTEMS_PATH_KSH],
[
dnl NOTE: prefer bash over ksh over sh
AC_PATH_PROGS(KSH,bash ksh sh)

View File

@@ -1,6 +1,6 @@
dnl $Id$
AC_DEFUN(RTEMS_PATH_PERL,
AC_DEFUN([RTEMS_PATH_PERL],
[
AC_PATH_PROG(PERL,perl)
if test -z "$PERL" ; then

View File

@@ -80,7 +80,7 @@ if test "$no_recursion" != yes; then
AC_MSG_ERROR([$ac_sub_configure failed for $ac_subdir])
fi
cd $ac_popdir
cd "$ac_popdir"
done
fi
])

View File

@@ -4,7 +4,7 @@ dnl
dnl Check for target gcc
dnl
AC_DEFUN(RTEMS_PROG_CC,
AC_DEFUN([RTEMS_PROG_CC],
[
AC_BEFORE([$0], [AC_PROG_CPP])dnl
AC_BEFORE([$0], [AC_PROG_CC])dnl
@@ -22,7 +22,7 @@ AC_PROG_CPP
AM_CONDITIONAL(RTEMS_USE_GCC,test x"$GCC" = x"yes")
])
AC_DEFUN(RTEMS_PROG_CC_FOR_TARGET,
AC_DEFUN([RTEMS_PROG_CC_FOR_TARGET],
[
dnl check target cc
RTEMS_PROG_CC

View File

@@ -4,7 +4,7 @@ dnl
dnl Check for target g++
dnl
AC_DEFUN(RTEMS_PROG_CXX_FOR_TARGET,
AC_DEFUN([RTEMS_PROG_CXX_FOR_TARGET],
[
AC_BEFORE([$0], [RTEMS_CANONICALIZE_TOOLS])dnl
AC_REQUIRE([RTEMS_ENABLE_CXX])

View File

@@ -12,7 +12,7 @@ dnl RTEMS_ROOT .. path to the top of a bsp's build directory
dnl [Applied by custom/*.cfg, depredicated otherwise]
dnl
AC_DEFUN(RTEMS_PROJECT_ROOT,
AC_DEFUN([RTEMS_PROJECT_ROOT],
[dnl
AC_REQUIRE([RTEMS_TOP])

View File

@@ -1,6 +1,6 @@
## $Id$
AC_DEFUN(RTEMS_ENABLE_RTEMS_DEBUG,
AC_DEFUN([RTEMS_ENABLE_RTEMS_DEBUG],
[
AC_ARG_ENABLE(rtems-debug,
AC_HELP_STRING([--enable-rtems-debug],[enable RTEMS_DEBUG]),
@@ -11,7 +11,7 @@ AC_HELP_STRING([--enable-rtems-debug],[enable RTEMS_DEBUG]),
esac],[enable_rtems_debug=no])
])
AC_DEFUN(RTEMS_CHECK_RTEMS_DEBUG,
AC_DEFUN([RTEMS_CHECK_RTEMS_DEBUG],
[AC_REQUIRE([RTEMS_ENABLE_RTEMS_DEBUG])
AS_IF([test x"${enable_rtems_debug}" = x"yes"]
[AC_DEFINE_UNQUOTED(RTEMS_DEBUG,1,[if RTEMS_DEBUG is enabled])])

View File

@@ -1,4 +1,4 @@
AC_DEFUN(RTEMS_ENABLE_RTEMS_TEST_NO_PAUSE,
AC_DEFUN([RTEMS_ENABLE_RTEMS_TEST_NO_PAUSE],
[AC_ARG_ENABLE(test-no-pause,
AC_HELP_STRING([--disable-test-no-pause],[disable RTEMS_TEST_NO_PAUSE]),
[case "${enableval}" in
@@ -8,7 +8,7 @@ AC_HELP_STRING([--disable-test-no-pause],[disable RTEMS_TEST_NO_PAUSE]),
esac],[RTEMS_TEST_NO_PAUSE=yes])
])
AC_DEFUN(RTEMS_CHECK_RTEMS_TEST_NO_PAUSE,
AC_DEFUN([RTEMS_CHECK_RTEMS_TEST_NO_PAUSE],
[AC_REQUIRE([RTEMS_ENABLE_RTEMS_TEST_NO_PAUSE])
if test x"${RTEMS_TEST_NO_PAUSE}" = x"yes";
then

View File

@@ -7,7 +7,7 @@ dnl RTEMS_TOP($1)
dnl
dnl $1 .. relative path from this configure.in to the toplevel configure.in
dnl
AC_DEFUN(RTEMS_TOP,
AC_DEFUN([RTEMS_TOP],
[dnl
AC_REQUIRE([RTEMS_VERSIONING])
AC_CONFIG_AUX_DIR([$1])

View File

@@ -2,7 +2,7 @@ dnl $Id$
## HACK: Work-around to structural issue with RTEMS
## The macros below violate most autoconf and canonicalization standards
AC_DEFUN(RTEMS_CONFIG_BUILD_SUBDIRS,
AC_DEFUN([RTEMS_CONFIG_BUILD_SUBDIRS],
[AC_REQUIRE([_RTEMS_OUTPUT_BUILD_SUBDIRS])
RTEMS_BUILD_SUBDIRS="$RTEMS_BUILD_SUBDIRS [$1]"
])
@@ -86,7 +86,7 @@ dnl
dnl
dnl _RTEMS_PUSH_BUILDDIR(SUBDIR)
dnl
AC_DEFUN(_RTEMS_PUSH_BUILDDIR,
AC_DEFUN([_RTEMS_PUSH_BUILDDIR],
[
# _RTEMS_PUSH_BUILDDIR
echo configuring in $1
@@ -103,15 +103,15 @@ AC_DEFUN(_RTEMS_PUSH_BUILDDIR,
dnl
dnl _RTEMS_POP_BUILDDIR
dnl
AC_DEFUN(_RTEMS_POP_BUILDDIR,
AC_DEFUN([_RTEMS_POP_BUILDDIR],
[
cd $ac_popdir
cd "$ac_popdir"
])
dnl
dnl _RTEMS_GIVEN_INSTALL
dnl
AC_DEFUN(_RTEMS_GIVEN_INSTALL,
AC_DEFUN([_RTEMS_GIVEN_INSTALL],
[
ifdef([AC_PROVIDE_AC_PROG_INSTALL],[
case "$ac_given_INSTALL" in
@@ -124,7 +124,7 @@ ifdef([AC_PROVIDE_AC_PROG_INSTALL],[
dnl
dnl _RTEMS_SUB_SRCDIR(AC_CONFIG_DIR[,TARGET_SUBDIR])
dnl
AC_DEFUN(_RTEMS_SUB_SRCDIR,[
AC_DEFUN([_RTEMS_SUB_SRCDIR],[
# _RTEMS_SUB_SRCDIR
_RTEMS_ADJUST_SRCDIR(ac_sub_srcdir,$1,$2)

View File

@@ -1,4 +1,4 @@
AC_DEFUN(RTEMS_TOOLPATHS,
AC_DEFUN([RTEMS_TOOLPATHS],
[
# tooldir='$(exec_prefix)/'$target_alias
# Temporary work-around until building in source tree is supported

View File

@@ -1,2 +1,2 @@
AC_DEFUN([RTEMS_VERSIONING],
m4_define([_RTEMS_VERSION],[4.6.0]))
m4_define([_RTEMS_VERSION],[4.6.5]))

View File

@@ -1,3 +1,7 @@
2004-08-17 Ralf Corsepius <ralf_corsepius@rtems.org>
* acinclude.m4 (_RTEMS_CONFIG_SUBDIR): Quote ac_popdir uses.
2003-12-14 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* support/Makefile.am: Pass @RTEMS_BSP@ to AM_CPPFLAGS.

View File

@@ -79,7 +79,7 @@ if test "$no_recursion" != yes; then
AC_MSG_ERROR([$ac_sub_configure failed for $ac_subdir])
fi
cd $ac_popdir
cd "$ac_popdir"
done
fi
fi

View File

@@ -1,3 +1,8 @@
2004-09-27 Joel Sherrill <joel@OARcorp.com>
PR 679/bsps
* startup/linkcmds: Add gnu.linkonce.d and .gcc_except_table.
2003-09-04 Joel Sherrill <joel@OARcorp.com>
* clock/ckinit.c, console/console.c, include/bsp.h, include/coverhd.h,

View File

@@ -48,6 +48,8 @@ SECTIONS
{
_sdata = .;
*(.data);
*(.gnu.linkonce.d*)
*(.gcc_except_table)
_edata = .;
}
_data_start = ADDR(.data) ;

View File

@@ -1,3 +1,44 @@
2005-08-23 Karel Gardas <kgardas@objectsecurity.com>>
* timer/timer.c: Enhance to use either interupt-based timer
functions on older CPUs or to use TSC-based timer functions on
more recent (Pentium and above) CPUs. The decision is made in
Timer_initialize function when it is called for the first time
based on a result obtained from cpuid instruction during the BSP
initialization phase. During the first call, there are also late
bindings to the implementation functions initialized to
appropriate values.
2005-09-29 Thomas Doerfler <Thomas.Doerfler@imd-systems.de>
PR649/filesystem
* ide/idecfg.c: added configuration items for primary/secondary
IDE interface
* configure.ac: added configuration items for primary/secondary
IDE interface
2005-09-01 Joel Sherrill <joel@OARcorp.com>
* clock/Makefile.am, include/Makefile.am: Install tod.h
2005-01-20 Joel Sherrill <joel@OARcorp.com>
PR 743/bsps
* clock/Makefile.am: Did not install tod.h.
2004-10-13 Eric Norum <norume@aps.anl.gov>
PR 688/bsps
* Makefile.am clock/todcfg.c: Add support for MC146818A TOD chip.
2004-05-21 Till Strauman <strauman@slac.stanford.edu>
* PR 624/bsps
startup/bspstart.c: When probing the memory, make sure not to
corrupt the application. Only probe addresses beyond rtemsFreeMemStart.
* Let IBMPC_outch() convert LF -> CRLF to avoid printk scrambling
the screen.
2003-10-02 Till Strauman <strauman@slac.stanford.edu>
PR 502/bsps

View File

@@ -2,10 +2,11 @@
## $Id$
##
VPATH = @srcdir@:@srcdir@/../../shared/tod:@srcdir@/../../../shared
PGM = $(ARCH)/clock.rel
C_FILES = ckinit.c rtc.c
C_FILES = ckinit.c todcfg.c tod.c
clock_rel_OBJECTS = $(C_FILES:%.c=$(ARCH)/%.$(OBJEXT))
include $(top_srcdir)/../../../../../../automake/compile.am
@@ -25,6 +26,6 @@ all-local: $(ARCH) $(clock_rel_OBJECTS) $(PGM)
.PRECIOUS: $(PGM)
EXTRA_DIST = ckinit.c rtc.c
EXTRA_DIST =
include $(top_srcdir)/../../../../../../automake/local.am

View File

@@ -0,0 +1,36 @@
/*
* This file contains the RTC driver table for Motorola shared BSPs.
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rtems.com/license/LICENSE.
*
* $Id$
*/
#include <bsp.h>
#include <libchip/rtc.h>
#include <libchip/mc146818a.h>
/* The following table configures the RTC drivers used in this BSP */
rtc_tbl RTC_Table[] = {
{
"/dev/rtc", /* sDeviceName */
RTC_MC146818A, /* deviceType */
&mc146818a_fns, /* pDeviceFns */
mc146818a_probe, /* deviceProbe */
NULL, /* pDeviceParams */
0x70, /* ulCtrlPort1 */
0x00, /* ulDataPort */
mc146818a_get_register, /* getRegister */
mc146818a_set_register /* setRegister */
}
};
/* Some information used by the RTC driver */
#define NUM_RTCS (sizeof(RTC_Table)/sizeof(rtc_tbl))
unsigned long RTC_Count = NUM_RTCS;
rtems_device_minor_number RTC_Minor;

View File

@@ -16,6 +16,22 @@ RTEMS_CANONICALIZE_TOOLS
RTEMS_CHECK_NETWORKING
RTEMS_BSPOPTS_SET([IDE_USE_PRIMARY_INTERFACE],[*],[1])
RTEMS_BSPOPTS_HELP([IDE_USE_PRIMARY_INTERFACE],
[Determines, whether RTEMS will try to use the primary IDE interface.
Disable it, if:
- you have no primary IDE interface
- or you have no disk attached to this interface
- or you do not want to access disks attached to this interface])
RTEMS_BSPOPTS_SET([IDE_USE_SECONDARY_INTERFACE],[*],[0])
RTEMS_BSPOPTS_HELP([IDE_USE_SECONDARY_INTERFACE],
[Determines, whether RTEMS will try to use the primary IDE interface.
Enable it, if:
- you have a secondary IDE interface
- and you have at least one disk attached to this interface
- and you do want to access disks attached to this interface])
## if this is an i386, does gas have good code16 support?
RTEMS_I386_GAS_CODE16
AM_CONDITIONAL(RTEMS_GAS_CODE16,[test "$RTEMS_GAS_CODE16" = "yes"])

View File

@@ -270,8 +270,11 @@ _IBMPC_outch(char c)
{
static int escaped = 0;
if ( ! (escaped = handleEscape(escaped, c)) )
if ( ! (escaped = handleEscape(escaped, c)) ) {
if ( '\n' == c )
videoPutChar('\r');
videoPutChar(c);
}
} /* _IBMPC_outch */

View File

@@ -36,7 +36,8 @@ extern ide_ctrl_fns_t pc386_ide_ctrl_fns;
/* IDE controllers Table */
ide_controller_bsp_table_t IDE_Controller_Table[] = {
{"/dev/ide",
#if IDE_USE_PRIMARY_INTERFACE
{"/dev/ide0",
IDE_STD, /* standard IDE controller */
&pc386_ide_ctrl_fns,
NULL, /* probe for IDE standard registers */
@@ -45,6 +46,21 @@ ide_controller_bsp_table_t IDE_Controller_Table[] = {
FALSE,0, /* not (yet) interrupt driven */
NULL
}
#if IDE_USE_SECONDARY_INTERFACE
, /* colon only neede when bith interfaces present */
#endif
#endif
#if IDE_USE_SECONDARY_INTERFACE
{"/dev/ide1",
IDE_STD, /* standard IDE controller */
&pc386_ide_ctrl_fns,
NULL, /* probe for IDE standard registers */
FALSE, /* not (yet) initialized */
0x170, /* base I/O address for second IDE controller */
FALSE,0, /* not (yet) interrupt driven */
NULL
}
#endif
};
/* Number of rows in IDE_Controller_Table */

View File

@@ -9,11 +9,15 @@ if HAS_NETWORKING
WD80X3 = wd80x3.h
endif
include_HEADERS = bsp.h crt.h coverhd.h $(WD80X3) bspopts.h
include_HEADERS = bsp.h crt.h coverhd.h tod.h $(WD80X3) bspopts.h
coverhd.h: $(top_srcdir)/../../shared/include/coverhd.h
cp $< $@
CLEANFILES = coverhd.h
tod.h: $(top_srcdir)/../../shared/tod.h
cp $< $@
CLEANFILES = coverhd.h tod.h
$(PROJECT_INCLUDE):
$(mkinstalldirs) $@

View File

@@ -82,12 +82,18 @@ void bsp_postdriver_hook(void);
void bsp_pretasking_hook(void)
{
rtems_unsigned32 topAddr, val;
int i;
int i, lowest;
if (rtemsFreeMemStart & (CPU_ALIGNMENT - 1)) /* not aligned => align it */
rtemsFreeMemStart = (rtemsFreeMemStart+CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1);
/* find the lowest 1M boundary to probe */
lowest = ((rtemsFreeMemStart + (1<<20)) >> 20) + 1;
if ( lowest < 2 )
lowest = 2;
if(_heap_size == 0)
{
/*
@@ -95,13 +101,13 @@ void bsp_pretasking_hook(void)
* between 2M and 2048M.
* let us first write
*/
for(i=2048; i>=2; i--)
for(i=2048; i>=lowest; i--)
{
topAddr = i*1024*1024 - 4;
*(volatile rtems_unsigned32 *)topAddr = topAddr;
}
for(i=2; i<=2048; i++)
for(i=lowest; i<=2048; i++)
{
topAddr = i*1024*1024 - 4;
val = *(rtems_unsigned32 *)topAddr;

View File

@@ -38,7 +38,6 @@
| $Id$
+--------------------------------------------------------------------------*/
#include <stdlib.h>
#include <bsp.h>
@@ -51,7 +50,7 @@
#define LEAST_VALID 1 /* Don't trust a value lower than this. */
#define SLOW_DOWN_IO 0x80 /* io which does nothing */
#define TWO_MS (rtems_unsigned32)(2000) /* TWO_MS = 2000us (sic!) */
#define TWO_MS (uint32_t)(2000) /* TWO_MS = 2000us (sic!) */
#define MSK_NULL_COUNT 0x40 /* bit counter available for reading */
@@ -59,27 +58,36 @@
/*-------------------------------------------------------------------------+
| Global Variables
+--------------------------------------------------------------------------*/
volatile rtems_unsigned32 Ttimer_val;
volatile uint32_t Ttimer_val;
rtems_boolean Timer_driver_Find_average_overhead = TRUE;
volatile unsigned int fastLoop1ms, slowLoop1ms;
void (*Timer_initialize_function)(void) = 0;
uint32_t (*Read_timer_function)(void) = 0;
void (*Timer_exit_function)(void) = 0;
/*-------------------------------------------------------------------------+
| External Prototypes
+--------------------------------------------------------------------------*/
extern void timerisr(void);
/* timer (int 08h) Interrupt Service Routine (defined in 'timerisr.s') */
extern int x86_capability;
/*
* forward declarations
*/
void Timer_exit();
/*-------------------------------------------------------------------------+
| Pentium optimized timer handling.
+--------------------------------------------------------------------------*/
#if defined(pentium)
/*-------------------------------------------------------------------------+
| Function: rdtsc
| Description: Read the value of PENTIUM on-chip cycle counter.
| Global Variables: None.
| Arguments: None.
| Returns: Value of PENTIUM on-chip cycle counter.
| Returns: Value of PENTIUM on-chip cycle counter.
+--------------------------------------------------------------------------*/
static inline unsigned long long
rdtsc(void)
@@ -90,30 +98,28 @@ rdtsc(void)
return result;
} /* rdtsc */
/*-------------------------------------------------------------------------+
| Function: Timer_exit
| Description: Timer cleanup routine at RTEMS exit. NOTE: This routine is
| not really necessary, since there will be a reset at exit.
| Global Variables: None.
| Arguments: None.
| Returns: Nothing.
| Returns: Nothing.
+--------------------------------------------------------------------------*/
void
Timer_exit(void)
tsc_timer_exit(void)
{
} /* Timer_exit */
} /* tsc_timer_exit */
/*-------------------------------------------------------------------------+
| Function: Timer_initialize
| Description: Timer initialization routine.
| Global Variables: Ttimer_val.
| Arguments: None.
| Returns: Nothing.
| Returns: Nothing.
+--------------------------------------------------------------------------*/
void
Timer_initialize(void)
tsc_timer_initialize(void)
{
static rtems_boolean First = TRUE;
@@ -124,22 +130,21 @@ Timer_initialize(void)
atexit(Timer_exit); /* Try not to hose the system at exit. */
}
Ttimer_val = rdtsc(); /* read starting time */
} /* Timer_initialize */
} /* tsc_timer_initialize */
/*-------------------------------------------------------------------------+
| Function: Read_timer
| Description: Read hardware timer value.
| Global Variables: Ttimer_val, Timer_driver_Find_average_overhead.
| Arguments: None.
| Returns: Nothing.
| Returns: Nothing.
+--------------------------------------------------------------------------*/
rtems_unsigned32
Read_timer(void)
uint32_t
tsc_read_timer(void)
{
register rtems_unsigned32 total;
register uint32_t total;
total = (rtems_unsigned32)(rdtsc() - Ttimer_val);
total = (uint32_t)(rdtsc() - Ttimer_val);
if (Timer_driver_Find_average_overhead)
return total;
@@ -147,23 +152,20 @@ Read_timer(void)
return 0; /* below timer resolution */
else
return (total - AVG_OVERHEAD);
} /* Read_timer */
#else /* pentium */
} /* tsc_read_timer */
/*-------------------------------------------------------------------------+
| Non-Pentium timer handling.
+--------------------------------------------------------------------------*/
#define US_PER_ISR 250 /* Number of micro-seconds per timer interruption */
/*-------------------------------------------------------------------------+
| Function: Timer_exit
| Description: Timer cleanup routine at RTEMS exit. NOTE: This routine is
| not really necessary, since there will be a reset at exit.
| Global Variables: None.
| Arguments: None.
| Returns: Nothing.
| Returns: Nothing.
+--------------------------------------------------------------------------*/
static void
timerOff(const rtems_raw_irq_connect_data* used)
@@ -178,8 +180,7 @@ timerOff(const rtems_raw_irq_connect_data* used)
outport_byte(TIMER_CNTR0, 0);
} /* Timer_exit */
static void
static void
timerOn(const rtems_raw_irq_connect_data* used)
{
/* load timer for US_PER_ISR microsecond period */
@@ -192,10 +193,11 @@ timerOn(const rtems_raw_irq_connect_data* used)
BSP_irq_enable_at_i8259s(used->idtIndex - BSP_IRQ_VECTOR_BASE);
}
static int
static int
timerIsOn(const rtems_raw_irq_connect_data *used)
{
return BSP_irq_enabled_at_i8259s(used->idtIndex - BSP_IRQ_VECTOR_BASE);}
return BSP_irq_enabled_at_i8259s(used->idtIndex - BSP_IRQ_VECTOR_BASE);
}
static rtems_raw_irq_connect_data timer_raw_irq_data = {
BSP_PERIODIC_TIMER + BSP_IRQ_VECTOR_BASE,
@@ -211,10 +213,10 @@ static rtems_raw_irq_connect_data timer_raw_irq_data = {
| not really necessary, since there will be a reset at exit.
| Global Variables: None.
| Arguments: None.
| Returns: Nothing.
| Returns: Nothing.
+--------------------------------------------------------------------------*/
void
Timer_exit(void)
i386_timer_exit(void)
{
i386_delete_idt_entry (&timer_raw_irq_data);
} /* Timer_exit */
@@ -224,10 +226,10 @@ Timer_exit(void)
| Description: Timer initialization routine.
| Global Variables: Ttimer_val.
| Arguments: None.
| Returns: Nothing.
| Returns: Nothing.
+--------------------------------------------------------------------------*/
void
Timer_initialize(void)
i386_timer_initialize(void)
{
static rtems_boolean First = TRUE;
@@ -248,19 +250,18 @@ Timer_initialize(void)
Ttimer_val = 0;
} /* Timer_initialize */
/*-------------------------------------------------------------------------+
| Function: Read_timer
| Description: Read hardware timer value.
| Global Variables: Ttimer_val, Timer_driver_Find_average_overhead.
| Arguments: None.
| Returns: Nothing.
| Returns: Nothing.
+--------------------------------------------------------------------------*/
rtems_unsigned32
Read_timer(void)
uint32_t
i386_read_timer(void)
{
register rtems_unsigned32 total, clicks;
register rtems_unsigned8 lsb, msb;
register uint32_t total, clicks;
register uint8_t lsb, msb;
outport_byte(TIMER_MODE, TIMER_SEL0|TIMER_LATCH);
inport_byte(TIMER_CNTR0, lsb);
@@ -276,28 +277,68 @@ Read_timer(void)
return (total - AVG_OVERHEAD);
}
#endif /* pentium */
/*
* General timer functions using either TSC-based implementation
* or interrupt-based implementation
*/
void
Timer_initialize(void)
{
static rtems_boolean First = TRUE;
if (First) {
if (x86_capability & (1 << 4) ) {
#if defined(DEBUG)
printk("TSC: timer initialization\n");
#endif
Timer_initialize_function = &tsc_timer_initialize;
Read_timer_function = &tsc_read_timer;
Timer_exit_function = &tsc_timer_exit;
}
else {
#if defined(DEBUG)
printk("ISR: timer initialization\n");
#endif
Timer_initialize_function = &i386_timer_initialize;
Read_timer_function = &i386_read_timer;
Timer_exit_function = &i386_timer_exit;
}
First = FALSE;
}
(*Timer_initialize_function)();
}
uint32_t
Read_timer()
{
return (*Read_timer_function)();
}
void
Timer_exit()
{
return (*Timer_exit_function)();
}
/*-------------------------------------------------------------------------+
| Function: Empty_function
| Description: Empty function used in time tests.
| Global Variables: None.
| Arguments: None.
| Returns: Nothing.
| Returns: Nothing.
+--------------------------------------------------------------------------*/
rtems_status_code Empty_function(void)
{
return RTEMS_SUCCESSFUL;
} /* Empty function */
/*-------------------------------------------------------------------------+
| Function: Set_find_average_overhead
| Description: Set internal Timer_driver_Find_average_overhead flag value.
| Global Variables: Timer_driver_Find_average_overhead.
| Arguments: find_flag - new value of the flag.
| Returns: Nothing.
| Returns: Nothing.
+--------------------------------------------------------------------------*/
void
Set_find_average_overhead(rtems_boolean find_flag)
@@ -319,11 +360,10 @@ void loadTimerValue( unsigned short loadedValue )
outport_byte(TIMER_CNTR0, (loadedValue >> 8) & 0xff);
}
/*-------------------------------------------------------------------------+
| Description: Reads the current value of the timer, and converts the
| number of ticks to micro-seconds.
| Returns: number of clock bits elapsed since last load.
| Description: Reads the current value of the timer, and converts the
| number of ticks to micro-seconds.
| Returns: number of clock bits elapsed since last load.
+--------------------------------------------------------------------------*/
unsigned int readTimer0()
{
@@ -338,7 +378,7 @@ unsigned int readTimer0()
count = ( msb << 8 ) | lsb ;
if (status & RB_OUTPUT )
count += lastLoadedValue;
return (2*lastLoadedValue - count);
}
@@ -372,19 +412,19 @@ Calibrate_loop_1ms(void)
unsigned int targetClockBits, currentClockBits;
unsigned int slowLoopGranularity, fastLoopGranularity;
rtems_interrupt_level level;
#ifdef DEBUG_CALIBRATE
printk( "Calibrate_loop_1ms is starting, please wait ( but not too loooong. )\n" );
#endif
#endif
targetClockBits = US_TO_TICK(1000);
rtems_interrupt_disable(level);
/*
* Fill up the cache to get a correct offset
*/
Timer0Reset();
readTimer0();
/*
/*
* Compute the minimal offset to apply due to read counter register.
*/
offset = 0xffffffff;
@@ -437,24 +477,24 @@ Calibrate_loop_1ms(void)
while (1);
}
slowLoopGranularity = (res - offset - emptyCall)/ 10;
if (slowLoopGranularity == 0) {
printk("Problem #3 in Calibrate_loop_1ms in file libbsp/i386/pc386/timer/timer.c\n");
while (1);
}
targetClockBits += offset;
#ifdef DEBUG_CALIBRATE
#ifdef DEBUG_CALIBRATE
printk("offset = %u, emptyCall = %u, targetClockBits = %u\n",
offset, emptyCall, targetClockBits);
printk("slowLoopGranularity = %u fastLoopGranularity = %u\n",
slowLoopGranularity, fastLoopGranularity);
#endif
#endif
slowLoop1ms = (targetClockBits - emptyCall) / slowLoopGranularity;
if (slowLoop1ms != 0) {
fastLoop1ms = targetClockBits % slowLoopGranularity;
if (fastLoop1ms > emptyCall) fastLoop1ms -= emptyCall;
}
}
else
fastLoop1ms = targetClockBits - emptyCall / fastLoopGranularity;
@@ -462,7 +502,7 @@ Calibrate_loop_1ms(void)
/*
* calibrate slow loop
*/
while(1)
{
int previousSign = 0; /* 0 = unset, 1 = incrementing, 2 = decrementing */
@@ -497,7 +537,7 @@ Calibrate_loop_1ms(void)
/*
* calibrate fast loop
*/
if (fastLoopGranularity != 0 ) {
while(1) {
int previousSign = 0; /* 0 = unset, 1 = incrementing, 2 = decrementing */
@@ -525,11 +565,11 @@ Calibrate_loop_1ms(void)
}
}
}
#ifdef DEBUG_CALIBRATE
#ifdef DEBUG_CALIBRATE
printk("slowLoop1ms = %u, fastLoop1ms = %u\n", slowLoop1ms, fastLoop1ms);
#endif
#endif
rtems_interrupt_enable(level);
}
/*-------------------------------------------------------------------------+
@@ -537,7 +577,7 @@ Calibrate_loop_1ms(void)
| Description: loop which waits at least timeToWait ms
| Global Variables: loop1ms
| Arguments: timeToWait
| Returns: Nothing.
| Returns: Nothing.
+--------------------------------------------------------------------------*/
void
Wait_X_ms( unsigned int timeToWait){
@@ -550,9 +590,3 @@ Wait_X_ms( unsigned int timeToWait){
}
}

View File

@@ -1,3 +1,8 @@
2004-09-27 Greg Menke <gregory.menke@gsfc.nasa.gov>
PR 608/bsps
* pci/pcibios.c: BusCountPCI().
2003-12-29 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* shared/io/Makefile.am: Remove (Unused).

View File

@@ -218,6 +218,64 @@ pcib_find_by_class(int classCode, int idx, int *sig)
#define PCI_MAX_DEVICES 16
#define PCI_MAX_FUNCTIONS 8
#define PCI_VENDOR_ID 0x00 /* 16 bits */
#define PCI_DEVICE_ID 0x02 /* 16 bits */
#define PCI_CLASS_REVISION 0x08
#define PCI_HEADER_TYPE 0x0e
#define PCI_SUBORDINATE_BUS 0x1a
#define PCI_CLASS_BRIDGE_PCI 0x0604
static unsigned8 ucBusCount = 0xff;
int
BusCountPCI()
{
if( ucBusCount == 0xff )
{
unsigned char bus,dev,hd;
unsigned int d;
int sig;
ucBusCount = 0;
for(bus=0; bus< 0xff; bus++)
{
for(dev=0; dev<PCI_MAX_DEVICES; dev++)
{
sig = PCIB_DEVSIG_MAKE(bus,dev,0);
pcib_conf_read32(sig, PCI_VENDOR_ID, &d);
if( d != -1 )
{
pcib_conf_read32(sig, PCI_CLASS_REVISION, &d);
if( (d >> 16) == PCI_CLASS_BRIDGE_PCI )
{
pcib_conf_read8(sig, PCI_SUBORDINATE_BUS, &hd);
if( hd > ucBusCount )
ucBusCount = hd;
}
}
}
}
if( ucBusCount == 0 )
{
printk("BusCountPCI() found 0 busses, assuming 1\n");
ucBusCount = 1;
}
else if( ucBusCount == 0xff )
{
printk("BusCountPCI() found 0xff busses, assuming 1\n");
ucBusCount = 1;
}
}
return ucBusCount;
}
int
BSP_pciFindDevice( unsigned short vendorid, unsigned short deviceid,

View File

@@ -1,3 +1,9 @@
2004-03-05 Joel Sherrill <joel@OARcorp.com>
PR 505/bsps
* setvec.c: Rework to remove punned pointer warning generated by gcc
3.3 and newer.
2003-09-04 Joel Sherrill <joel@OARcorp.com>
* bspspuriousinit.c, m68000spurious.c, m68kpretaskinghook.c, setvec.c,

View File

@@ -26,13 +26,13 @@ m68k_isr_entry set_vector( /* returns old vector */
int type /* RTEMS or RAW intr */
)
{
m68k_isr_entry previous_isr;
rtems_isr_entry previous_isr;
if ( type )
rtems_interrupt_catch( handler, vector, (rtems_isr_entry *) &previous_isr );
rtems_interrupt_catch( handler, vector, &previous_isr );
else {
_CPU_ISR_install_raw_handler( vector, handler, (void *)&previous_isr );
}
return previous_isr;
return (m68k_isr_entry) previous_isr;
}

View File

@@ -1,3 +1,8 @@
2004-11-10 Richard Campbell <richard.campbell@oarcorp.com>
* configure.ac: Add TOD support in shared as part of adding MVME2100
BSP.
2003-08-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: Use rtems-bugs@rtems.com as bug report email address.

View File

@@ -33,6 +33,7 @@ shared/pci/Makefile
shared/residual/Makefile
shared/start/Makefile
shared/startup/Makefile
shared/tod/Makefile
shared/vectors/Makefile
shared/vme/Makefile])
AC_OUTPUT

View File

@@ -1,3 +1,12 @@
2005-10-06 Till Straumann <strauman@slac.stanford.edu>
PR 833/bsps
* irq/irq_asm.S: Currently, all (new exception) BSPs explicitely enable
the FPU across the user ISR but DONT save/restore the FPU context.
Any use of the FPU fron the user handler (e.g., due to GCC
optimizations) result in corruption. The fix results in an exception
in such cases (user ISR must explicitely save/enable/restore FPU).
2003-12-19 Joel Sherrill <joel@OARcorp.com>
PR 545/bsps

View File

@@ -12,6 +12,8 @@
* Till Straumann <strauman@slac.stanford.edu>, 2003/7:
* - store isr nesting level in _ISR_Nest_level rather than
* SPRG0 - RTEMS relies on that variable.
* Till Straumann <strauman@slac.stanford.edu>, 2005/4:
* - DONT enable FP across user USR since fpregs are never saved!!
*
* $Id$
*/
@@ -88,14 +90,8 @@ SYM (shared_raw_irq_code_entry):
/*
* Enable data and instruction address translation, exception recovery
*
* also, on CPUs with FP, enable FP so that FP context can be
* saved and restored (using FP instructions)
*/
#if (PPC_HAS_FPU == 0)
ori r3, r3, MSR_RI | MSR_IR | MSR_DR
#else
ori r3, r3, MSR_RI | MSR_IR | MSR_DR | MSR_FP
#endif
mtmsr r3
SYNC
/*
@@ -298,6 +294,27 @@ nested:
rfi
switch:
#if ( PPC_HAS_FPU != 0 )
#if ! defined( CPU_USE_DEFERRED_FP_SWITCH )
#error missing include file???
#endif
mfmsr r4
#if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE )
/* if the executing thread has FP enabled propagate
* this now so _Thread_Dispatch can save/restore the FPREGS
* NOTE: it is *crucial* to disable the FPU across the
* user ISR [independent of using the 'deferred'
* strategy or not]. We don't save FP regs across
* the user ISR and hence we prefer an exception to
* be raised rather than experiencing corruption.
*/
lwz r3, SRR1_FRAME_OFFSET(r1)
rlwimi r4, r3, 0, 18, 18 /* MSR_FP */
#else
ori r4, r4, MSR_FP
#endif
mtmsr r4
#endif
bl SYM (_Thread_Dispatch)
easy_exit:

View File

@@ -1,3 +1,8 @@
2004-10-15 Gene Smith <gene.smith@seimens.com>
PR 691/bsps
* startup/linkcmds: Correct bug in linker script.
2003-12-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
PR 533/bsps

View File

@@ -145,7 +145,6 @@ SECTIONS
PROVIDE(_heap_end = heap.end);
/* reserve 64KByte for stack... */
stack.end = heap.end + 64K;
PROVIDE(_end = stack.end);
.line 0 : { *(.line) }
.debug 0 : { *(.debug) }

View File

@@ -1,3 +1,9 @@
2004-10-02 Ralf Corsepius <ralf_corsepius@rtems.org>
PR 697/bsps
* flashentry/flashentry.S: Fix broken comments
(Patch by Thomas.Doerfler@imd-systems.de)
2003-12-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
PR 533/bsps

View File

@@ -191,7 +191,7 @@ stack_top:
lis r3,0x0100 /* size 16 MB = 0x01000000 */
bl ramacc /* test memory accessibility */
cmpi 0,0,r4,0 /* memory ok? else test smaller size */
beq ramcfgok /* ok, we found configuration... +/
beq ramcfgok /* ok, we found configuration... */
lis r2,0x0000 /* disable BR6, config not ok */
mtdcr br6,r2 /* write to DCR BR6*/
@@ -263,7 +263,7 @@ ramcfgt18:
lis r3,0x0080 /* size 8 MB = 0x00800000 */
bl ramacc /* test memory accessibility */
cmpi 0,0,r4,0 /* memory ok? else test smaller size */
beq ramcfgok /* ok, we found configuration... +/
beq ramcfgok /* ok, we found configuration... */
lis r2,0x0000 /* disable BR6, config not ok */
mtdcr br6,r2 /* write to DCR BR6*/
@@ -333,7 +333,7 @@ ramcfgt14:
lis r3,0x0040 /* size 4 MB = 0x00400000 */
bl ramacc /* test memory accessibility */
cmpi 0,0,r4,0 /* memory ok? else test smaller size */
beq ramcfgok /* ok, we found configuration... +/
beq ramcfgok /* ok, we found configuration... */
lis r2,0x0000 /* disable BR6, config not ok */
mtdcr br6,r2 /* write to DCR BR6*/

View File

@@ -1,3 +1,23 @@
2005-10-06 Till Straumann <strauman@slac.stanford.edu>
PR 833/bsps
* irq/irq_asm.S: Currently, all (new exception) BSPs explicitely enable
the FPU across the user ISR but DONT save/restore the FPU context.
Any use of the FPU fron the user handler (e.g., due to GCC
optimizations) result in corruption. The fix results in an exception
in such cases (user ISR must explicitely save/enable/restore FPU).
2005-09-12 Thomas Doerfler <Thomas.Doerfler@imd-systems.de>
PR 527/bsps
PR 822/bsps
* console/console.c, startup/bspstart.c, startup/imbx8xx.c,
startup/mmutlbtab.c, startup/start.S, vectors/vectors_init.c:
Currently the MBX8xx BSP does not boot, because some logical errors
are in the startup code. Additionally, the mpc8xx shared clock driver
does not support the clocking scheme of some of the board variants,
which are clocked from a 32768Hz (!) external crystal.
2003-12-29 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* startup/Makefile.am: start.S instead of start.s.

View File

@@ -542,6 +542,13 @@ serial_init()
unsigned int dpaddr, memaddr;
bd_t *bd;
#if NVRAM_CONFIGURE == 1
if ( ((nvram->console_mode & 0x06) != 0x04 ) ||
((nvram->console_mode & 0x30) != 0x20 )) {
/*
* FIXME: refine this condition...
*/
#endif
bd = eppcbugInfo;
cp = cpmp;
@@ -647,7 +654,26 @@ serial_init()
/* Enable transmitter/receiver.
*/
sp->smc_smcmr |= SMCMR_REN | SMCMR_TEN;
#if NVRAM_CONFIGURE == 1
}
else {
const char bootmsg_text[]= "using EPPC bug for console I/O\n";
_EPPCBug_pollWrite((nvram->console_printk_port & 0x70) >> 4,
bootmsg_text,
sizeof(bootmsg_text)-1);
}
#endif
#if NVRAM_CONFIGURE == 1
if ((nvram->console_mode & 0x30) == 0x20 ) {
BSP_output_char = _BSP_output_char;
}
else {
BSP_output_char = serial_putchar;
}
#else
BSP_output_char = serial_putchar;
#endif
}
void

View File

@@ -12,6 +12,8 @@
* Till Straumann <strauman@slac.stanford.edu>, 2003/7:
* - store isr nesting level in _ISR_Nest_level rather than
* SPRG0 - RTEMS relies on that variable.
* Till Straumann <strauman@slac.stanford.edu>, 2005/4:
* - DONT enable FP across user ISR since fpregs are never saved!!
*
* $Id$
*/
@@ -127,11 +129,7 @@ SYM (shared_raw_irq_code_entry):
* also, on CPUs with FP, enable FP so that FP context can be
* saved and restored (using FP instructions)
*/
#if (PPC_HAS_FPU == 0)
ori r3, r3, MSR_RI | MSR_IR | MSR_DR
#else
ori r3, r3, MSR_RI | MSR_IR | MSR_DR | MSR_FP
#endif
mtmsr r3
SYNC
/*
@@ -338,6 +336,27 @@ nested:
rfi
switch:
#if ( PPC_HAS_FPU != 0 )
#if ! defined( CPU_USE_DEFERRED_FP_SWITCH )
#error missing include file???
#endif
mfmsr r4
#if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE )
/* if the executing thread has FP enabled propagate
* this now so _Thread_Dispatch can save/restore the FPREGS
* NOTE: it is *crucial* to disable the FPU across the
* user ISR [independent of using the 'deferred'
* strategy or not]. We don't save FP regs across
* the user ISR and hence we prefer an exception to
* be raised rather than experiencing corruption.
*/
lwz r3, SRR1_FRAME_OFFSET(r1)
rlwimi r4, r3, 0, 18, 18 /* MSR_FP */
#else
ori r4, r4, MSR_FP
#endif
mtmsr r4
#endif
bl SYM (_Thread_Dispatch)
easy_exit:

View File

@@ -148,7 +148,7 @@ void bsp_start(void)
myCpuRevision = get_ppc_cpu_revision();
mmu_init();
/*
* Enable instruction and data caches. Do not force writethrough mode.
*/
@@ -201,7 +201,22 @@ void bsp_start(void)
if( Cpu_table.interrupt_stack_size < 4 * 1024 )
Cpu_table.interrupt_stack_size = 4 * 1024;
Cpu_table.clicks_per_usec = 1; /* for 4MHz extclk */
#if ( defined(mbx821_001b) ||\
defined(mbx821_002b) ||\
defined(mbx821_003b) ||\
defined(mbx821_004b) ||\
defined(mbx821_005b) ||\
defined(mbx821_006b) ||\
defined(mbx860_001b) ||\
defined(mbx860_002b) ||\
defined(mbx860_003b) ||\
defined(mbx860_004b) ||\
defined(mbx860_005b) ||\
defined(mbx860_006b))
Cpu_table.clicks_per_usec = 0; /* for 32768 Hz oscclk */
#else
Cpu_table.clicks_per_usec = 1; /* for 4MHz oscclk */
#endif
Cpu_table.serial_per_sec = 10000000;
Cpu_table.serial_external_clock = 1;
Cpu_table.serial_xon_xoff = 0;

View File

@@ -271,6 +271,7 @@ void _InitMBX8xx (void)
m8xx.sccrk = M8xx_UNLOCK_KEY; /* unlock SCCR */
m8xx.sccr = 0x02800000; /* for MBX860/MBX821 */
#if 0 /* IMD hack: do not init PLL after EPPCbug load */
/* Initialize the PLL, Low-Power, and Reset Control Register (PLPRCR) */
/* - set the clock speed and set normal power mode */
m8xx.plprck = M8xx_UNLOCK_KEY; /* unlock PLPRCR */
@@ -300,6 +301,7 @@ void _InitMBX8xx (void)
m8xx.plprcr = 0x4C400000;
#else
#error "MBX board not defined"
#endif
#endif
/* Unlock the timebase and decrementer registers. */
m8xx.tbk = M8xx_UNLOCK_KEY;
@@ -316,6 +318,7 @@ void _InitMBX8xx (void)
_mtspr( M8xx_TBU_WR, r1 );
_mtspr( M8xx_TBL_WR, r1 );
#if 0 /* IMD hack: do not init UPMs after EPPCbug load */
/*
* Memory Controller Initialization
*/
@@ -584,6 +587,7 @@ void _InitMBX8xx (void)
#endif
m8xx.memc[7]._br = M8xx_BR_BA(0xFC000000) | M8xx_BR_AT(0) | M8xx_BR_PS8 |
M8xx_BR_MS_GPCM | M8xx_MEMC_BR_V;
#endif /* IMD hack */
/*
* PCMCIA initialization
*/

View File

@@ -31,19 +31,8 @@
* location is equal to its real address.
*/
MMU_TLB_table_t MMU_TLB_table[] = {
#if ( defined(mbx860_001b) )
/*
* DRAM: CS1, Start address 0x00000000, 2M,
* ASID=0x0, APG=0x0, not guarded memory, copyback data cache policy,
* R/W,X for all, no ASID comparison, not cache-inhibited.
* Last 512K block is cache-inhibited, but not guarded for use by EPPCBug.
* EPN TWC RPN
*/
{ 0x00000200, 0x05, 0x000009FD }, /* DRAM - PS=512K */
{ 0x00080200, 0x05, 0x000809FD }, /* DRAM - PS=512K */
{ 0x00100200, 0x05, 0x001009FD }, /* DRAM - PS=512K */
{ 0x00180200, 0x05, 0x001809FF }, /* DRAM - PS=512K, cache-inhibited */
#elif ( defined(mbx860_002b) || \
#if ( defined(mbx860_001b) || \
defined(mbx860_002b) || \
defined(mbx860_003b) || \
defined(mbx821_001b) || \
defined(mbx821_002b) || \

View File

@@ -243,6 +243,46 @@ spin:
*/
#define LOADED_BY_EPPCBUG
#define EARLY_CONSOLE
/*
* test function: blink orange led once
*/
#define LEDBLINK_DELAY (5*1000*1000)
#define LEDPORT 0xFA100001
#define LEDMASK 0xf0
#define LEDON 0x00
#define LEDOFF 0x08
PUBLIC_VAR(ledblink)
SYM(ledblink):
lis r3,LEDBLINK_DELAY>>16
ledblink1:
subi r3,r3,1
cmpi 0,1,r3,0
bne ledblink1
/*
* turn orange led off
*/
lis r3,LEDPORT@ha
lbz r0,LEDPORT@l(r3)
andi. r0,r0,LEDMASK
ori r0,r0,LEDOFF
stb r0,LEDPORT@l(r3)
lis r3,LEDBLINK_DELAY>>16
ledblink2:
subi r3,r3,1
cmpi 0,1,r3,0
bne ledblink2
/*
* turn orange led on
*/
lis r3,LEDPORT@ha
lbz r0,LEDPORT@l(r3)
andi. r0,r0,LEDMASK
ori r0,r0,LEDON
stb r0,LEDPORT@l(r3)
blr
/*
* Initialization code
*/

View File

@@ -115,6 +115,11 @@ void initialize_exceptions()
if (!mpc8xx_vector_is_valid (i)) {
continue;
}
#if 0 /* FIXME: refine this condition, leave Syscall for EPPCBug console */
if (i == ASM_SYS_VECTOR) {
continue;
}
#endif
exception_table[i].exceptIndex = i;
exception_table[i].hdl = exception_config.defaultRawEntry.hdl;
exception_table[i].hdl.vector = i;

View File

@@ -1,3 +1,19 @@
2005-05-20 Ralf Corsepius <ralf_corsepius@rtems.org>
PR 717/bsps
* bootloader/Makefile.am: Typo results in wrong flags being used.
2004-11-16 Richard Campbell <richard.campbell@OARcorp.com>
* README.MVME2100: Update to include DBAT0.
* bsp_specs: Fix spacing.
2004-11-10 Richard Campbell <richard.campbell@oarcorp.com>
* Makefile.am, configure.ac, bootloader/Makefile.am,
include/Makefile.am, wrapup/Makefile.am: Add MVME2100 BSP.
* README.MVME2100, tod/.cvsignore, tod/Makefile.am: New files.
2003-12-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
PR 533/bsps

View File

@@ -7,12 +7,12 @@ ACLOCAL_AMFLAGS = -I ../../../../../../aclocal
# wrapup is the one that actually builds and installs the library
# from the individual .rel files built in other directories
SUBDIRS = include clock console pci residual openpic irq vectors start \
startup bootloader motorola @exceptions@ vme wrapup
startup bootloader motorola @exceptions@ tod vme wrapup
include $(top_srcdir)/../../bsp.am
EXTRA_DIST = BOOTING README.MVME2300 README.OTHERBOARDS README.dec21140 \
bsp_specs times.mcp750 times.mvme2307
EXTRA_DIST = BOOTING README.MVME2100 README.MVME2300 README.OTHERBOARDS \
README.dec21140 bsp_specs times.mcp750 times.mvme2307
include $(top_srcdir)/../../../../../../automake/subdirs.am
include $(top_srcdir)/../../../../../../automake/local.am

View File

@@ -0,0 +1,132 @@
#
# $Id$
#
The MVME2100 is a Motorola VMEbus board which is similar to the other
Motorola PowerPC boards supported by this BSP. But it does not support
the Motorola CPU Configuration Register. This makes it impossible to
dynamically probe and determine that you are executing on this board
variant. So this BSP variant must be explicitly built to only support
the MVME2100. The complete list of differences found so far is:
* No CPU Configuration Register
* one COM port
* COM port is on PCI IRQ not ISA IRQ
* limited on RAM (32 or 64 MB)
* uses the EPIC interrupt controller on the MPC8240
* does not have an ISA bus but has an ISA I/O address space
* cannot set DBAT2 in bspstart like other variants because
there are PCI/ISA Interrupt Acknowledge registers at this space
This BSP may have left some PCI memory uncovered
* PPCBug starts programs with vectors still in ROM
Supported Features:
- Interrupt driven console using termios
- Network device driver
- Real-Time Clock driver
- Clock Tick Device Driver
Things to address:
- Does not return to monitor
- Level 1 cache is disabled for now
- Check on trying to read CPU Configuration Register for CHRP/Prep for PCI
and report a failure if in the wrong mode. May be able to set the model
but it may be hard to test if we break PPCBug.
- Use NVRAM for network configuration information
BSP Features Not Implemented:
- VMEbus mapped in but untested
- OpenPIC features not required for BSP are not supported
Memory Map
==========
BAT Mapping
ffff ffff |------------------------------------| ----- ffff ffff
| ROM/FLASH Bank 0 | |
fff0 0000 |------------------------------------| |
| System I/O | |
ffe0 0000 |------------------------------------| |
| Replicated ROM/FLASH Bank 0 | |
| Replicated System I/O | |
ff80 0000 |------------------------------------| |
| ROM/FLASH Bank 1 | DBAT3
ff00 0000 |------------------------------------| - Supervisor R/W
| PCI Interrupt Acknowledge | - Cache Inhibited
fef0 0000 |------------------------------------| - Guarded
| PCI Configuration Data Register | |
fee0 0000 |------------------------------------| |
| PCI Configuration Address Register | |
fec0 0000 |------------------------------------| |
| PCI I/O Space | |
fe80 0000 |------------------------------------| |
| PCI/ISA I/O Space | |
fe00 0000 |------------------------------------| |
| PCI/ISA Memory Space | |
fd00 0000 |------------------------------------| |
| | |
| xxxxxxxxxxxxxx| ----- f000 0000
| x not mapped | |
| xxxxxxxxxxxxxx| ----- a000 0000
| | |
| | |
| | DBAT0
| | - Supervisor R/W
| | - Cache Inhibited
| | - Guarded
| | |
| | |
| | ----- 9000 0000
| | |
| | |
| PCI Memory Space | DBAT2
| | - Supervisor R/W
| | - Cache Inhibited
| | - Guarded
| | |
| | |
| | |
8000 0000 |------------------------------------| ----- 8000 0000
| x |
| x not mapped |
| Reserved xxxxxxxxxxxxxx| ----- 1000 0000
| | |
| | |
0200 0000 |------------------------------------| |
| | |
| | |
| | |
| | |
| DRAM (32MB) | DBAT1/IBAT1
| | - Supervisor R/W
| | |
| | |
| | |
| | |
0000 0000 |------------------------------------| ----- 0000 0000
TTCP Performance on First Day Run
=================================
Fedora Core 1 on (according to /proc/cpuinfo) a 300 Mhz P3 using Netgear
10/100 CardBus NIC on a dedicated 10BaseT LAN.
ON MVME2100: ttcp -t -s 192.168.2.107
REPORTED ON MVME2100:
ttcp-t: buflen=8192, nbuf=2048, align=16384/0, port=5001 tcp -> 192.168.2.107
ttcp-t: socket
ttcp-t: connect
ttcp-t: 16777216 bytes in 20.80 real seconds = 787.69 KB/sec +++
ttcp-t: 2048 I/O calls, msec/call = 10.40, calls/sec = 98.46
ttcp-t: 0.0user 20.8sys 0:20real 100% 0i+0d 0maxrss 0+0pf 0+0csw
ON MVME2100: ttcp -t -s 192.168.2.107
REPORTED ON MVME2100:
ttcp -r -s
ttcp-r: buflen=8192, nbuf=2048, align=16384/0, port=5001 tcp
ttcp-r: socket
ttcp-r: accept from 192.168.2.107
ttcp-r: 16777216 bytes in 15.41 real seconds = 1063.21 KB/sec +++
ttcp-r: 11588 I/O calls, msec/call = 1.36, calls/sec = 751.98
ttcp-r: 0.0user 15.4sys 0:15real 100% 0i+0d 0maxrss 0+0pf 0+0csw

View File

@@ -24,8 +24,8 @@ LD = @LD@
DEFAULT_INCLUDES =
# Remove references to EABI when compiling bootloader
BOOTLOADER_CPU_FLAGS=$(subst -msdata=eabi,,$(subst -meabi,,$(CPU_CFLAGS)))
AM_CPPFLAGS = -D__BOOT__ -DDEBUG
BOOTLOADER_CPU_CFLAGS=$(subst -msdata=eabi,,$(subst -meabi,,$(CPU_CFLAGS)))
AM_CPPFLAGS = -D__BOOT__
AM_CFLAGS = \
$(GCC_SPECS) -specs bsp_specs -qrtems -mrelocatable \
-msoft-float -mstrict-align -fno-builtin -Wall -mmultiple \

View File

@@ -3,11 +3,10 @@
%rename startfile old_startfile
%rename link old_link
*lib:
%{!qrtems: %(old_lib)} %{!nostdlib: %{qrtems: --start-group \
%{!qrtems_debug: -lrtemsbsp -lrtemscpu} %{qrtems_debug: -lrtemsbsp_g -lrtemscpu_g} \
-lc -lgcc --end-group \
-lc -lgcc --end-group \
%{!qnolinkcmds: -T linkcmds%s}}}
*startfile:

View File

@@ -20,6 +20,16 @@ AM_CONDITIONAL(HAS_NETWORKING,test "$HAS_NETWORKING" = "yes")
AS=$CC
AM_PROG_AS
RTEMS_BSPOPTS_SET([mvme2100],[mvme2100],[1])
RTEMS_BSPOPTS_SET([mvme2100],[*],[])
RTEMS_BSPOPTS_HELP([mvme2100],
[Defined for MVME2100 -- undefined for others])
RTEMS_BSPOPTS_SET([mpc8240],[mvme2100],[1])
RTEMS_BSPOPTS_SET([mpc8240],[*],[])
RTEMS_BSPOPTS_HELP([mpc8240],
[Defined for boards with MPC8240 -- undefined for others])
RTEMS_BSPOPTS_SET([PPC_USE_DATA_CACHE],[*],[1])
RTEMS_BSPOPTS_HELP([PPC_USE_DATA_CACHE],
[If defined, then the PowerPC specific code in RTEMS will use
@@ -43,6 +53,7 @@ pci/Makefile
residual/Makefile
start/Makefile
startup/Makefile
tod/Makefile
vectors/Makefile
vme/Makefile
wrapup/Makefile])

View File

@@ -5,11 +5,12 @@
include_HEADERS = bspopts.h
include_HEADERS += ../../shared/include/nvram.h ../../shared/include/bsp.h \
../../../shared/include/coverhd.h
../../../shared/include/coverhd.h ../../../shared/tod.h
include_bspdir = $(includedir)/bsp
include_bsp_HEADERS = ../../shared/console/consoleIo.h ../../shared/console/uart.h \
../../shared/irq/irq.h ../../shared/motorola/motorola.h
include_bsp_HEADERS = ../../shared/console/consoleIo.h \
../../shared/console/uart.h ../../shared/irq/irq.h \
../../shared/motorola/motorola.h
$(PROJECT_INCLUDE):
$(mkinstalldirs) $@
@@ -29,6 +30,9 @@ $(PROJECT_INCLUDE)/bsp.h: ../../shared/include/bsp.h
$(PROJECT_INCLUDE)/coverhd.h: ../../../shared/include/coverhd.h
$(INSTALL_DATA) $< $@
$(PROJECT_INCLUDE)/tod.h: ../../../shared/tod.h
$(INSTALL_DATA) $< $@
$(PROJECT_INCLUDE)/bsp/consoleIo.h: ../../shared/console/consoleIo.h
$(INSTALL_DATA) $< $@
@@ -46,6 +50,7 @@ TMPINSTALL_FILES += $(PROJECT_INCLUDE)/bspopts.h
TMPINSTALL_FILES += $(PROJECT_INCLUDE)/bsp.h
TMPINSTALL_FILES += $(PROJECT_INCLUDE)/nvram.h
TMPINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
TMPINSTALL_FILES += $(PROJECT_INCLUDE)/tod.h
TMPINSTALL_FILES += $(PROJECT_INCLUDE)/bsp
TMPINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/motorola.h

View File

@@ -0,0 +1,22 @@
##
## $Id$
##
VPATH = @srcdir@:@srcdir@/../../shared/tod:@srcdir@/../../../shared
C_FILES = todcfg.c tod.c
C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.$(OBJEXT))
OBJS = $(C_O_FILES)
include $(top_srcdir)/../../../../../../automake/compile.am
include $(top_srcdir)/../../../../../../automake/lib.am
#
# (OPTIONAL) Add local stuff here using +=
#
all-local: $(ARCH) $(OBJS)
include $(top_srcdir)/../../../../../../automake/local.am

View File

@@ -2,7 +2,8 @@
## $Id$
##
BSP_PIECES = clock console irq openpic pci residual startup vectors motorola vme
BSP_PIECES = clock console irq openpic pci residual startup \
tod vectors motorola vme
# bummer; have to use $foreach since % pattern subst rules only replace 1x
OBJS = $(foreach piece, $(BSP_PIECES), ../$(piece)/$(ARCH)/*.$(OBJEXT)) \

View File

@@ -1,3 +1,22 @@
2005-10-06 Till Straumann <strauman@slac.stanford.edu>
PR 833/bsps
* irq/irq_asm.S: Currently, all (new exception) BSPs explicitely enable
the FPU across the user ISR but DONT save/restore the FPU context.
Any use of the FPU fron the user handler (e.g., due to GCC
optimizations) result in corruption. The fix results in an exception
in such cases (user ISR must explicitely save/enable/restore FPU).
2004-09-27 Joel Sherrill <joel@OARcorp.com>
PR 680/bsps
* network/if_hdlcsubr.c: Add missing #include <rtems/rtems_bsdnet.h>.
2004-04-07 Joel Sherrill <joel@OARcorp.com>
PR 602/bsps
* irq/irq.h: Fix typo.
2003-12-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
PR 545/bsps

View File

@@ -348,7 +348,7 @@ int BSP_rtems_irq_mngt_get(rtems_irq_global_settings**);
extern void BSP_rtems_irq_mng_init(unsigned cpuId);
#ifdef __cplusplus
extern "C" {
}
#endif
#endif

View File

@@ -12,6 +12,9 @@
* Modifications to store nesting level in global _ISR_Nest_level
* variable instead of SPRG0. Andy Dachs <a.dachs@sstl.co.uk>
*
* Till Straumann <strauman@slac.stanford.edu>, 2005/4:
* - DONT enable FP across user ISR since fpregs are never saved!!
*
* $Id$
*/
@@ -93,11 +96,7 @@ SYM (shared_raw_irq_code_entry):
* also, on CPUs with FP, enable FP so that FP context can be
* saved and restored (using FP instructions)
*/
#if (PPC_HAS_FPU == 0)
ori r3, r3, MSR_RI /*| MSR_IR | MSR_DR*/
#else
ori r3, r3, MSR_RI | /*MSR_IR | MSR_DR |*/ MSR_FP
#endif
mtmsr r3
SYNC
@@ -301,6 +300,27 @@ nested:
rfi
switch:
#if ( PPC_HAS_FPU != 0 )
#if ! defined( CPU_USE_DEFERRED_FP_SWITCH )
#error missing include file???
#endif
mfmsr r4
#if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE )
/* if the executing thread has FP enabled propagate
* this now so _Thread_Dispatch can save/restore the FPREGS
* NOTE: it is *crucial* to disable the FPU across the
* user ISR [independent of using the 'deferred'
* strategy or not]. We don't save FP regs across
* the user ISR and hence we prefer an exception to
* be raised rather than experiencing corruption.
*/
lwz r3, SRR1_FRAME_OFFSET(r1)
rlwimi r4, r3, 0, 18, 18 /* MSR_FP */
#else
ori r4, r4, MSR_FP
#endif
mtmsr r4
#endif
bl SYM (_Thread_Dispatch)
easy_exit:

View File

@@ -48,6 +48,8 @@
* $Id$
*/
#include <rtems/rtems_bsdnet.h>
#include <sys/param.h>
/*#include <sys/systm.h>
#include <sys/kernel.h> */

View File

@@ -1,3 +1,29 @@
2005-04-11 Jennifer Averett <jennifer@OARcorp.com>
PR 777/bsps
* include/bsp.h: Add a Processor_Synchronize command in bsp.h
2005-03-17 Joel Sherrill <joel@OARcorp.com>
* irq/.cvsignore: New file.
2004-11-22 Jennifer Averett <jennifer@OARcorp.com>
* Makefile.am, wrapup/Makefile.am: Pick up SHM driver when MP enabled.
2004-11-22 Jennifer Averett <jennifer@OARcorp.com>
PR 617/bsps
PR 581/bsps
* Makefile.am, bsp_specs, configure.ac, clock/Makefile.am,
include/bsp.h, start/Makefile.am, start/start.S, startup/Makefile.am,
startup/bspstart.c, startup/linkcmds, vectors/Makefile.am,
vectors/vectors.S, wrapup/Makefile.am: Convert PSIM to new exception
model.
* irq/Makefile.am, irq/irq.c, irq/irq.h, irq/irq_asm.S,
irq/irq_init.c: New files.
* clock/clock.c: Removed.
2003-12-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
PR 533/bsps

View File

@@ -6,7 +6,7 @@ ACLOCAL_AMFLAGS = -I ../../../../../../aclocal
# wrapup is the one that actually builds and installs the library
# from the individual .rel files built in other directories
SUBDIRS = include start clock console startup shmsupp timer vectors \
SUBDIRS = include start irq clock console startup shmsupp timer vectors \
@exceptions@ wrapup \
tools

View File

@@ -10,13 +10,13 @@
%{!qnolinkcmds: -T linkcmds%s}}}
*startfile:
%{!qrtems: %(old_startfile)} %{!nostdlib: %{qrtems: ecrti%O%s \
%{!qrtems: %(old_startfile)} %{!nostdlib: %{qrtems: ecrti%O%s rtems_crti%O%s crtbegin.o%s \
%{!qrtems_debug: start.o%s} \
%{qrtems_debug: start_g.o%s}}}
*endfile:
%{!qrtems: %(old_endfile)} %{qrtems: ecrtn%O%s}
*link:
%{!qrtems: %(old_link)} %{qrtems: -Qy -dp -Bstatic -e _start -u __vectors}
*endfile:
%{!qrtems: %(old_endfile)} %{qrtems: crtend.o%s ecrtn.o%s}

View File

@@ -3,9 +3,9 @@
##
PGM = $(ARCH)/clock.rel
VPATH = @srcdir@:@srcdir@/../../shared/clock
C_FILES = clock.c
C_FILES = p_clock.c
C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.$(OBJEXT))
OBJS = $(C_O_FILES)
@@ -17,15 +17,8 @@ include $(top_srcdir)/../../../../../../automake/lib.am
# (OPTIONAL) Add local stuff here using +=
#
$(PGM): $(OBJS)
$(make-rel)
# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile
all-local: $(ARCH) $(OBJS) $(PGM)
.PRECIOUS: $(PGM)
EXTRA_DIST = clock.c
all-local: $(ARCH) $(OBJS)
include $(top_srcdir)/../../../../../../automake/local.am

View File

@@ -1,51 +0,0 @@
/*
* Instantiate the clock driver shell for psim based
* on the decrementer register.
*
* $Id$
*/
#include <rtems.h>
/*
* If defined, speed up the clock ticks while the idle task is running so
* time spent in the idle task is minimized. This significantly reduces
* the wall time required to execute the RTEMS test suites.
*/
/* #define CLOCK_DRIVER_USE_FAST_IDLE */
#define CLOCK_VECTOR PPC_IRQ_DECREMENTER
/* On psim, each click of the decrementer register corresponds
* to 1 instruction. By setting this to 100, we are indicating
* that we are assuming it can execute 100 instructions per
* microsecond. This corresponds to sustaining 1 instruction
* per cycle at 100 Mhz. Whether this is a good guess or not
* is anyone's guess.
*/
extern int PSIM_INSTRUCTIONS_PER_MICROSECOND;
unsigned int PPC_DECREMENTER_CLICKS;
#define Clock_driver_support_install_isr( _new, _old ) \
do { \
_old = (rtems_isr_entry) set_vector( _new, CLOCK_VECTOR, 1 ); \
PPC_DECREMENTER_CLICKS = (unsigned int)&PSIM_INSTRUCTIONS_PER_MICROSECOND; \
PPC_DECREMENTER_CLICKS *= rtems_configuration_get_microseconds_per_tick(); \
/* PPC_DECREMENTER_CLICKS = 5000; */ \
} while(0)
#define Clock_driver_support_initialize_hardware() \
do { \
unsigned int _clicks = PPC_DECREMENTER_CLICKS; \
PPC_Set_decrementer( _clicks ); \
} while (0)
#define Clock_driver_support_at_tick() \
Clock_driver_support_initialize_hardware()
#define Clock_driver_support_shutdown_hardware()
#include "../../../shared/clockdrv_shell.c"

Some files were not shown because too many files have changed in this diff Show More