Commit Graph

3173 Commits

Author SHA1 Message Date
Joel Sherrill
96284fd815 Support for MPC505 from Sergei Organov <osv@Javad.RU>. His patch was
against 3.6.0 so was painful to merge.  It should be OK but there
is no guarantee and there are no BSPs in the tree to exercise it.
1999-08-19 21:47:51 +00:00
Joel Sherrill
3b568bd557 Fixed Gunter Magin's email address in 3 places. 1999-08-19 21:31:58 +00:00
Joel Sherrill
1b97fe7633 Added comment explaining what this file is. 1999-08-19 20:52:06 +00:00
Joel Sherrill
d11a35c827 Crossgcc FAQ entry 1999-08-19 20:51:14 +00:00
Joel Sherrill
d7792ac9ed More corrections form Gunter Magin. 1999-08-19 20:12:23 +00:00
Joel Sherrill
54789c463d Added Eric Norum's ftp site for BDM m68k. 1999-08-19 15:36:06 +00:00
Joel Sherrill
03be71eca5 Changed Chris Johns' email address 1999-08-19 14:56:22 +00:00
Joel Sherrill
219e638f8b Added info in NT MPC8xx BDM 1999-08-19 14:55:22 +00:00
Joel Sherrill
01e6a05bd8 Added some more. 1999-08-18 21:04:59 +00:00
Joel Sherrill
b8080380d1 Reran and replaced screen after report from Gerwin Pfab <pb@schenk.isar.de>. 1999-08-18 20:59:36 +00:00
Joel Sherrill
4efe75eb08 New file. 1999-08-18 20:06:36 +00:00
Joel Sherrill
fc766ef51e Added section on malloc reentrancy. 1999-08-18 20:04:43 +00:00
Joel Sherrill
f2180e0f05 Patch from Jimen Ching <jimen@adtech-inc.com>:
Please take a look at this new patch.  It contains a cleaner implementation
of the reset operation.  These patches are against 4.0.0.  But the files
did not change from the 3.6.0 release.  Also, the cpu.h patch below still
applies.  I.e. instead of using i960ca_PRCB, use i960_PRCB.

Explanation:

        The previous patch removed the use of the reset instruction,
        because it always fails.  But this was due to the fact that
        some of the registers were corrupted by the re-init procedure.
        The new patches save and restore those registers when a re-init
        is done.
1999-08-18 20:00:05 +00:00
Joel Sherrill
e8367362ca Slightly cleaner way to switch on the CPU model. 1999-08-18 19:57:40 +00:00
Joel Sherrill
6fc973e39b Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>:
Here is another fix, which addresses a few more or less severe bugs in
    configuration and unix/posix:

    * Configuration fix: c/src/lib/configure.in didn't handle RDBG correctly

    * Configuration fix: make depend was non-functional in
      c/src/lib/libc/Makefile.in
    * Configuration fix: stray comment removed from aclocal/target.m4

    * RTEMS fix: termios support for unix/posix now uses the host's headers
      only (was completely broken).
    - Don't install RTEMS's newlib sys/termios.h for unix (sys/termios.h
      apparently is a newlib specific header)
    - To be able to compile RTEMS's  termios.c with glibc2.1, glibc-2.1
      needs __USE_MISC, which is a private define from gcc's features.h, being
      defined only when _BSD_SOURCE of _SVID_SOURCE is defined.  RTEMS's
      termios apparently implements BSD, thus -D_BSD_SOURCE was added to
      Linux-posix.cfg.
    - Conflicting definitions for  __USE_MISC and _BSD_SOURCE inside of
      RTEMS codes removed due to definition of _BSD_SOURCE on the toplevel.

    This fix has been tested with linux/posix (primary glibc2.1 native),
    linux/posix (secondary libc5 native), sh/gensh1, i386/pc386 and a couple
    of other bsp's/CPU.

    To apply:

        cd <srcdir>
        patch -p1 < rtems-rc-19990709-9.diff

    and
        aclocal -I aclocal && automake && autoconf
        cd c/src/lib; autoconf

    or
        ./autogen
1999-08-18 16:49:52 +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
8aefe83224 Patch from Tony R. Ambardar <tonya@ece.ubc.ca>:
I'm attaching a big patch for the ts_386ex BSP which adds and includes
    the following:

    1) Conversion to ELF format + minor code cleanups + documentation.

    2) An Ada95 binding to FreeBSD sockets, based on Samuel Tardieu's
       adasockets-0.1.3 package. This includes some sample applications.

    3) Some Ada and C interfaces to add serial-port debugging to
       programs. Comes with examples, too; the Ada one shows how
       transparent adding the support can be. Note that Rosimildo sent me
       the original C code.

    The network stuff is not BSP specific, and could be added to your Ada
    code collection. The debugging stuff is specific to the i386. Right
    now, everything sits in my "tools" directory.
1999-08-11 23:58:16 +00:00
Joel Sherrill
1d4048b236 Patch from Tony R. Ambardar <tonya@ece.ubc.ca>:
I'm attaching a big patch for the ts_386ex BSP which adds and includes
    the following:

    1) Conversion to ELF format + minor code cleanups + documentation.

    2) An Ada95 binding to FreeBSD sockets, based on Samuel Tardieu's
       adasockets-0.1.3 package. This includes some sample applications.

    3) Some Ada and C interfaces to add serial-port debugging to
       programs. Comes with examples, too; the Ada one shows how
       transparent adding the support can be. Note that Rosimildo sent me
       the original C code.

    The network stuff is not BSP specific, and could be added to your Ada
    code collection. The debugging stuff is specific to the i386. Right
    now, everything sits in my "tools" directory.
1999-08-11 23:45:57 +00:00
Joel Sherrill
91e9ab87e1 Final update from Santanu Mitra <smitra@cs.uah.edu>, T.N.S. Prasad
<ptelukun@cs.uah.edu>, and Wei He <whe@cs.uah.edu> on the Fixed
Block and Memory Pool Managers.
1999-08-11 21:14:16 +00:00
Joel Sherrill
be5df8de05 Added ts_i386ex 1999-08-10 21:19:26 +00:00
Joel Sherrill
1775dad530 Last minute patch to change the signal type for ASM_PROG_VECTOR from
Eric Valette <valette@crf.canon.fr>.
1999-08-10 18:10:23 +00:00
Joel Sherrill
cef2fb5fda Last minute cleanup patch to close comment from Eric Valette
<valette@crf.canon.fr>.
1999-08-10 18:08:56 +00:00
Joel Sherrill
981b99faf2 Patch from Eric Valette <valette@crf.canon.fr> and Emmanuel Raguet
<raguet@crf.canon.fr>:

    - the dec21140 driver code has been hardened (various bug fixed) Emmanuel,
    - bug in the mcp750 init code have been fixed (interrupt stack/initial
      stack initialization), BSS correctly cleared (Eric V)
    - remote debugging over TCP/IP is nearly complete (berakpoints,
      backtrace, variables,...) (Eric V),
    - exception handling code has also been improved in order to fully
      support RDBG requirements (Eric V),
1999-08-10 16:41:44 +00:00
Joel Sherrill
908436c1ec New configuration files added by patch from
Ralf Corsepius <corsepiu@faw.uni-ulm.de>".
1999-08-10 15:38:09 +00:00
Joel Sherrill
01be59d939 Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de> to correct a minor
problem with the HAS_MP patch and regenerated files.
1999-08-10 15:08:58 +00:00
Joel Sherrill
e1929ce8e3 Added define at request of Jason Merrill. 1999-08-10 15:03:12 +00:00
Joel Sherrill
2fe7208306 Added NO_IMPLICIT_EXTERN_C at suggestion of Jason Merrill. 1999-08-10 15:02:23 +00:00
Joel Sherrill
3a8915e6ee Patch rtems-rc-19990709-6-diff from Ralf Corsepius <corsepiu@faw.uni-ulm.de>
applied.  This modified many Makefiles and custom files and makes many more
settings (network, multiprocessing, etc) gnerated by autoconf.
1999-08-06 17:55:25 +00:00
Joel Sherrill
22544db9d8 Typo -- removed blank line at top of file. 1999-08-06 16:56:16 +00:00
Joel Sherrill
f42fb02e1d Patch from Jiri Gaisler <jgais@ws.estec.esa.nl> to fix remote gdb use:
I just released erc32ccs-2.0.6 which includes some fixes and the
    Ada-self optimisation. Remote debugging of Ada programs did not
    work due to a conflict between monior and rtems trap handlers.
    I have attached a modified gnatsupp.c that makes remote debugging
    possible again.
1999-08-06 16:00:32 +00:00
Joel Sherrill
a92280e02d Now supports C++ global constructors and exceptions. 1999-08-05 22:37:17 +00:00
Joel Sherrill
1c92f8a8a8 changed version to 19990805 1999-08-05 18:48:05 +00:00
Joel Sherrill
a1c70a2a0c Fixed typo on report from Tony R. Ambardar <tonya@ece.ubc.ca>. 1999-08-05 18:02:15 +00:00
Joel Sherrill
783e8322d3 Patch from Eric Valette <valette@crf.canon.fr> to fix interrupt
initialization typo and make i8259s_cache only accessed from C.
1999-08-03 13:52:59 +00:00
Joel Sherrill
26eff5c295 Fix By Joel based on suggestion from Ian Lance Taylor <ian@airs.com>
to fix problem reported by Ralf Corsepius <corsepiu@faw.uni-ulm.de>.

   Date: Fri, 30 Jul 1999 14:53:20 -0500 (CDT)
   From: <joel@oarcorp.com>

   it is used like this in i386ex/start/start.S

                       /* set up same values in cache */
       start.S:      movw    $0xFFFB, SYM(i8259s_cache)

   I am heading out the door.  Any other ideas what could have tripped this?

   This instruction appears in a .code16 section.  In a .code16 section,
   current versions of gas assume that all addresses are 16 bits unless
   told otherwise.

   If you change the line to
       addr32   movw $0xFFFB, SYM(i8259s_cache)
   then you will get a 32 bit address reference.

   You may want to use addr32 only when NEW_GAS is defined.
1999-08-02 20:26:57 +00:00
Joel Sherrill
60ee6da7ad Updated DDD section after comments from Jiri. 1999-08-02 16:38:28 +00:00
Joel Sherrill
ae2ddb8103 Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>:
The patch below fixes a nasty bug in acpolish, which has broken many
    Makefile.ins below c/src/tests/

    APPLYING THE PATCH:
        patch -p1 < rtems-rc-19990709-5.diff

    The essential part of this patch is the diff-fragment for acpolish
    contained in this patch. Ie. if any of the other diffs do not apply,
    make sure that the acpolish diff was applied correctly and then run
        cd <srcdir>
        tools/update/rtems-polish.sh -ac
1999-08-02 15:40:27 +00:00
Joel Sherrill
fdb37e81ec New file from Ralf Corsepius <corsepiu@faw.uni-ulm.de> missed being added
in a previous patch.
1999-08-02 15:33:26 +00:00
Joel Sherrill
ac384b98f5 Added more sections to pick up all of the new C++ sections. 1999-08-02 15:25:24 +00:00
Joel Sherrill
bd5278665f Now correctly does deep copy. 1999-08-02 15:24:57 +00:00
Joel Sherrill
a3c8bdabdb Update from Andrew McDowell <drew@getaway.net>. DOS CR/LF, etc fixed
by Joel.
1999-08-02 13:55:39 +00:00
Joel Sherrill
1896a650fc Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>:
The main topic is replacing the hard-coded values for HAS_MP and
  HAS_RDBG in custom/*.cfg with per-bsp configuration-time autoconf checks
  (This is the patch I had mentioned before earlier this week).

  CHANGES

  * HAS_MP removed from custom/*.cfg, replaced with configuration time
    autoconf check
  * HAS_RDBG removed from custom/*.cfg, replaced with configuration-time
    autoconf check
  * NEW: c/src/make/bsp.cfg.in, takes configuration-time checked per-bsp
    values (i.e. HAS_MP, HAS_RDBG), gets installed as
    $(prefix)/<bsp>/make/bsp.cfg
  * NEW: default.cfg includes bsp.cfg - this change is backward
    compatible.
  * IMPORT_SRC: apply VPATH instead for ts_386ex/i386ex subdirectory
    Makefile.ins
  * HACK: a bug in acpolish mis-handles addtions to makefile variables
    which are enclosed in gmake conditionals:
    c/src/lib/libbsp/m68k/ods68302/start302/Makefile.in
  * Apply inline_dir, HAS_MP and HAS_RDBG for avoiding configuration of
    unneeded subdirectories in various configure.in files.
  * Several minor changes in Makefile.ins and configure.ins, wrt. to the
    order of including *.cfg and defining Makefile variables

  APPLYING THE PATCH:

      patch -p1 < rtems-rc-19990709-4.diff
      ./autogen
1999-07-30 17:52:50 +00:00
Joel Sherrill
aa9eb94058 Fixed typos. 1999-07-30 17:28:11 +00:00
Joel Sherrill
a2cc7b7fb4 Corrected typo and added correct conditional compilation on RTEMS_POSIX_API. 1999-07-30 17:18:39 +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
760777db72 Added section on ddd. 1999-07-29 22:54:10 +00:00
Joel Sherrill
c985385813 Added some more information on BDM debuggers. 1999-07-29 22:48:19 +00:00
Joel Sherrill
14e62e1a1a Added information on David Fiddes site. 1999-07-29 22:48:04 +00:00
Joel Sherrill
e112b63097 Patch to remove rcs-clean.in as it is unused from Ralf Corsepius
<corsepiu@faw.uni-ulm.de>.
1999-07-28 18:04:52 +00:00
Joel Sherrill
f94e76ba02 Fix after this report from Peter Pointner <pr@schenk.isar.de>:
Problem: a posix thread which is created by

      pthread_attr_init(&tattr);
      pthread_attr_setinheritsched(&tattr, PTHREAD_EXPLICIT_SCHED);
      pthread_attr_setschedpolicy(&tattr, SCHED_RR);
      pthread_create(&th, &tattr, func, arg);

    has a first timeslice of 2^32 ticks (changing a running thread to
    SCHED_RR id ok).

    I use RTEMS-4.0.0. I am not sure if the problem exists in the current CVS
    head revision. If it's not fixed, the patch at the end should do it.

Peter


--- pthreadcreate.c.orig        Wed Jul 28 14:45:58 1999
+++ pthreadcreate.c     Wed Jul 28 15:06:09 1999
@@ -199,6 +199,10 @@
   api->schedpolicy = schedpolicy;
   api->schedparam  = schedparam;

+  if ( schedpolicy == SCHED_RR ) {
+    the_thread->cpu_time_budget = _Thread_Ticks_per_timeslice;
+  }
+
   /*
    *  This insures we evaluate the process-wide signals pending when we
    *  first run.
1999-07-28 18:03:20 +00:00