Commit Graph

74 Commits

Author SHA1 Message Date
Joel Sherrill
fa1dbc076a 2001-04-03 Joel Sherrill <joel@OARcorp.com>
* Per PR94, all rtems/score/CPUtypes.h are named rtems/score/types.h.
	* rtems/score/unixtypes.h: Removed.
	* rtems/score/types.h: New file via CVS magic.
	* Makefile.am, rtems/score/cpu.h: Account for name change.
2002-04-03 14:07:20 +00:00
Joel Sherrill
652aa3068a 2001-03-28 Joel Sherrill <joel@OARcorp.com>
* cpu.c: Define fix_syscall_errno() to nothing so MP links.
2002-03-28 18:10:55 +00:00
Joel Sherrill
7273b6e166 2002-03-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac:
	AC_INIT(package,_RTEMS_VERSION,_RTEMS_BUGS).
	AM_INIT_AUTOMAKE([no-define foreign 1.6]).
	* Makefile.am: Remove AUTOMAKE_OPTIONS.
2002-03-28 00:54:58 +00:00
Joel Sherrill
afb802cd59 2002-02-13 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: Fix the test to determine cpu context size.
2002-02-13 14:29:42 +00:00
Joel Sherrill
7d7e9fbb6a 2001-02-05 Joel Sherrill <joel@OARcorp.com>
* .cvsignore: Added stamp-h.in.
2002-02-05 20:07:35 +00:00
Joel Sherrill
1feedea303 2002-01-23 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Merge in rtems/Makefile.am and
	rtems/score/Makefile.am. Remove gensize. Require automake-1.5.
	* rtems/Makefile.am: Removed.
	* rtems/score/Makefile.am: Removed.
	* rtems/score/.cvsignore: Add unixsize.h*. Add stamp-h*.
	* configure.ac: Add AM_CONFIG_HEADER(rtems/score/unixsize.h).
	* rtems/score/cpu.h: Replace CPU_CONTEXT_SIZE_IN_BYTES with
	SIZEOF_CPU_CONTEXT.
2002-01-24 14:13:15 +00:00
Joel Sherrill
e9718415b4 2001-12-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Add multilib support.
2001-12-19 14:36:28 +00:00
Joel Sherrill
4db3028304 2001-11-28 Joel Sherrill <joel@OARcorp.com>,
This was tracked as PR91.
	* rtems/score/cpu.h: Added CPU_PROVIDES_ISR_IS_IN_PROGRESS macro which
	is used to specify if the port uses the standard macro for this (FALSE).
	A TRUE setting indicates the port provides its own implementation.
2001-11-28 18:16:00 +00:00
Joel Sherrill
4d22f1a5b0 2001-10-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* .cvsignore: Add autom4te.cache for autoconf > 2.52.
	* configure.in: Remove.
2001-10-12 18:37:33 +00:00
Joel Sherrill
df25c9989b 2001-10-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* .cvsignore: Add autom4te.cache for autoconf > 2.52.
	* configure.in: Remove.
	* configure.ac: New file, generated from configure.in by autoupdate.
2001-10-11 19:36:23 +00:00
Joel Sherrill
2b21dbc1b1 2001-09-23 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* rtems/score/Makefile.am: Use 'PREINSTALL_FILES ='.
2001-09-27 13:23:03 +00:00
Joel Sherrill
6ce466d9da 2001-05-07 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* rtems/score/cpu.h: Remove #undef __STRICT_ANSI__.
2001-05-08 22:58:08 +00:00
Joel Sherrill
329509fbdd 2001-02-04 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am, rtems/score/Makefile.am:
	Apply include_*HEADERS instead of H_FILES.
2001-02-05 18:41:35 +00:00
Joel Sherrill
c54152a26c 2001-01-25 Joel Sherrill <joel@OARcorp.com>
* cpu.c, rtems/score/cpu.h: Bug report from Peter Mueller
	<peter.o.mueller@gmx.de> because of not correcting for the ISR
	vector table now being allocated from the workspace.
2001-01-25 18:45:59 +00:00
Joel Sherrill
d6ea098b77 2001-01-03 Joel Sherrill <joel@OARcorp.com>
* rtems/score/cpu.h: Added _CPU_Initialize_vectors().
2001-01-03 16:37:08 +00:00
Joel Sherrill
feead22618 2000-11-09 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Use ... instead of RTEMS_TOPdir in ACLOCAL_AMFLAGS.
2000-11-09 16:43:05 +00:00
Joel Sherrill
a314d3b497 2000-11-02 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Switch to ACLOCAL_AMFLAGS = -I $(RTEMS_TOPdir)/aclocal.
2000-11-02 15:49:06 +00:00
Joel Sherrill
5582de17d6 2000-10-25 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: ACLOCAL_AMFLAGS= -I $(RTEMS_TOPdir)/macros.
        Switch to GNU canonicalization.
2000-10-25 17:19:31 +00:00
Joel Sherrill
9d4dacc8a0 2000-09-12 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Use += to set up AM_CPPFLAGS.
2000-09-12 12:51:20 +00:00
Joel Sherrill
4e41273c71 2000-09-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* rtems/score/Makefile.am: Use PROJECT_TOPdir in path to gensize.
2000-09-06 15:30:23 +00:00
Joel Sherrill
d7118fd9f5 2000-09-04 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Include compile.am.
2000-09-05 15:38:09 +00:00
Joel Sherrill
e94ad1feb9 Adding ChangeLogs. 2000-08-10 13:24:00 +00:00
Joel Sherrill
17508d02bb Port of RTEMS to the Texas Instruments C3x/C4x DSP families including
a BSP (c4xsim) supporting the simulator included with gdb.  This port
was done by Joel Sherrill and Jennifer Averett of OAR Corporation.
Also included with this port is a space/time optimization to eliminate
FP context switch management on CPUs without hardware or software FP.

An issue with this port was that sizeof(unsigned32) = sizeof(unsigned8)
on this CPU.  This required addressing alignment checks and assumptions
as well as fixing code that assumed sizeof(unsigned32) == 4.
2000-07-26 19:26:28 +00:00
Joel Sherrill
8bc62aeb5d Interrupt stack is allocated in _ISR_Handler_initialization not
_Interrupt_Manager_initialization.
2000-07-03 18:44:12 +00:00
Joel Sherrill
ce5b291fa4 Works on Solaris and Linux. 2000-06-12 18:45:54 +00:00
Joel Sherrill
df49c60c96 Merged from 4.5.0-beta3a 2000-06-12 15:00:15 +00:00
Joel Sherrill
e4c0744478 Patch rtems-rc-4.5.0-13-cvs.diff from Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
adds .cvsignore.
2000-04-13 14:47:15 +00:00
Joel Sherrill
4e36a2f133 Patches rtems-rc-20000118-3.diff and rtems-rc-20000118-4.diff from
Ralf Corsepius <corsepiu@faw.uni-ulm.de> that contain:

    * Modifications, (minor) corrections, cleanups to most existing
      Makefile.ams
    * Adds automake support to all remaining BSPs which have not yet been
      converted to automake.
    * Makefile.am for all remaining wrapup/Makefile.ams
2000-01-31 15:27:02 +00:00
Joel Sherrill
ccf8925b45 Patch rtems-rc-19991123-rc-1.diff from Ralf Corsepius
<corsepiu@faw.uni-ulm.de> which implements automake support for some
score/cpu/<RTEMS_CPU> subdirectories and fixes a few minor configuration
bugs.

    To apply:

    rm -rf c/src/exec/score/cpu/i960/wrap
    rm -rf c/src/exec/score/cpu/m68k/wrap
    rm -rf c/src/exec/score/cpu/sh/wrap
    rm -rf c/src/exec/score/cpu/sparc/wrap
    rm -rf c/src/exec/score/cpu/unix/wrap
    patch -p1 < rtems-rc-19991123-rc-1.diff
    ./bootstrap

    Known bugs:

    * "make debug|profile" in c/src/src/score/cpu/<RTEMS_CPU/Makefile does
      not handle recursion to subdirectories correctly (recurses too often).
      However, this issue is hardly visible and should be tolerable for the
      moment.
1999-12-01 14:22:12 +00:00
Joel Sherrill
08311cc3a9 Updated copyright notice. 1999-11-17 17:51:34 +00:00
Joel Sherrill
c09454282b Only check for System V IPC if multiprocessing is enabled. The unix
port only uses System V IPC for shared memory and semaphores to
communicate between nodes in a multiprocessor configuration.  If you
disable multiprocessing, then this code should be unused.  Thus systems
like Cygwin which are POSIX but do not support System V IPC should
not work.
1999-11-16 16:07:17 +00:00
Joel Sherrill
458bd343e2 This is another pass at making sure that nothing outside the BSP
unnecessarily uses any variables defined by the BSP.  On this
sweep, use of BSP_Configuration and Cpu_table was eliminated.

A significant part of this modification was the addition of
macros to access fields in the RTEMS configuration structures.

This is necessary to strengthen the division between the BSP independent
parts of RTEMS and the BSPs themselves.  This started after
comments and analysis by Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
1999-11-05 16:44:02 +00:00
Joel Sherrill
d83c39dc36 Bug report and fix from Jay Kulpinski <jskulpin@eng01.gdds.com> where
sigemptyset(&old_mask) needed to be added on glibc2 systems.  Ian
Lance Taylor pointed out that sigemptyset() is portable so Joel removed
all conditionals around calls to sigemptyset().
1999-10-05 13:08:41 +00:00
Joel Sherrill
ea562ee977 Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>:
After upgrading my linux box to the brand new SuSE 6.2 release, which is
    glibc-2.1 based, I came across a bug in RTEMS - IIRC, I even warned you
    about it about 1/2 a year ago, but nothing has been done since then :-.

    The *.m4 macros to check for SYSV/IPC are broken for linux/glibc2.1,
    because they assume that linux always defines union semun, which isn't
    true anymore for glibc2.1 (the manpage for semctl states _X_OPEN
    specifies it this way). Therefore I have tried to implement a more
    general approach for handling SYSV for unix/posix which checks for
    presence of struct semun, instead of trying  to evaluate OS specific
    preprocessor symbols.

    This approach is a bit adventureous, because I only tested it with
    linux/glibc2.1 and linux/libc5, but not under other Unix variants RTEMS
    supports. I am quite confident it will work on other hosts, too, but who
    knows :-.

    [FYI: I think this might also is the cause of some problems with RedHat
    6.X / Mandrake linux recently reported on the rtems list -- rtems-4.0.0
    can not be build for posix on any glibc2.1 based host]

    Furthermore the patch below contains a couple of minor fixes and
    configuration cleanups, which IMO should be applied before releasing a
    new snapshot.

    To apply this patch:

        cd <source-tree>
        patch -p1 < rtems-rc-19990709-8.diff
        ./autogen
1999-08-12 18:22:17 +00:00
Joel Sherrill
6805640ec7 Patch from Charles-Antoine Gauthier <charles.gauthier@iit.nrc.ca>
to correct a typo CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES was actually
typed in as CPU_CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES.
1999-07-29 23:01:15 +00:00
Joel Sherrill
7908ba5b81 Part of the automake VI patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>:
> 4) rtems-rc-19990202-0.diff /reorg-score-cpu.sh
>
> reorg-score-cpu.sh reorganizes the cpu/<cpu>/* subdirectories in a
> similar manner than previous reorg scripts did. rtems-rc-19990202-0.diff
> contains the diffs after reorg-score-cpu.sh has been run on a
> rtems-19981215 snapshot + my patches up to rtems-rc-19990131-2.diff.
>
> This patch is rather nasty and may break something. However, I've tested
> it for about 10 different target/bsp pairs and believe to have shaken
> out most bugs.

I wonder about the following .h files that were not moved:

a29k/asm.h
a29k/cpu_asm.h
i386/asm.h
i960/asm.h
m68k/asm.h
m68k/m68302.h
m68k/m68360.h
m68k/qsm.h
m68k/sim.h
mips64orion/asm.h
mips64orion/cpu_asm.h
mips64orion/mips64orion.h
no_cpu/asm.h
no_cpu/cpu_asm.h
powerpc/asm.h
powerpc/mpc860.h
sh/asm.h
sparc/asm.h
sparc/erc32.h
1999-02-18 18:28:24 +00:00
Joel Sherrill
b4e3b2bd68 Patch from Ian Lance Taylor <ian@airs.com>.
I just happened across the sync_io support in
        c/src/exec/score/cpu/unix/cpu.c
    (is this documented anywhere?).  That looked more useful than the
    signal driven I/O I was using before, so I tried it.  I ran across a
    few bugs in the way it uses select.

    Select changes its fd_set arguments, so you can't use global variables
    for them.  You have to copy them into local variables first.

    If select returns -1 with errno set to EINTR, then it has not changed
    any of the fd_sets.  You can't start looking at them.

    When clearing a descriptor, the code has the usual select off by one
    error when setting sync_io_nfds.

    I don't see how this code could ever have worked correctly.

    I have appended a patch for the problems I found.
1998-10-28 19:25:12 +00:00
Joel Sherrill
9a6994b490 Added freebsd support from Dario Alcocer <alcocer@connectnet.com>. 1998-06-18 15:22:35 +00:00
Joel Sherrill
4381e50e1e Ralf Corsepius suggested a way to get rid of UNIX compiler files and use gcc-target-default.cfg 1998-04-14 22:44:49 +00:00
Joel Sherrill
5e34bf4b95 Added "sigemptyset()" call to insure that the memcmp() would work.
It appears that the new glibc does not clear all the bits of the signal
set with a sigprocmask.
1998-03-31 14:19:27 +00:00
Joel Sherrill
a30359bbdd Changed int to unsigned32 to match cpu.h. 1998-03-27 19:42:58 +00:00
Joel Sherrill
ddf142da51 Added _XOPEN_SOURCE definition to allow use of UNIX IPC. 1998-03-24 20:53:48 +00:00
Joel Sherrill
3ec7bfc7c4 Rename hppa1_1 to hppa1.1 and switched to using __XXX__ macros for
the CPU family name constants.
1998-03-24 16:24:39 +00:00
Joel Sherrill
3a85d03d4e Change to remove warning on glibc2 systems per Ralf Corsepius's
suggestion.
1998-01-28 15:39:30 +00:00
Joel Sherrill
2936b425fd Solaris port updates from Chris Johns 1998-01-23 17:45:05 +00:00
Joel Sherrill
98e4ebf594 Fixed typo in the pointer to the license terms. 1997-10-08 15:45:54 +00:00
Joel Sherrill
0a6fb223b6 Patch from Chris John <cjohns@awa.com.au> to add use of a select statement
in the unix port idle thread task.  This should keep the entire application
from blocking when any component does a blocking application.  Also added
TOD_MICROSECONDS_TO_TICKS.
1997-04-22 20:19:25 +00:00
Joel Sherrill
f254555238 multiprocessing fixed on linux by fixing cpu.c so correct form of
semctl was being invoked.
1997-04-22 19:57:02 +00:00
Joel Sherrill
e71ce0712c updated with new license information per Tony Bennett. 1997-04-22 17:47:16 +00:00
Joel Sherrill
d6ba279565 added initialization of variable to eliminate warning. 1997-04-07 21:24:02 +00:00