Commit Graph
2720 Commits
Author SHA1 Message Date
Joel Sherrill 9572c41d09 Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>:
This is an attempt to work-around a couple of nasty bugs in librdbg's
Makefiles and configuration:

Configure and build RTEMS as below:
  configure --enable-networking --enable-rdbg --target=i386-rtems
  make RTEMS_BSP=i386ex

After a few minutes you will notice that building aborts in librdbg ....

Analysis:

  1) librdbg is tried to be built, though librdbg is not supported and the
     required directory hierarchy librdbg/i386/i386ex/  is not existant.

     The cause for this is incorrect setting of HAS_RDBG in most
     make/custom/*.cfg files (except pc386.cfg). At the moment all
     custom/*.cfg files (except pc386.cfg) in general are required to contain
     HAS_RDBG=no. However, having HAS_NETWORKING=no in most custom/*.cfg
     files and the toplevel configure script suppress building librdbg for
     all CPUs except of i386.

     => The i386ex BSP falls though this scheme and librdbg is tried to be
        build (CPU=i386 and HAS_NETWORKING=yes).

  2) The Makefile.ins below lib/librdbg in general support i386/pc386 only
     and are not capable to be used for multiple CPUs or BSPs (RPCGEN
     generates it's target and bsp-specific files into librdbg/, therefore no
     other CPU or BSP can ever be built afterwards). This problem is hidden
     until now, because only a single CPU/BSP pair (i386/pc386) is really
     supported.

  3) The Makefile.ins below lib/librdbg can delete source files due to
     improper handling of source files (make clean removes the *.x files in
     the source-tree when configuring inside of the source-tree).


The patch below tries to work-around these problems for the i386ex and
the pc386 BSPs. This work-around is rather fragile (it applies rpcgen
-D, I don't know how portable this is) and incomplete (all custom/*.cfg
except of pc386.cfg should contain HAS_RDBG=no), nevertheless it should
work.
1999-04-19 13:11:13 +00:00
Joel Sherrill 4ad3d3727b Regenerated. 1999-04-19 13:09:35 +00:00
Joel Sherrill 60e6a0f61d Fixed some spacing issues. 1999-04-19 13:06:07 +00:00
Joel Sherrill 6b7ab9bf72 Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>:
FYI: I am not talking about using "make -C <dir>", which probably
    is much faster on M$ hosts than RTEMS's implementation, but about
    removing --enable-gmake-print support and to apply a variant of
    automake's subdirectory.

    Automake's subdirectory rule seems to be a little bit faster, but I
    wouldn't bet on this.

    Attached to this mail is my proposal.

    After applying the patch, please run
        cvs rm aclocal/enable-gmake-print.m4
        ./autogen
1999-04-16 18:23:48 +00:00
Joel Sherrill c00fa3858d Patch from Ralf Corsepius <corsepiu@@faw.uni-ulm.de>:
2) ./c/src/lib/libbsp/i386/go32/startup


    > all:    ${ARCH} $(SRCS) $(PGM)
    >         $(INSTALL_CHANGE) ${PROJECT_RELEASE}/lib
    >
    >

    This also is very questionable, because it means "install
    $(PROJECT_RELEASE)/$/lib to the void".  I think, removing the
    INSTALL_CHANGE is the right way to fix it.
1999-04-16 18:17:31 +00:00
Joel Sherrill 98d051fffe Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>:
1) ./c/src/lib/libbsp/i386/i386ex/startup/Makefile.in

    > preinstall:
    >         $(INSTALL_CHANGE) ${IMPORT_SRC} .
    > 
    > #       ${CP} ${IMPORT_SRC} .
    >
    >
    >

    This fragment is broken, because IMPORT_SRC is always empty.

    IMO, the fix would be to remove this fragment or to replace it with
    test -z "${IMPORT_SRC}" || cp ${IMPORT_SRC} .
    if an external shell variable IMPORT_SRC shall be supported by this
    Makefile, which IMO should not be done.
1999-04-16 18:15:08 +00:00
Joel Sherrill 4a22e7a0ed Corrected to reflect new way of doing mips constructors. 1999-04-16 18:08:27 +00:00
Joel Sherrill 2a4791fa07 Added .eh_fram and .gcc_exc sections. 1999-04-16 18:08:09 +00:00
Joel Sherrill 4bfb1393a4 Regenerated 1999-04-15 19:02:31 +00:00
Joel Sherrill d006519bce Added reentrant versions. 1999-04-15 19:01:32 +00:00
Joel Sherrill a68e6b91e9 Updated version string. 1999-04-15 18:58:43 +00:00
Joel Sherrill 2df1974a27 Added include of rtems/posix/cancel.h. 1999-04-15 18:58:27 +00:00
Joel Sherrill da41ecbcfe Removed alarm(), killinfo() and pause() because they are now in their own file. 1999-04-15 18:58:02 +00:00
Joel Sherrill 93994fdb80 Now compiles and is included in normal build even though it is untested.
Added multiprocessing conditional.
1999-04-15 18:57:31 +00:00
Joel Sherrill 0f4e0745c6 Cleaned up. 1999-04-15 18:57:02 +00:00
Joel Sherrill 3afecf811d Now compiles and is included in normal build even though it is untested. 1999-04-15 18:56:42 +00:00
Joel Sherrill 3090760f0f Now compile files that previously existed but were not built because they
had not yet been debugged.
1999-04-15 18:55:55 +00:00
Joel Sherrill 24a9af67e1 Now install header files that existed but were not previously installed. 1999-04-15 18:55:14 +00:00
Joel Sherrill 8a2943aab0 Now install some header files that existed but were not previously
installed.
1999-04-15 18:54:40 +00:00
Joel Sherrill 053acd7074 Now install utsname.h. 1999-04-15 18:54:16 +00:00
Joel Sherrill d0f53fec4b Enabled cancellation information in POSIX API thread extension structure. 1999-04-15 18:54:01 +00:00
Joel Sherrill 02d46fa94b Added set_errno_and_return_minus_one_cast. 1999-04-15 18:53:35 +00:00
Joel Sherrill 39daf581c1 Added in some header files that existed but were not previously installed. 1999-04-15 18:53:22 +00:00
Joel Sherrill fcead0f13a Regenerated 1999-04-15 18:52:02 +00:00
Joel Sherrill df6d290f87 Regenerated. 1999-04-15 18:51:11 +00:00
Joel Sherrill 3c87bb9cef Minor corrections from Jay Kulpinski <jskulpin@eng01.gdds.com>.
This first one below looked like it only belonged in a
    virtual memory environment.  The second one was causing
    problems without the PROVIDE() - I don't know why.
1999-04-14 22:33:30 +00:00
Joel Sherrill 2b283071c6 Bug report from Ralf on UNIX port where the S_IR* constants were not
defined.
1999-04-14 18:18:03 +00:00
Joel Sherrill 76e5fe8ad3 Bug fix from Brendan Simon <brendan@dgs.monash.edu.au> with fix confirmed
by Andrew Bray <andy@madhouse.demon.co.uk>.
1999-04-13 22:50:24 +00:00
Joel Sherrill 6e27f58885 Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>:
Installing of bsp_specs for aliased bsps is broken. Instead of installing
  RTEMS_BSP_FAMILY/bsp_specs, RTEMS_BSP/bsp_specs was tried to be installed.

  The patch below should fix this problem (tested with mips64orion p4600 and
  p4650).
1999-04-12 20:27:14 +00:00
Joel Sherrill 82f490f786 Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de> to correct the
--enable-tests problem a better way.
1999-04-12 20:24:56 +00:00
Joel Sherrill 8cdb582b49 Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>:
This patch addresses a few minor issues and contains a few (minor)
  preparations for automake.

  * configure.in: Fix for handing c/src/tests subdirectory handling (FIX)
  * aclocal/rtems-top.m4:
    + Add TARGET_SUBDIR and --with-target-subdir (preparation of future
      enhancements for cross-compiling)
    + Activate RTEMS_ROOT handling (automake preparation)
  * automake/*.am: replace comments "#" with "##" so that comments won't
    get included into Makefile.in's anymore
  * c/update-tools/* automake support (NEW)
  * ./autogen update/enhancement (cf. ./autogen for details)

  After applying this patch please run:

    ./autogen
    cvs add c/update-tools/configure.in
    cvs add c/update-tools/Makefile.am
    cvs add c/update-tools/aclocal.m4
1999-04-12 15:41:33 +00:00
Joel Sherrill d1153156f0 Added line to initialize timer_max. 1999-04-12 15:36:07 +00:00
Joel Sherrill ee3f8b8c85 Added statement to include build-tools/src directory in preinstall. 1999-04-12 15:35:31 +00:00
Joel Sherrill 63b96b95ab Addressed this bug report:
Date: Mon, 12 Apr 1999 00:38:04 +0000
From: Brendan Simon <brendan@dgs.monash.edu.au>
To: Jay Monkman <jmonkman@frasca.com>, "joel@OARcorp.com" <joel@oarcorp.com>
Subject: [Fwd: Goof in SMC initialize for mpc860]

Nick Simon reported this bug in the eth_comm BSP sources.  I see that it is
still there in the latest snapshot that Joel sent me (thanks).  I thought I
better forward this on to you guys.

Brendan.


Nick.SIMON@syntegra.bt.co.uk wrote:

> Sice I believe you're using the same base BSP as I am (you sent it to me) I
> thought I'd mention..
>
> In console-generic.c, in m860_smc_initialize, the receive buffer is malloced
> and assigned to RxBd[port+3]-> buffer - it should be [port-1].
>
> TTFN
B
1999-04-12 15:21:43 +00:00
Joel Sherrill 936ae5dd1f Added DEC21140 document from Emmanuel Raguet <raguet@crf.canon.fr>. 1999-04-08 16:19:21 +00:00
Joel Sherrill 5dbc2e2e99 First attempt to build. 1999-04-08 16:09:11 +00:00
Joel Sherrill 920e47f667 New files. 1999-04-08 16:05:37 +00:00
Joel Sherrill 56d4e48568 New file 1999-04-08 15:51:40 +00:00
Joel Sherrill 5907192db6 changed version to 19990407 1999-04-07 20:56:47 +00:00
Joel Sherrill 3084de2513 MPC821 support and PPC patches from Andrew Bray <andy@madhouse.demon.co.uk>:
In c/src/exec/score/cpu/powerpc/rtems/score/ppc.h:

    A lot of hardware interrupts were omitted.  Patch enclosed.
    I have also added the 821.

  In c/src/exec/score/cpu/powerpc/rtems/score/cpu.h:

    My patch adds the 821.

  In c/src/exec/score/cpu/powerpc/cpu.c:

    I have added the MPC821, and also fixed up for the missing hardware
    interrupts.  It is also inconsistent with
    c/src/lib/libcpu/powerpc/mpc860/vectors/vectors.S.  This has been fixed.


  In c/src/lib/libcpu/powerpc/mpc860/vectors/vectors.S:

    Fixed an inconsistency with cpu.c.

    I also include some new files to go with the above patches.  These are the
    cpu library rtems-19990331/c/src/lib/libcpu/powerpc/mpc821/* and
    c/src/exec/score/cpu/powerpc/mpc821.h which are minor modifications of
    the 860 equivalents.

  Other comments:

    The various accesses to the DPRAM on the 860 are done with a linktime
    symbol. This could be done dynamically at run time by reading the immr
    register, and masking off the lower 16 bits.  This takes the same amount
    of time as loading an address constant, and the same number of
    instructions as well (2).

    In c/src/lib/libcpu/powerpc/mpc860/console-generic/console-generic.c:

      This will silently fail if you attempt to use SCC1.  This is only relevant
      if you are not using SCC1 for ethernet.

      This file also sets one of port B output pins for each port.  This is NOT
      generic, it should be in the BSP specific console driver.
1999-04-07 15:57:05 +00:00
Joel Sherrill 055c18be0d changed version to 19990406 1999-04-06 22:22:39 +00:00
Joel Sherrill b0acdf0b39 oNew file. 1999-04-06 22:20:16 +00:00
Joel Sherrill 98a929c030 Sanitized. 1999-04-06 22:16:04 +00:00
Joel Sherrill 7504be6c0c Removed. 1999-04-06 22:15:18 +00:00
Joel Sherrill 3c0e80c36a Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de> to preinstall
all bsp_specs.
1999-04-06 22:07:36 +00:00
Joel Sherrill 5cf555e10a Corrections by Jennifer. 1999-04-06 22:04:08 +00:00
Joel Sherrill b08d3ed989 Untar support submitted by Jake Janovetz <janovetz@tempest.ece.uiuc.edu>. 1999-04-06 21:45:06 +00:00
Joel Sherrill 01a9d941b3 Patch from Andrew Bray <andy@chaos.org.uk>:
In your various bsp_specs files, even when ecrti.o is defined as a
   startfile, ecrtn.o is not defined as an endfile.  Instead it seems to
   be in the library list - untidy.
1999-04-06 20:39:17 +00:00
Joel Sherrill 676b50455d Patch from Eric Norum <eric@skatter.usask.ca>:
I'd like to make the following change which adds the m360 structure
    information to the debugging symbols in the final executable.  This
    makes it much easier to use the debugger to look at the elements of
    the m360 structure.
1999-04-06 20:27:45 +00:00
Joel Sherrill a37be5c4e2 Eric Norum <eric@skatter.usask.ca> noticed that the documentation and
configure scripts did not match on the default value of --enable-tests.
1999-04-06 20:25:40 +00:00