Commit Graph

1367 Commits

Author SHA1 Message Date
Joel Sherrill
d13b247131 Clean up from Aleksey Romanov (Quality Quorum <qqi@world.std.com>).
Here are his comments:

  I removed all unnecessary stuff from start16.s - setting idt and
  setting 16-bit stack using .code32 istructions.
1998-06-25 18:42:30 +00:00
Joel Sherrill
7252f65668 Added David Fiddes for ColdFire. 1998-06-25 16:54:08 +00:00
Joel Sherrill
b22b1294a6 Coldfire support patch from David Fiddes <D.J.Fiddes@hw.ac.uk>. 1998-06-25 16:26:43 +00:00
Joel Sherrill
924e17ac81 Patch from Robin Kirkham <Robin.Kirkham@mlb.dmt.csiro.au> to distinguish
between CPU32 and CPU32+ cores.  Commentary follows:

    Unfortunately c/src/exec/score/cpu/m68k/m68k.h incorrectly defines
    M68K_HAS_MISALIGNED for the plain old CPU32 (it is correct for the CPU32+).
    As a consequence, the recently-relocated m68k memcpy() may still attempt
    misaligned memory accesses.

    I suggest that until such time as egcs/gcc differentiates these cores
    that we invent a new preprocessor symbol, RTEMS__mcpu32p__ for this
    purpose, on the assumption that egcs may one day grow a -mcpu32+ option
    which will define a __mcpu32p__ symbol (whether this option would also
    define __mcpu32__ is yet to be resolved).

    BSPs that have a CPU32+ (like gen68360) would for the time being define
    RTEMS__mcpu32p__ using -D. The symbol is `RTEMS__mcpu32p__' because
    symbols of the form __xxx__ should only be defined by the compiler
    itself.

    Note that the patch tests for RTEMS__mcpu32p__ *before* __mcpu32__, since
    __mcpu32__ is still defined for the CPU32+. It does not change the
    gen68360 BSP.

    An aside:
    Note that in egcs-1.0.3a, the option -m68332 is identical to -mcpu32,
    except it defines __mc68332__ as well as __mcpu32__. This is only
    for the sake of compatibility. The story with -m68302 is similar;
    it defines __mc68302__ and __mc68000__. In my opinion these options
    are depreciated and ought to be avoided in RTEMS.
1998-06-25 16:10:45 +00:00
Joel Sherrill
803de4133b Suggestion from Robin Kirkham <Robin.Kirkham@mlb.dmt.csiro.au> to improve
clarity.
1998-06-24 17:58:56 +00:00
Joel Sherrill
414ab59a1e Updated. 1998-06-24 14:51:09 +00:00
Joel Sherrill
4f0ffa57d8 Removed RTS and DTR handling code since the MC68681 seems to only have
automatic handling of RTS/CTS.  This only protects the on-chip buffers
and FIFOs -- not the termios queues as the RTS/CTS code in here did.  It
may be necessary in the future to enable this automatic support.

Interrupt processing code added.

In some places, channel and duart base addresses were swapped.
1998-06-23 17:42:46 +00:00
Joel Sherrill
ae21568caa New file describing mc68681 libchip driver. 1998-06-23 17:40:00 +00:00
Joel Sherrill
beaaf49f4b Added numerous comments. 1998-06-23 16:02:52 +00:00
Joel Sherrill
a5d0c7cf07 Added concept of "mate" -- the other port on the same DUART. This is
needed to properly handle the interrupt mask register since it is
shared.
1998-06-23 15:54:33 +00:00
Joel Sherrill
b7ebcea33e Added close. 1998-06-23 14:59:26 +00:00
Joel Sherrill
25c3ff91a5 Added set attributes and written initialize and first open. 1998-06-23 14:55:21 +00:00
Joel Sherrill
790d4211ae Added more registers. 1998-06-23 14:54:42 +00:00
Joel Sherrill
9eef52b95f Added set attributes prototype. 1998-06-23 14:54:30 +00:00
Joel Sherrill
8a2d4f2bb9 Added NULL entry for setAttributes. 1998-06-23 14:54:09 +00:00
Joel Sherrill
7deeb16840 Added initial part of iniitialization. 1998-06-22 11:49:38 +00:00
Joel Sherrill
ab2dbd7e94 Added mc68681 stuff to the makefile.
Added numerous constants to mc68681_p.h.

Changed spacing.

At this point the polled support is in but nothing else is right except the
structure.
1998-06-22 11:09:32 +00:00
Joel Sherrill
36152b0e4b Moved get and set register/data typedefs to this file. 1998-06-22 11:08:16 +00:00
Joel Sherrill
4cd4c5a092 Moved set and get Register and Data type defininitions to serial.h.
Cleaned up spacing.
1998-06-22 11:07:51 +00:00
Joel Sherrill
58b1e95f18 Corrected spacing 1998-06-22 10:34:34 +00:00
Joel Sherrill
424e23ee48 spacing changes 1998-06-22 10:17:14 +00:00
Joel Sherrill
547de5d956 Removed blank lines and bad debug stuff 1998-06-22 10:15:14 +00:00
Joel Sherrill
e4acf68ace Added comments and corrected spacing. 1998-06-22 09:59:22 +00:00
Joel Sherrill
aa0da6b2c2 Added a comment and cleaned up spacing 1998-06-22 09:56:09 +00:00
Joel Sherrill
cd58d821b0 Initial version of these files. 1998-06-22 09:28:03 +00:00
Joel Sherrill
ce17a7245c changed version to 980618 1998-06-18 19:14:36 +00:00
Joel Sherrill
cb1b853d0b All task delete API level services were incorrectly assuming that the
task to be deleted was created via the same API (i.e. were of the object
class created by this API).  For example, a POSIX thread calling
the rtems_task_delete(SELF) directive would incorrectly update the RTEMS
object local pointer table.

Jennifer discovered this when moving tests implemented in C using the
Classic RTEMS API into a tree of Ada tests.  The Ada tests were implicitly
using POSIX services.  This lead to some unexpected behavior.
1998-06-18 19:01:57 +00:00
Joel Sherrill
7e4c3d8b1d Modified _Objects_Is_class_valid() to correctly report that 0 was
not a valid object class.  This was discovered while looking for
a bug reported by Jennifer.
1998-06-18 18:58:42 +00:00
Joel Sherrill
9a6994b490 Added freebsd support from Dario Alcocer <alcocer@connectnet.com>. 1998-06-18 15:22:35 +00:00
Joel Sherrill
ce691c51fd Corrected so it returns the correct date. Previously was getting the number
of seconds since 1988 from RTEMS and not adding in the 1970-1988 correction
factor.  Plus removed checks for data/time set since POSIX does not permit
this call to fail.  GNAT 3.12 depends on this.
1998-06-18 15:14:48 +00:00
Joel Sherrill
bdb1057668 Spacing changes. 1998-06-18 15:13:29 +00:00
Joel Sherrill
ecc9737f40 Added a public interface to the chain handler. 1998-06-18 15:12:27 +00:00
Joel Sherrill
fe52766e81 Corrected compilation problems. 1998-06-16 19:06:35 +00:00
Joel Sherrill
8bf609527b Added initialization of css routines. 1998-06-16 19:05:50 +00:00
Joel Sherrill
1efeb61c56 Added css_iface -- assumes ../include/dy_supplied. 1998-06-16 18:22:54 +00:00
Joel Sherrill
ee3b242bb2 Initial incarnation of libchip compiles. 1998-06-13 16:03:57 +00:00
Joel Sherrill
0737710b2b Base code from ppcn_60x BSP 1998-06-13 15:48:25 +00:00
Joel Sherrill
23f5cdb5bb Adding interrupt handling routine. 1998-06-13 13:34:09 +00:00
Joel Sherrill
510524c61c Removed bad comments. 1998-06-13 13:34:08 +00:00
Joel Sherrill
8d83075595 Added IRQ information. 1998-06-13 13:33:38 +00:00
Joel Sherrill
a12d7fd72f Updated to add -qrtems_debug and -qnolinkcmds. 1998-06-13 13:33:11 +00:00
Joel Sherrill
773890639c Added optimized version of memcpy.c to this directory since RTEMS makes
important distinctions between CPU models which are not made by gcc.
These distinctions help give us a more optimized memcpy().  This is important
for message queues and KA9Q.
1998-06-12 21:12:12 +00:00
Joel Sherrill
9b413eaef6 Patch from Eric Norum to avoid printing from context switch user extension.
The array is too long and needs to be shortened.
1998-06-12 20:55:21 +00:00
Joel Sherrill
2a53f31023 Fixed comment block at the beginning of the file for a copyright date
problem and an English problem.
1998-06-09 15:23:38 +00:00
Joel Sherrill
9456087368 Added rule for .cxx and .cpp per suggestion from Geoffroy Montel
<g_montel@yahoo.com>.
1998-06-09 14:21:21 +00:00
Joel Sherrill
cec1095101 changed version to 980604 1998-06-04 15:15:30 +00:00
Joel Sherrill
70b0d6634d Added support for -qrtems_debug flag. 1998-06-04 13:08:02 +00:00
Joel Sherrill
ea57368f1b Removed PPC_Get_timebase_register() as this is now provided by the PowerPC
port itself.
1998-06-03 19:01:21 +00:00
Joel Sherrill
3c7916f21c Update from Pedro Romano <pmcnr@camoes.rnl.ist.utl.pt> with an attempt
to fix start16.s.  It does not work locally.
1998-06-03 19:00:57 +00:00
Joel Sherrill
937a6f3cef Added CPU_ISR_PASSES_FRAME_POINTER so some ports could pass just the
vector number to user ISR's and other ports could pass both the vector
number and a pointer to the ISF.
1998-06-03 19:00:17 +00:00