Commit Graph

2835 Commits

Author SHA1 Message Date
Joel Sherrill
5bce35ba29 Made prototype of ChapReceiveSuccess and ChapReceiveFailure match. 1999-12-21 14:37:31 +00:00
Joel Sherrill
0fe4834611 Patch rtems-rc-19991203-7.diff from Ralf Corsepius <corsepiu@faw.uni-ulm.de>
which adds partial automake support to libcpu/<cpu>/*.

    Until now I have only implemented full automake support for the sh (my
    demonstration example :) and the i386 (inevitiable for structural
    reasons of this subdirectory). For all other cpus only their toplevel
    directories (exception: powerpc), include subdirectories and a few
    selected subdirectories have been converted to automake.
    I did this on purpose, because add automake support to each subdirectory
    requires individual adaptations which to be tested individually.

    Additionally the weirdnesses of the powerpc subdirectories hit again,
    esp. some powerpc cpu-models

    * install files to $(PROJECT_INCLUDE)/<cpu-model>/ while others install
      them to  $(PROJECT_INCLUDE)/
    * the scheme used to configure libcpu/powerpc/ is difficult to implement
      using automake, therefore this subdirectory still is configured by
      autoconf (The one out of an unlimited set selection scheme hits again
      :), though powerpc/*/* subdirectories already apply automake.

    The patch also reveils structural weaknesses in RTEMS:

    E.g. There seem to exist at least 5 different general schemes:

    * Not using libcpu at all (eg. i960)
    * Strictly tree-style a libcpu/<cpu-variant>/* (eg. m68k, sh)
    * Flat libcpu directory layout with cpu-variants merged into sources or
      not destinguishing cpu-variants (i386)
    * Not supporting variants with deep source tree (sparc, hppa, mips64orion)
    * Woven directory structure with shared directories (powerpc)

    I regret having to say this, but from my POV this means, that there
    doesn't exist a general implementation scheme for libcpu at all.

    To apply:

        rm -rf ./c/src/lib/libcpu/i386/wrapup
        rm -rf ./c/src/lib/libcpu/mips64orion/include
        rm -rf ./c/src/lib/libcpu/powerpc/ppc403/include
        patch -p1 < rtems-rc-19991203-7.diff
        ./bootstrap
1999-12-21 14:34:30 +00:00
Joel Sherrill
db3e01084a Patch rtems-rc-19991203-6.diff from Ralf Corsepius <corsepiu@faw.uni-ulm.de>
which fixes a nasty dependency bug in optman/Makefile.am. Those
directories have been build twice before, i.e. re-running make after
having built rtems before, was rebuilding the files in optman/
directories.

    To apply:
        patch -p1 < rtems-rc-19991203-6.diff
        ./bootstrap
1999-12-21 14:32:00 +00:00
Joel Sherrill
8b9128277d Patch rtems-rc-19991203-5.diff from Ralf Corsepius <corsepiu@faw.uni-ulm.de>
which cleans up and merges some Hitachi SH-2 modifications from
John Mills <jmills@tga.com>.
1999-12-21 14:27:52 +00:00
Joel Sherrill
3ad7602ef2 Modifications to avoid having the size of the Buffer_addresses array
too small when OPERATION_COUNT is less than 10.
1999-12-20 15:21:31 +00:00
Joel Sherrill
947c27aaad Spelling error corrected. 1999-12-16 14:30:34 +00:00
Joel Sherrill
f09ac26862 More warnings removed after email with Emmanuel Raguet. 1999-12-14 13:30:50 +00:00
Joel Sherrill
e8918ec371 Patch from Eric Norum <eric@cls.usask.ca> to change to gen68360 clock handling.
I got tired of having strange clock rates (e.g. #define
    CONFIGURE_MICROSECONDS_PER_TICK 52489) and drifting times-of-day with
    the gen68360 BSP so I changed the way the programmable-interval clock
    interrupt works.  The new version will have some jitter in the intervals
    between individual calls to the rtems_clock_tick routine, but the
    long-term average will match the CONFIGURE_MICROSECONDS_PER_TICK
1999-12-13 22:12:03 +00:00
Joel Sherrill
c629812c01 Removed warnings. 1999-12-13 22:10:45 +00:00
Joel Sherrill
da8ae79b3e Warning removal patch from Philip A. Prindeville <philipp@zembu.com>. 1999-12-13 21:21:31 +00:00
Joel Sherrill
1c98d28cb7 Patch rtems-19991203.sh2.diff from John M. Mills <jmills@tga.com> which
fixes some problems:

    I found the problem which prevented opening 'dev/sci1' (the default
    console) with the 'gensh2' (sh7045) BSP. Both SCI ports were being
    initialized against the same minor device number: '0'. When I tried to
    open minor-device '1', it naturally crashed. Fixing that one value in the
    'sci_device[]' array solved the problem and allowed 'hello.exe' to run.
1999-12-13 20:35:09 +00:00
Joel Sherrill
f9669ce59e Patch from Silverio Diquigiovanni <silverio.di@qem.it> to correct
TPC values.  Reviewed by Ralf Corsepius <corsepiu@faw.uni-ulm.de>
who originally submitted the file.
1999-12-13 20:06:27 +00:00
Joel Sherrill
fc0b91c5d5 Patch from Eric Norum <eric@cls.usask.ca> to make the NTP handler a little
more flexible about the error status returned from a timeout.
1999-12-13 19:20:38 +00:00
Joel Sherrill
5dae90a524 Patch rtems-rc-19991203-3.diff from Ralf Corsepius <corsepiu@faw.uni-ulm.de>
which adds automake support to libbsp/bare.
1999-12-13 17:37:25 +00:00
Joel Sherrill
6b79a071de Patch from Jepsen Hans Peter <hans_peter_jepsen@Danfoss.com> to
use correct ifdef conditional (__GNUC__ not __GCC__).
1999-12-13 17:22:18 +00:00
Joel Sherrill
809f445197 Correction from Eric Norum for timeout in TFTP driver following bug
report by Nick.SIMON@syntegra.bt.co.uk:

TFTP uses UDP and UDP packets are prime targets for getting dropped when
the network gets busy.  I want the number of retries quite large in my
application. I see that PACKET_REPLY_MILLISECONDS is, in fact, not
being used.
1999-12-13 17:03:37 +00:00
Joel Sherrill
9537e5ec77 Patch from Eric Norum <eric@cls.usask.ca> to provide more network
functionality.  This puts RTEMS in near compliance with the network
functionality defined in the first draft of the EL/IX API.  Comments
follow:

    With the attached changes to the libnetworking/libc/Makefile.in, RTEMS
    provides all the functions listed in section 4.14 of the EL/IX document
    except:
        socketpair
        if_nametoindex
        if_indextoname
        if_nameindex
        if_freenameindex

    Some of the routines which get information from files may be of limited
    use unless an application sets up the files somehow (TFTP/untar from
    host, etc.), but at least RTEMS is pretty much fully buzzword compliant
    with the networking section of the EL/IX API.
1999-12-13 16:29:01 +00:00
Joel Sherrill
38b81b5d29 Patch from Emmanuel Raguet <raguet@crf.canon.fr> to correct some problems
in the dec21140 driver.  Comments follow:

    I have tried to use bootp with the dec21140 driver
    and I had problems. I have found them
         - Ethernet address must be known in Attach step
           (read from the board)
         - Endian problem for Ethernet address storage.

    Now it is solved and I can use bootp to obtain
    the network configuration of the target.
1999-12-13 16:25:03 +00:00
Joel Sherrill
4bdebdfe38 Patch rtems-rc-19991203-4.diff from Ralf Corsepius <corsepiu@faw.uni-ulm.de>"""
which is an adaptation of a patch from Ian Lance Taylor plus a few
other changes that should significantly speed up building librtemsall.a.
1999-12-13 16:16:44 +00:00
Joel Sherrill
ad0c286463 Patch rtems-rc-19991203-3.diff from Ralf Corsepius <corsepiu@faw.uni-ulm.de>
which adds automake support to libbsp/bare.
1999-12-13 16:02:57 +00:00
Joel Sherrill
fa178d4926 Patch rtems-rc-19991203-3.diff from Ralf Corsepius <corsepiu@faw.uni-ulm.de>
which adds automake support to libbsp/bare.
1999-12-13 15:57:41 +00:00
Joel Sherrill
d16faa2e60 Patch rtems-rc-19991203-2.diff from Ralf Corsepius <corsepiu@faw.uni-ulm.de>
to correct the missing part of the mcp750 patch.
1999-12-13 15:54:23 +00:00
Joel Sherrill
7d91d722ba First attempt at adding simple binary semaphore in addition to the current
"mutex" and counting semaphore.  This is at the request of Eric Norum
and his EPICS porting effort.
1999-12-13 15:29:20 +00:00
Joel Sherrill
e906798937 Corrected order of output. 1999-12-13 14:50:09 +00:00
Joel Sherrill
d9230ea9c0 Added RTEMS_IO_ERROR. 1999-12-13 14:49:38 +00:00
Joel Sherrill
49be66d2cf Now builds and installs properly. 1999-12-13 14:48:58 +00:00
Joel Sherrill
39e6bbe1aa Patch patches-rc-19991203-1.diff from Ralf Corsepius <corsepiu@faw.uni-ulm.de>
which makes i386 code available for all BSPs not just pc386.  This is correct
since the code is really general to all i386 BSPs now.
1999-12-06 13:44:56 +00:00
Joel Sherrill
a548c8a5f2 New file. 1999-12-03 16:00:51 +00:00
Joel Sherrill
76c356f365 Patch from Aleksey (Quality Quorum <qqi@world.std.com>) to change the
delay loop in this BSP.  Here is his response to a question about
the patch:

    Yes, or that other machine has a different chipset with different
    timing requirements on enabling Gate 20. I am strongly suspecting
    that it may some how related to the video card I am using (on my
    old P-75 target it was plain PCI VGA, on my new one it is Diamond Stealth
    3D 2000).
1999-12-03 15:46:17 +00:00
Joel Sherrill
1e4a7d413d Modem example driver for ppp by Tomasz Domin <dot@comarch.pl> of ComArch SA.
This was used on a mpc823 based system.
1999-12-03 15:44:28 +00:00
Joel Sherrill
a1efd7a98a Made to compile on other CPU families. 1999-12-03 14:48:27 +00:00
Joel Sherrill
ae252c92f9 Added dec21140 to Makefile.am. 1999-12-03 14:27:54 +00:00
Joel Sherrill
eb17041fbb Removed warnings. 1999-12-03 14:01:11 +00:00
Joel Sherrill
ad9a21ad84 New file. 1999-12-03 13:53:01 +00:00
Joel Sherrill
a0a6f67fe7 Added more timing information. 1999-12-03 13:48:53 +00:00
Joel Sherrill
5707fe9b41 New file based on information from <valette@crf.canon.fr>. 1999-12-03 13:46:13 +00:00
Joel Sherrill
5a8203085e Modification from Emmanuel Raguet <raguet@crf.canon.fr> to merge the
dec21140 drivers from the i386/pc386 and powerpc/mcp750 (all Motorola
PowerPC boards) and move the network driver to libchip.  This driver
should work on all PCI based uses of this chip.
1999-12-03 13:42:34 +00:00
Joel Sherrill
fc81cc9933 Patch rtems-rc-19991123-rc-3.diff from Ralf Corsepius
<corsepiu@faw.uni-ulm.de>:

    The patch below provides
      * automake support for score/cpu/powerpc
      * The hack to propagate values from *.cfg to automake configuration
      * A fix for librdbg/powerpc/mcp750/Makefile.am (Was completely corrupted
        before)
      * Fixes some files which apparently where missing in
        rtems-rc-19991123-rc-2.diff
      * some minor configuration related patches

    To apply:

      rm -rf ./c/src/exec/score/cpu/powerpc/wrap
      patch -p1 < rtems-rc-19991123-rc-3.diff

    Attention:
      c/src/exec/score/cpu/[configure.in|aclocal.m4|configure] should be
      removed after applying the patch.

Modifications had been made to the score/cpu/powerpc directory after
the snapshot this was based on.  In particular, the mpc750 and
other_cpu directories had been renamed to new_exception_processing
and old_exception_processing.  After this patch was applied, modifications
were made to account for this.
1999-12-03 13:31:56 +00:00
Joel Sherrill
4090ebe85c Patch rtems-rc-19991123-rc-3.diff from Ralf Corsepius
<corsepiu@faw.uni-ulm.de>:

    The patch below provides
      * automake support for score/cpu/powerpc
      * The hack to propagate values from *.cfg to automake configuration
      * A fix for librdbg/powerpc/mcp750/Makefile.am (Was completely corrupted
        before)
      * Fixes some files which apparently where missing in
        rtems-rc-19991123-rc-2.diff
      * some minor configuration related patches

    To apply:

      rm -rf ./c/src/exec/score/cpu/powerpc/wrap
      patch -p1 < rtems-rc-19991123-rc-3.diff

    Attention:
      c/src/exec/score/cpu/[configure.in|aclocal.m4|configure] should be
      removed after applying the patch.

Modifications had been made to the score/cpu/powerpc directory after
the snapshot this was based on.  In particular, the mpc750 and
other_cpu directories had been renamed to new_exception_processing
and old_exception_processing.  After this patch was applied, modifications
were made to account for this.
1999-12-03 13:25:00 +00:00
Joel Sherrill
5ea0bd37ed Patch from Rosimildo DaSilva <rdasilva@connecttel.com> for Cygwin
to consistently use $(EXEEXT).
1999-12-03 13:14:08 +00:00
Joel Sherrill
4328345602 Patch rtems-rc-19991123-rc-2.diff from Ralf Corsepius
<corsepiu@faw.uni-ulm.de>:

    The patch below provides
      * automake support for score/cpu/powerpc
      * The hack to propagate values from *.cfg to automake configuration
      * A fix for librdbg/powerpc/mcp750/Makefile.am (Was completely corrupted
        before)
      * Fixes some files which apparently where missing in
        rtems-rc-19991123-rc-2.diff
      * some minor configuration related patches

    To apply:

      rm -rf ./c/src/exec/score/cpu/powerpc/wrap
      patch -p1 < rtems-rc-19991123-rc-3.diff

    Attention:
      c/src/exec/score/cpu/[configure.in|aclocal.m4|configure] should be
      removed after applying the patch.
1999-12-02 17:45:14 +00:00
Joel Sherrill
e492f910f2 Jennifer added initial test code. Conditional'ed out until she has
the opportunity to work with it.
1999-12-02 17:34:50 +00:00
Joel Sherrill
3a9605429c Merged of mcp750 and mvme2307 BSP by Eric Valette <valette@crf.canon.fr>.
As part of this effort, the mpc750 libcpu code is now shared with the
ppc6xx.
1999-12-02 14:58:38 +00:00
Joel Sherrill
acc25eec35 Merged of mcp750 and mvme2307 BSP by Eric Valette <valette@crf.canon.fr>.
As part of this effort, the mpc750 libcpu code is now shared with the
ppc6xx.
1999-12-02 14:31:19 +00:00
Joel Sherrill
4cf56006c7 Merged of mcp750 and mvme2307 BSP by Eric Valette <valette@crf.canon.fr>.
As part of this effort, the mpc750 libcpu code is now shared with the
ppc6xx.
1999-12-02 14:10:14 +00:00
Joel Sherrill
e4ab88fde5 Merged of mcp750 and mvme2307 BSP by Eric Valette <valette@crf.canon.fr>.
As part of this effort, the mpc750 libcpu code is now shared with the
ppc6xx.
1999-12-02 14:00:01 +00:00
Joel Sherrill
5554279677 Merged of mcp750 and mvme2307 BSP by Eric Valette <valette@crf.canon.fr>.
As part of this effort, the mpc750 libcpu code is now shared with the
ppc6xx.
1999-12-02 13:54:30 +00:00
Joel Sherrill
5d3da15b83 Removed debugging printfs. 1999-12-01 16:00:38 +00:00
Joel Sherrill
017061c561 Patch from Eric Norum <eric@cls.usask.ca> to fix a spot in the tftp file
system table from when the rtems_filesystem_operations_table structure changed
and the initializer in libnetworking/lib/tftpDriver.c did not get
updated.
1999-12-01 15:54:17 +00:00
Joel Sherrill
955a9ba74c Patch rtems-rc-19991123-rc-2.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/a29k/wrap
        rm -rf c/src/exec/score/cpu/hppa1.1/wrap
        rm -rf c/src/exec/score/cpu/i386/wrap
        rm -rf c/src/exec/score/cpu/mips64orion/wrap
        rm -rf c/src/exec/score/cpu/no_cpu/wrap
        patch -p1 < rtems-rc-19991123-rc-2.diff.gz

    Notes:

    * I don't see a possiblity to convert the powerpc subdirectory in its
      current layout to automake the time being.

    * Besides the fact that this subdirectory is not in single-tree building
      layout, the actual showstopper is the ifeq $(RTEMS_CPU_MODEL),mpc750)
      gmake-conditional in powerpc/Makefile.in, which automake (correctly)
      refuses to handle.

    * The problem is *not* specific to the powerpc. Other CPUs basically
      have similar problems (SH:sh7032 vs sh7045, SPARC: erc32.h in
      score/cpu/sparc), but have been lucky to get around real issues (cf.
      configuration files below score/cpu/sh/).

    * From a configuration focused POV this problem boils down to a
      file/subdirectory selection problem:
         ppc: 1 or others
         sh: 1 out of 2
         sparc: 1 out of 1
      Automake's means to implement such behavior is using conditionals to be
      evaluated at configuration-time. The old configuration scheme however
      used make-time conditionals. The SH port was lucky to get around this
      issue because it applies a selection from a limited set of possible
      selections, the powerpc however applies a selection from an unlimited
      set, based on data not being available at configuration time.

    * Currently I only see two general solutions:
       1) make RTEMS_CPU_MODEL available at configuration time, ie. replace
          make-time configuration by configuration-time configuration
       2) Perform the selection at build-time, i.e. always install all files,
          but use #ifdef #else #endif in source files. This is what the m68k has
          exploited at other locations inside of the source-tree.

    => This directory is the last one remaining not using automake below the
       whole exec/ hierarchy.
1999-12-01 15:05:26 +00:00