Commit Graph

2438 Commits

Author SHA1 Message Date
Joel Sherrill
379d2ed5a9 New files added to ease debugging. 1999-01-31 19:12:46 +00:00
Joel Sherrill
cdf8a30092 Patch from Eric Norum <eric@skatter.usask.ca> to avoid dereferencing a
NULL pointer.
1999-01-28 18:42:34 +00:00
Joel Sherrill
c9df8d8f7c Patch from Eric Norum <eric@skatter.usask.ca> to set more flags in
rtems_bsdnet_makeFdForSocket().
1999-01-28 18:42:04 +00:00
Joel Sherrill
d90df9aa2b Added include of <rtems/posix/priority.h> so a macro would expand
and eliminate a link error.
1999-01-26 16:00:04 +00:00
Joel Sherrill
39ba912277 Changed prototype of rtems_bsdnet_makeFdForSocket to (void *) pointer
so that the libc code did not have to know about (struct socket).
1999-01-26 01:50:31 +00:00
Joel Sherrill
887618b0e7 Switched from printf() to puts(). 1999-01-26 01:49:56 +00:00
Joel Sherrill
d78b7a9ed7 Added libio_sockets.c to hold support routines for networking code. 1999-01-26 01:49:31 +00:00
Joel Sherrill
39c972331d Added prototype information about the SONIC driver. 1999-01-26 01:48:58 +00:00
Joel Sherrill
03598b162e Split most of POSIX Threads Manager into multiple files. 1999-01-25 23:20:52 +00:00
Joel Sherrill
535db3ae0c Added enough prototypes to allow most of POSIX Threads Manager to be
split into multiple files.
1999-01-25 23:20:39 +00:00
Joel Sherrill
94b3ee1366 Made to compile after hacking tftp driver into beginnings of a mini-filesystem. 1999-01-21 22:25:43 +00:00
Joel Sherrill
3048b8f3ac Added common problems section after post by Philippe Le Foll
<Philippe.LeFoll@fridu.com> on rtems-list. :)
1999-01-21 14:51:34 +00:00
Joel Sherrill
97d6366040 Changed call to __rtems_close() to close(). 1999-01-20 21:59:09 +00:00
Joel Sherrill
c27b2d0dbe Update of network driver from Erik Ivanenko <erik.ivanenko@utoronto.ca>.
Comments follow:

    Here is the contents of the network directory of the i386ex BSP.  The
    reset function has been recently added, and tested through a command
    line interface.  A reset event to the reset thread to reset the NIC.
    This is done when the ISR detects that the NIC is in an invalid state.
    It has not been tested "in real life" since the board has not seen an
    invalid state since the reset function was implemented.
1999-01-20 18:55:50 +00:00
Joel Sherrill
f91b8df17d Patch from Eric Norum <eric@skatter.usask.ca> to make m68360.h usable
outside RTEMS.  Comment:

    I found a couple of places other than RTEMS where I'd like to use
    the declarations supplied in m68360.h.  To make this easier to do,
    I've redone the declarations in m68360.h to use standard C types.
1999-01-20 15:55:52 +00:00
Joel Sherrill
2d733c424b More general fix based on bug report and patch from Ian Lance Taylor
<ian@airs.com> to fix this problem:

    There is a small bug in __rtems_close in c/src/lib/libc/libio.c.  It
    does not check whether the file descriptor it is passed is open.  This
    can cause it to make a null dereference if it is passed a file
    descriptor which is in the valid range but which was not opened, or
    which was already closed.
1999-01-20 15:48:22 +00:00
Joel Sherrill
5f22d0916a Removed referencing to network driver since it has not been merged yet. 1999-01-19 21:29:29 +00:00
Joel Sherrill
98cc966d72 Regenerated. 1999-01-19 21:29:07 +00:00
Joel Sherrill
6a14ae56a3 Added comments to indicate what options are required to take advantage
of removal of unused function code found in newer binutils/egcs
snapshots.  Early test with psim and hello.exe showed about a 13%
gain.
1999-01-19 20:24:56 +00:00
Joel Sherrill
7d0dbf1a6c Changed definition of ASMFLAGS since as does not recognize -B option
used in gcc.
1999-01-19 20:23:57 +00:00
Joel Sherrill
a7c4314dca Added comments for changing to a filesystem 1999-01-19 20:23:15 +00:00
Joel Sherrill
eb6fafd33b Per bug report from Jiri Gaisler that RTEMS would no longer build
with the --disable-posix option, stubs for some routines (_getpid_r and
_kill_r) that are normally defined with POSIX were added.
1999-01-19 20:19:22 +00:00
Joel Sherrill
1924610486 Removed duplicate lines in file. 1999-01-19 20:17:33 +00:00
Joel Sherrill
ba2adf540e Patch from Jiri Gaisler <jgais@ce.chalmers.se>:
getting the spurious trap handling to work required a couple more
  fixes - I have attached a patch against rtems-4.0.0 with the
  necessary changes. I also added functionality so that the
  address of the trapped instruction is reported and in case of
  a data access error, the data address is also reported.
1999-01-19 20:09:33 +00:00
Joel Sherrill
b33d8a21ff Moved sys/ioctl.h to libc support 1999-01-19 17:38:13 +00:00
Joel Sherrill
16a9ee1d06 Bug report from Jiri Gaisler <jgais@ws.estec.esa.nl>:
> > I think I have found a bug in src/exec/scor/sparc/cpu/erc32.h in:
> >
> > #define ERC32_Disable_interrupt( _source, _previous ) \
> >   do { \
> >     unsigned32 _level; \
> >     unsigned32 _mask = 1 << (_source); \
> >     \
> >     sparc_disable_interrupts( _level ); \
> >       (_previous) = ERC32_MEC.Interrupt_Mask; \
> >       ERC32_MEC.Interrupt_Mask = _previous | _mask; \
> >     sparc_enable_interrupts( _level ); \
> >     (_previous) &= ~_mask; \                  <- IS THIS CORRECT...?
> >   } while (0)
> >
> > The previous interrupt mask is returned after first clearing the
> > bit to be disabled, regardless whether the bit was set before or
> > not. If the bit was set (interrupt masked), subsequent call to
> > ERC32_Restore_interrupt() will enable the interrupt even though
> > it was supposed to be masked. This is indeed what happens in
> > DEBUG_puts when polled console I/O is used. In my opinion, the
> > last statement in the macro should be removed - what is your opinion?
>
> I think the "~" shouldn't be there.  I recall that the intent of that line
> is to only return the state of the interrupts you were concerned with.
> Removing the line returns entire state.  Given that the value returned
> shuold only be used in conjunction with the map, I suppose either removing
> the ~ or the entire line is correct?   I can go either way.  Just let me
> know which you think is more correct and the source will change. :)

Hmmm, just removing the '~' should be OK. DEBUG_puts() seems to be the
only user of ERC32_Restore_interrupt() anyway ...
1999-01-13 14:13:47 +00:00
Joel Sherrill
97503aa5e3 Patch from Chris Johns <ccj@acm.org> to get around a C++ problem with psim.
This problem should and likely was occurring with other BSPs.  This is from
Chris' email:

    I had a look in the psim bsp for the older snapshot I have and it looks
    like you are using the `libbsp/shared/main.c' and this is known to work.

    I have just built the powerpc tools, and compiled the bsp. I have not
    added the linker command file patch so got the list of linker warnings.

    It looks to me like a compiler bug. The `main' call is being inlined and
    when that happens the special code to call `__eabi' is not being added
    to the inlined version. I have attached a patch which places `main'
    after `boot_card' and a call to main is now generated. I have not tested
    it but it should work. I also include a dump of `boot_card' and `main'
    showing the bug.
1999-01-05 17:50:03 +00:00
Joel Sherrill
eb0d7ae2da Patch from D. V. Henkel-Wallace <gumby@zembu.com> to use puts and have prototype. 1999-01-04 16:35:31 +00:00
Joel Sherrill
88a0908402 Patch from D. V. Henkel-Wallace <gumby@zembu.com> to fix braces nesting problem. 1999-01-04 16:30:06 +00:00
Joel Sherrill
60a2d6899d Patch from D. V. Henkel-Wallace <gumby@zembu.com> to make macro nest properly in conditionals 1999-01-04 16:28:49 +00:00
Joel Sherrill
73441b6fef Removed blank lines 1999-01-04 16:26:37 +00:00
Joel Sherrill
c1ee30f816 Patch from D. V. Henkel-Wallace <gumby@zembu.com> to remove unused variable. 1999-01-04 16:24:59 +00:00
Joel Sherrill
96b46bf87e Patch from D. V. Henkel-Wallace <gumby@zembu.com> to mark sav as unused. 1999-01-04 16:23:29 +00:00
Joel Sherrill
7a42b0ca35 Patch from Jay Kulpinski <jskulpin@eng01.gdds.com> to get cdtest.exe to run. 1998-12-17 22:14:35 +00:00
Joel Sherrill
539ef72f84 changed version to 19981217 1998-12-17 21:09:49 +00:00
Joel Sherrill
29936e4c1a changed version to 19981217 1998-12-17 21:03:57 +00:00
Joel Sherrill
0296c071b6 Updated to correct information on post switch extension and to make
the user extension table type definition correct.
1998-12-17 18:34:01 +00:00
Joel Sherrill
94c0943d17 Corrected information about the post_switch extension. 1998-12-17 18:21:39 +00:00
Joel Sherrill
0ed9ac7820 Updated socket information 1998-12-17 18:18:44 +00:00
Joel Sherrill
183369d865 Incorporated Jeff's suggestions. 1998-12-17 18:15:39 +00:00
Joel Sherrill
a54541d8e3 Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de> to eliminate another
compiler dependent flag in a Makefile.
1998-12-17 18:12:36 +00:00
Joel Sherrill
9d36726507 Added MIPS supplement template. 1998-12-17 17:30:24 +00:00
Joel Sherrill
f0d3e6cea3 New file added in automake reorg. 1998-12-17 16:20:59 +00:00
Joel Sherrill
646879b244 Automake reorgnization. 1998-12-17 16:17:44 +00:00
Joel Sherrill
f57e315391 changed version to 19981215 1998-12-16 00:35:04 +00:00
Joel Sherrill
283d728541 Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de> heading toward
automake:

  Notes:
    * I didn't yet touch the cpu subdirectory. I still need some time to
      think on how to handle them.
    * I probably will wait for the next snapshot before mailing more patches
      (I still have some pending), giving you a chance to apply them and me a
      chance to become target of the bullets which will probably be aimed at
      me after these modifications.
1998-12-16 00:01:08 +00:00
Joel Sherrill
5428b10686 More automake preparation changes from Ralf Corsepius
<corsepiu@faw.uni-ulm.de>.
1998-12-15 23:40:53 +00:00
Joel Sherrill
0825f57833 Moved around per Ralf Corsepius as preparation for automake 1998-12-15 23:32:19 +00:00
Joel Sherrill
ee44db38c0 Part II automake reorg by Ralf Corsepius 1998-12-15 22:02:28 +00:00
Joel Sherrill
7e22c7d060 Part II automake reorg by Ralf Corsepius 1998-12-15 21:57:08 +00:00