Commit Graph

3433 Commits

Author SHA1 Message Date
Joel Sherrill
43b6f757ce 2000-11-30 Joel Sherrill <joel@OARcorp.com>
* General effort to make things compile with macros not inlines
	* inline/rtems/score/coremutex.inl: Added comment indicating
	for macros there is another copy of
	_CORE_mutex_Seize_interrupt_trylock() in src/coremutexseize.c.
	* src/coremutexseize.c: Added body of
	_CORE_mutex_Seize_interrupt_trylock() for macro case.
	* macros/rtems/score/coremutex.inl: Added prototype for
	_CORE_mutex_Seize_interrupt_trylock() since there is a real
	body when macros are enabled.
	* macros/rtems/score/coresem.inl: Added macro implementation of
	_CORE_semaphore_Seize_isr_disable.
	* macros/score/Makefile.am: Fixed typos.
	* rtems/score/address.inl: Correct macro implementation of
	_Addresses_Is_aligned() so it would compile.
	* macros/rtems/score/coremsg.inl: Added closing parentheses.
2000-11-30 14:08:30 +00:00
Joel Sherrill
7f8c11c73d 2000-11-30 Joel Sherrill <joel@OARcorp.com>
* cpu_asm.S: Changed "_CPU_Ccontext_switch_restore: typo to
	correct name of _CPU_Context_switch_restore.  Added dummy
	version of exc_utlb_code() so applications would link.
2000-11-30 14:02:33 +00:00
Joel Sherrill
88d7985260 2000-11-30 Joel Sherrill <joel@OARcorp.com>
* include/rtems/Makefile.am: Added termiostypes.h.
	* libc/Makefile.am: Removed termiostypes.h.
	* libc/termios.c: Changed include of "termiostypes.h" to
	<rtems/termiostypes.h> since that is an RTEMS specific header file.
2000-11-30 14:00:39 +00:00
Joel Sherrill
1a94770a77 2000-11-30 Joel Sherrill <joel@OARcorp.com>
* modem/ppp_tty.c: Changed to include <rtems/termiostypes.h> since
	that is an RTEMS specific header file.
2000-11-30 13:58:22 +00:00
Joel Sherrill
a58638b46a 2000-11-30 Joel Sherrill <joel@OARcorp.com>
* sys/ttycom.h: Moved to lib/include/sys.
	* Makefile.am: Modified to reflect above.
2000-11-30 13:57:33 +00:00
Joel Sherrill
f5f31dd5a0 2000-11-28 Joel Sherrill <joel@OARcorp.com>
* include/sys/ttycom.h: New file -- moved from libnetworking/sys.
	* Makefile.am: Modified to reflect above.
2000-11-30 13:55:41 +00:00
Joel Sherrill
6b5519a4f3 2000-11-28 Joel Sherrill <joel@OARcorp.com>
* src/imfs/memfile.c: Bug report from Sturniolo Jose
	<jsturnio@nec.com.ar> where NULL pointer was dereferenced.
2000-11-28 21:53:48 +00:00
Joel Sherrill
e23afc3638 2000-11-28 Sergei Organov <osv@javad.ru>
* libc/getcwd.c: Ensure _closedir(dir) is called even on
	error exit from the routine.
2000-11-28 21:49:27 +00:00
Joel Sherrill
66fedb46fe 2000-11-28 Chris Johns <ccj@acm.org>
* src/heapallocate.c: Do not allow the size to overflow when
	adjusting it.  A test allocated a stack of -1 (~0). This
	actually resulted in a stack being allocated but with a
	size of 0xb. The allocator did not test the size to see if
	it rolled through 0 and so allowed the allocation to happen, the
	thread to get created. The task crashed as you would expect.
2000-11-28 21:47:39 +00:00
Joel Sherrill
11edb53f85 2000-11-27 Joel Sherrill <joel@OARcorp.com>
* README, sim68000.setup, clock/clockdrv.c: Modified to add
	support for timer as clock tick source.  Compiles but untested.
2000-11-27 17:52:48 +00:00
Joel Sherrill
a080705682 2000-11-27 Joel Sherrill <joel@OARcorp.com>
* libc/termiostypes.h: New file -- missed in earlier commits.
2000-11-27 17:05:41 +00:00
Joel Sherrill
bcefea16ab 2000-11-27 Joel Sherrill <joel@OARcorp.com>
* libc/res_init.c: Fix typo - adding missing # on include.
2000-11-27 17:03:22 +00:00
Joel Sherrill
a0488a4471 2000-11-27 Joel Sherrill <joel@OARcorp.com>
* cache/cache.h: Fix reference to MC68040 and put in stubs
	for missing support routines.  The functionality of these
	routines needs to be addressed.
2000-11-27 17:02:39 +00:00
Joel Sherrill
9ad0087105 2000-11-27 Joel Sherrill <joel@OARcorp.com>
* startup/linkcmds: Fix typo and add extra 0 to base address.
	Now runs until printf() tries to put a character and then
	it locks up checking a status bit that does not change.
2000-11-27 17:01:47 +00:00
Joel Sherrill
eb4c6c0038 2000-11-27 Joel Sherrill <joel@OARcorp.com>
* configure.in: Change mips64orion reference to mips.
2000-11-27 17:00:43 +00:00
Joel Sherrill
1d2cfc01b0 2000-11-27 Joel Sherrill <joel@OARcorp.com>
* start/start.S, startup/bspstart.c: Not functional for CPU32
	but hopefully will compile now and give a warning saying that
	the CPU32 variant needs work.
2000-11-27 16:59:57 +00:00
Joel Sherrill
a3cdac302f 2000-11-27 Joel Sherrill <joel@OARcorp.com>
* src/sysconf.c: Add support for _SC_CLK_TCK and _SC_OPEN_MAX.
2000-11-27 16:58:41 +00:00
Joel Sherrill
86ec6edbe9 2000-11-27 Joel Sherrill <joel@OARcorp.com>
* The shsim is for the SH simulator in gdb. It should be able
	to be used with multiple SH CPU models.
	* .cvsignore, ChangeLog, Makefile.am, README, bsp_specs,
	configure.in, clock/.cvsignore, clock/Makefile.am,
	clock/clockdrv.c, console/.cvsignore, console/Makefile.am,
	console/console-io.c, console/console-support.S,
	include/.cvsignore, include/Makefile.am, include/bsp.h,
	start/.cvsignore, start/Makefile.am, start/regs.S,
	start/start.S, startup/.cvsignore, startup/Makefile.am,
	startup/bspstart.c, startup/linkcmds, wrapup/.cvsignore,
	wrapup/Makefile.am: New files.
2000-11-27 16:00:50 +00:00
Joel Sherrill
85a0f07fb8 2000-11-25 Antti P Miettinen <antti.p.miettinen@nokia.com>
* wrapup/Makefile.am: Added modem subdir.
	* configure.in, Makefile.am: Added modem subdir.
	* net/Makefile.am: Added if_pppvar.h, pppcompress.h.
	* pppd/Makefile.am: Added pppmain.c (which needs work).
	* pppd/chat.c, pppd/fsm.c, pppd/fsm.h, pppd/ipxcp.c, pppd/main.c,
	pppd/ppp_tty.c, pppd/upap.c: Changes from Thomas Doerfler
	<Thomas.Doerfler@imd-systems.de> and cosmetic changes by me.
	Actually main.c and ppp_tty.c should be scratched. The modem
	subdir has the real ppp_tty.c and the real pppd main is in pppmain.c.
2000-11-25 22:10:01 +00:00
Joel Sherrill
f0864664e1 2000-11-25 Eric Norum <eric.norum@usask.ca>
* libc/res_init.c: Move include to avoid compiler dumping core.
2000-11-25 19:45:56 +00:00
Joel Sherrill
a6abd67af5 2000-11-25 Antti P Miettinen <antti.p.miettinen@nokia.com>
* wrapup/Makefile.am: Added modem subdir.
	* configure.in, Makefile.am: Added modem subdir.
	* net/Makefile.am: Added if_pppvar.h, pppcompress.h.
	* pppd/Makefile.am: Added pppmain.c (which needs work).
	* pppd/chat.c, pppd/fsm.c, pppd/fsm.h, pppd/ipxcp.c, pppd/main.c,
	pppd/ppp_tty.c, pppd/upap.c: Changes from Thomas Doerfler
	<Thomas.Doerfler@imd-systems.de> and cosmetic changes by me.
	Actually main.c and ppp_tty.c should be scratched. The modem
	subdir has the real ppp_tty.c and the real pppd main is in pppmain.c.
2000-11-25 19:42:21 +00:00
Joel Sherrill
e2af631fef 2000-11-25 Antti P Miettinen <antti.p.miettinen@nokia.com>
* libc/termios.c, libc/termiostypes.h: Task driver driver model
	and line discipline support from Thomas Doerfler
	<Thomas.Doerfler@imd-systems.de>.
2000-11-25 19:35:53 +00:00
Joel Sherrill
c8471315ff 2000-11-25 Joel Sherrill <joel@OARcorp.com>
* The JMR BSP is for a Toshiba TX39 evaluation board but
	can also be used with the mips simulator in gdb.
	* .cvsignore, ChangeLog, Makefile.am, README, bsp_specs,
	configure.in, clock/.cvsignore, clock/Makefile.am,
	clock/clockdrv.c, console/.cvsignore, console/Makefile.am,
	console/console-io.c, include/.cvsignore,
	include/Makefile.am, include/bsp.h, start/.cvsignore,
	start/Makefile.am, start/regs.S, start/start.S,
	startup/.cvsignore, startup/Makefile.am, startup/bspstart.c,
	startup/linkcmds, wrapup/.cvsignore, wrapup/Makefile.am: New files.
2000-11-25 18:58:05 +00:00
Joel Sherrill
a55158a684 2000-11-25 Joel Sherrill <joel@OARcorp.com>
* TESTED: Added jmr3904 entry.
2000-11-25 18:46:51 +00:00
Joel Sherrill
d543c5debd 2000-11-20 Joel Sherrill <joel@OARcorp.com>
* TESTED: Added new sparc variations (erc32, leon, and Tharsys).
2000-11-21 14:06:08 +00:00
Joel Sherrill
669a6dc364 2000-11-21 Jiri Gaisler <jgais@ws.estec.esa.nl>
* cpu_asm.S: Fix for CPUs with FPU revision B or C.
2000-11-21 14:03:17 +00:00
Joel Sherrill
a1c86a4c51 2000-11-21 Jiri Gaisler <jgais@ws.estec.esa.nl>
* erc32sonic/erc32sonic.c: Minor modifications which enable
	network interface to come up and work for some time before
	getting an error in the SONIC driver.  The error is a bit random,
	sometimes MCLGET (m, M_WAIT) tries to access memory way outside the
	available ram (and traps) while sometimes there is a panic due
	to RBAE/RXEN.
2000-11-21 14:02:17 +00:00
Jennifer Averett
c9fcb34015 2000-11-17 Jennifer Averett <jennifer@OARcorp.com>
* psxstat/test.c, psxstat/psxstat.scn: Forced inode numbers
	to remain consistant across platforms and bsps by forcing
	a mount point in front of all paths.

2000-11-17	Jennifer Averret <jennifer@OARcorp.com>

	* psxmount/test.c, psxmount/psxmount.scn: Improve output to report
	expected error condition in one case.
	* psxreaddir/test.c, psxreaddir.scn: Added test cases to exercise
	readdir() of root of mounted filesystem.  Also corrected the screen
	file for some mistakes noticed in this effort.
2000-11-20 14:34:17 +00:00
Jennifer Averett
ee95538746 2000-11-17 Jennifer Averret <jennifer@OARcorp.com>
* psxmount/test.c, psxmount/psxmount.scn: Improve output to report
	expected error condition in one case.
	* psxreaddir/test.c, psxreaddir.scn: Added test cases to exercise
	readdir() of root of mounted filesystem.  Also corrected the screen
	file for some mistakes noticed in this effort.
2000-11-20 13:58:55 +00:00
Joel Sherrill
51252af93d 2000-11-20 Joel Sherrill <joel@OARcorp.com>
* itrontask01/system.h: Configure enough stack memory.
2000-11-20 13:36:20 +00:00
Joel Sherrill
bde7e18ea0 2000-11-20 Dmitry Kargapolov <dk@gentex.ru>
* libc/mount.c: Make sure there is space allocated for a device name
	in the mount table entry.
2000-11-20 13:29:21 +00:00
Jennifer Averett
2e3ce06b7f 2000-11-17 Jennifer Averret <jennifer@OARcorp.com>
* psxmount/test.c, psxmount/psxmount.scn: Improve output to report
	expected error condition in one case.
	* psxreaddir/test.c, psxreaddir.scn: Added test cases to exercise
	readdir() of root of mounted filesystem.  Also corrected the screen
	file for some mistakes noticed in this effort.
2000-11-17 21:29:31 +00:00
Jennifer Averett
1e566bbb1c 2000-11-17 Jennifer Averret <jennifer@OARcorp.com>
* psxmount/test.c, psxmount/psxmount.scn: Improve output to report
	expected error condition in one case.
	* psxreaddir/test.c, psxreaddir.scn: Added test cases to exercise
	readdir() of root of mounted filesystem.  Also corrected the screen
	file for some mistakes noticed in this effort.
2000-11-17 19:06:40 +00:00
Jennifer Averett
13e47e2e6b 2000-11-17 Jennifer Averret <jennifer@OARcorp.com>
* src/imfs/imfs_eval.c: Always return imaginary node at mount points.
2000-11-17 18:46:03 +00:00
Jennifer Averett
4b0d1ab39b 2000-11-17 Jennifer Averret <jennifer@OARcorp.com>
* libc/mount.c (search_mt_for_mount_point): Deleted routine.
	* libc/mount.c (Is_node_fs_root): Replacement for above that
	accounts for the imaginary root node being returned by the
	filesystem evaluation routine.
	* libc/unmount.c (unmount): Account for imaginary root node
	being returned and improved variable names to clarify code.
	* libc/unmount.c (file_systems_below_this_mountpoint):  Body of
	routine replaced to account for imaginary root node being returned.
2000-11-17 18:42:02 +00:00
Joel Sherrill
39cdc26ed9 2000-11-13 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.inc.in: Use * instead of *_FOR_TARGET (BUG-FIX).
2000-11-15 21:56:14 +00:00
Joel Sherrill
1abb56be5a 2000-11-13 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Cleanup.
2000-11-15 21:47:01 +00:00
Joel Sherrill
4445e3c435 2000-11-13 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* include/Makefile.am: Cleanup.
2000-11-15 21:46:47 +00:00
Joel Sherrill
c34ac29529 2000-11-13 Joel Sherrill <joel@OARcorp.com>
* psxmount/psxmount.scn, psxmount/test.c: Correct spelling.
2000-11-15 21:41:04 +00:00
Joel Sherrill
ca4060826d 2000-11-14 Jiri Gaisler <jgais@ws.estec.esa.nl>
* Makefile.am, configure.in: Added support for instruction
	cache enabling based on CPU model.
	* cache/.cvsignore, cache/Makefile.am, cache/cache.c,
	cache/cache_.h: New files.
2000-11-15 21:40:05 +00:00
Joel Sherrill
cb887486ef 2000-11-14 Jiri Gaisler <jgais@ws.estec.esa.nl>
* shared/src/cache_manager.c
	(rtems_cache_invalidate_multiple_instruction_lines): If
	CPU_INSTRUCTION_CACHE_ALIGNMENT is defined but 0, then there is
	an instruction cache but no notion of line size.
2000-11-15 21:38:55 +00:00
Joel Sherrill
23bdd25eef 2000-11-14 Jiri Gaisler <jgais@ws.estec.esa.nl>
* wrapup/Makefile.am: Pick up cache code from libcpu and pick
	up .o's instead of .rel's from libcpu.
2000-11-15 21:35:01 +00:00
Joel Sherrill
477e2d195f 2000-11-14 Jiri Gaisler <jgais@ws.estec.esa.nl>
* cpu.c, rtems/cpu/sparc.h: Make floating point optional based
	on gcc arguments.  Do not initialize FP context if there is
	no FPU.  Flush instruction cache after installing RTEMS trap handler.
2000-11-15 21:33:35 +00:00
Joel Sherrill
603f30f144 2000-11-14 Jiri Gaisler <jgais@ws.estec.esa.nl>
* startup/boardinit.S: St 32-bit ram width by default.
2000-11-15 18:14:06 +00:00
Joel Sherrill
f5f54cfa54 2000-11-13 Jiri Gaisler <jgais@ws.estec.esa.nl>
* ChangeLog, .cvsignore, Makefile.am, bspclean.c, bspstart.c,
	gnatcommon.c, start.S:  New files.  Largely moved from ERC32
	BSP to be able to be shared with LEON and other SPARC BSPs.
2000-11-13 23:00:51 +00:00
Joel Sherrill
f6ef823a22 2000-11-13 Jiri Gaisler <jgais@ws.estec.esa.nl>
* network/sonic.c: Added ipalign() routine to align the
	received packet so that the ip header is on a 32-bit boundary.
	Necessary for cpu's that do not allow unaligned loads and stores
	and when the 32-bit DMA mode is used.
2000-11-13 22:58:36 +00:00
Joel Sherrill
599b8b26f0 2000-11-13 Jiri Gaisler <jgais@ws.estec.esa.nl>
* Makefile.am, configure.in: Added shared directory as part
	of enhancing ERC32 and adding LEON.
2000-11-13 22:41:50 +00:00
Joel Sherrill
b21b0ab3e7 2000-11-13 Jiri Gaisler <jgais@ws.estec.esa.nl>
* .cvsignore, ChangeLog, Makefile.am, README, bsp_specs,
	configure.in, 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, start/.cvsignore,
	start/Makefile.am, startup/.cvsignore, startup/Makefile.am,
	startup/boardinit.S, startup/linkcmds, startup/setvec.c,
	startup/spurious.c, timer/.cvsignore, timer/Makefile.am,
	timer/timer.c, tools/.cvsignore, tools/Makefile.am,
	tools/configure.in, tools/runtest.in, wrapup/.cvsignore,
	wrapup/Makefile.am: New file.
2000-11-13 22:40:29 +00:00
Joel Sherrill
3eec211fd2 2000-11-13 Jiri Gaisler <jgais@ws.estec.esa.nl>
* ChangeLog, .cvsignore, Makefile.am, bspclean.c, bspstart.c,
	gnatcommon.c, start.S:  New files.  Largely moved from ERC32
	BSP to be able to be shared with LEON and other SPARC BSPs.
2000-11-13 22:31:22 +00:00
Joel Sherrill
270042352b 2000-11-13 Jiri Gaisler <jgais@ws.estec.esa.nl>
* Makefile.am, configure.in, gnatsupp/Makefile.am,
	gnatsupp/gnatsupp.c, include/Makefile.am, include/bsp.h,
	start/Makefile.am, startup/Makefile.am, startup/setvec.c,
	wrapup/Makefile.am:
	* erc32sonic: New directory.
	* erc32sonic/Makefile.am, erc32sonic/erc32sonic.c,
	erc32sonic/.cvsignore: New files.
	* include/erc32.h: New file.
	* startup/boardinit.S: New file.
	Big update of SPARC support for ERC32 and LEON.
	Added support for ERC32 without floating point.
	Added SONIC support as configured on Tharsys ERC32 board.
	The bsp's share various code in the shared directory:
	   gnat-support, start-up code, etc.
	To decrease the foot-print, I removed the 16 kbyte start-up
	stack that was put in .bss and never reused once the system
	was up. The stack is now put between the heap and the
	workspace. To reclaim it, the user can do a rtems_region_extend
	to merge the stack to the heap region once the system is up.
2000-11-13 22:29:14 +00:00