Commit Graph

1778 Commits

Author SHA1 Message Date
Joel Sherrill
73452854c0 Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>:
Here is a pure sh-rtems bug-fix patch.

  The defines to enable the network to host conversion macros in
  netinet/in.h were missing in sh/cpu.h
1998-07-23 20:04:55 +00:00
Joel Sherrill
613ab621df Patch from Dario Alcocer <alcocer@connectnet.com> and Ralf Corsepius
<corsepiu@faw.uni-ulm.de> which attempts to detect when the UNIX port
is being configured on a system without System V IPC support.  This
is an optional component on both FreeBSD and Linux systems.  Most
Linux 2.x kernels ship with it enabled but it is still a real risk.

This test may have undesirable side-effects on some hosts.  We will
address those conflicts as they arise.
1998-07-23 19:39:25 +00:00
Joel Sherrill
c91e0325cc Removed consolex from build list. This file should be obsoleted by the
libchip, libio, and termios efforts.
1998-07-23 19:32:01 +00:00
Joel Sherrill
92fc5a5db7 Fix from Chris Johns <ccj@acm.org>. Comments:
Mask interrupts and save the current USP and MSP for all 68000 processor
    variants.
1998-07-21 13:59:12 +00:00
Joel Sherrill
bced36ddf0 Changed so we could test interrupts on port 3. 1998-07-18 18:44:12 +00:00
Joel Sherrill
c14a619709 Removed use of data port for z8530.
Move some code around.
1998-07-18 18:35:34 +00:00
Joel Sherrill
3652929e61 Removed use of data port for z8530.
Tested all four ports.  MC68681 as both polled and interrupt.  Z8530 as
polled only.
1998-07-18 18:35:07 +00:00
Joel Sherrill
91f16d5c40 New file 1998-07-18 18:34:04 +00:00
Joel Sherrill
a4d34dd20d Added z85c30 specific probe routine to decide what the clock rate was.
This routines could be enhanced to determine if the SCC is present
since it appears from the DY-4 manual that a status registers indicates
this.
1998-07-18 17:47:50 +00:00
Joel Sherrill
f8a5d54ea8 Addresses for SCC were wrong. A and B ports were swapped.
Deleted CSS interface related items.

Added items required to access DMA Control and Status Register so we
could figure out dynamically what the clock speed of the SCC really is.
1998-07-18 17:46:33 +00:00
Joel Sherrill
c53e1df40b Swapped RX and TX since doing this makes the lights blink on the
RS-422 converter.  We now see the TD light blink when typing
characters in HyperTerminal and when the board is reset we see
the RD light blink.  This leads us to believe the cabling is
basically right.
1998-07-18 16:56:16 +00:00
Joel Sherrill
fe05ec5ede Added RS-422 converter information and cable building information. 1998-07-18 16:11:13 +00:00
Joel Sherrill
cc3d33ac9b Added information on the MC68681. 1998-07-18 15:34:03 +00:00
Joel Sherrill
f7d6e57e09 Added background and setup to add section on RS-422. 1998-07-18 15:24:14 +00:00
Joel Sherrill
f77670be93 Reworked to removed dependency on DY-4 CSS ROM monitor interface. 1998-07-18 15:23:56 +00:00
Joel Sherrill
e286479ae8 Removed css_iface. 1998-07-18 15:23:24 +00:00
Joel Sherrill
6d4062f1ec Removed. We are no longer dependent on DY-4 CSS interface code. 1998-07-18 15:22:54 +00:00
Joel Sherrill
cce1200e43 New file. 1998-07-18 15:19:28 +00:00
Joel Sherrill
4555bc1eb5 Initialized tty->refcount to 0. When (for whatever reason) malloc()
returned a buffer which was not zero-filled, the reference count
was not correct.  When the application exitted, the "lastClose"
handler was not being called to flush the output.  This problem
had manifested itself on a variety of platforms.

The function rtems_termios_dequeue_characters() incorrectly incremented
the buffer pointers when it was invoked and there were no characters
in the ring buffer.  This problem had also manifested itself on a
variety of platforms.  The symptom was a strange repeating of the
data in the transmitter buffer when the transmitter serial device
was supposed to go idle.
1998-07-17 22:34:54 +00:00
Joel Sherrill
4fb08fd89e Regenerated. 1998-07-17 22:30:38 +00:00
Joel Sherrill
f95d2b53f2 Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>. Comments:
* Added support for bsd "install" ($(BSDINSTALL)) to host.cfg.in, i.e.
    the standard "install" program that most packages (including automake)
    use. In Makefiles outside of rtems, "install" normally is referenced by
    $(INSTALL), but rtems already uses $(INSTALL) for install-if-change,
    hence I used $(BSDINSTALL) instead to keep up backward compatibility.

    * Removed references to @GREP@ etc. from host.cfg.in, as configure.in
    doesn't check for them (Minor cleanup).

    * Added installation flags INST*FLAGS to host.cfg.in, which should
    replace -m XXXX flags for installation calls.

    *Changes to gcc.cfg to enable it to build host programs from multiple
    sources files.
    Should not disturb existing sources, but neccessary.

    * There was a not-so-minor bug in the configuration files: "make
    install" and "make debug_install" don't work in all subdirectories!! I
    tried to fix this by adding "install" to MTARGETS in main.cfg, which
    seems to solve most of the problems. But there still seem to be rare (?)
    cases where "make debug_install" still seems to have problems.

    * Changes to many host related tool-Makefiles to demonstrate the
    abilities of INST*FLAGS, BSDINSTALL and the new rules in gcc.cfg.
    ..of cause ... but BSDINSTALL is THE standard method to install files
    in most program packages besides rtems. This part of the patch fixes
    some minor protection setting problems, but doesn't support
    TARGET_VARIANTS

    NOTE:
    I hope you will like the BSDINSTALL, INST*FLAGS stuff. It is a step to
    get rid of "install-if-change" and to rely on a more standard
    installation procedure. If you don't like BSDINSTALL, removing it from
    the patch isn't  difficult-  just grep for BSDINSTALL and replace
    BSDINSTALL with INSTALL or MKDIR.


    FINALLY:
    I still have another patch pending (well, not a complete patch yet, it's
    a partial patch to demonstrate the principle), which adds automatic
    rebuilding of files generated by autoconf/configure. At the moment I
    don't dare to submit it, because integrating this patch would require to
    modify all Makefile.ins because we'd need to add a new "include " line
    to each Makefile.in.
1998-07-17 15:49:12 +00:00
Joel Sherrill
8123c63506 Added scitab directory. 1998-07-17 15:43:42 +00:00
Joel Sherrill
a56e475f25 Turned stack checker on. 1998-07-17 15:42:39 +00:00
Joel Sherrill
bdba552f7a Patch fromalf Corsepius <corsepiu@faw.uni-ulm.de>:
* c/src/lib/libbsp/sh/gensh1/scitab - NEW DIRECTORY
    Location for building the table generated by shgen
1998-07-17 15:19:04 +00:00
Joel Sherrill
9305e52a18 Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
Changes to make/custom/gensh1.cfg. Needed for shgen support
1998-07-17 15:18:08 +00:00
Joel Sherrill
fa21a8439f New files from Ralf Corsepius <corsepiu@faw.uni-ulm.de>. His comments:
* c/src/exec/score/tools/sh - NEW DIRECTORY - contains shgen
    Most of it should be self-explanatory. I am a little bit concerned about
    host-dependent features (getopt, floating point libraries). This
    shouldn't disturb much now, as this tool should be compileable on all
    gnu-based hosts and is only applicable for the sh. But in case somebody
    complains, we may need to add autoconf checks or even restructurize
    parts of rtems (IMO, rtems needs to be restructurized - remember the
    "turning rtems upside down" issue).
1998-07-17 15:17:29 +00:00
Joel Sherrill
6e65840670 Patch from Dario Alcocer <alcocer@connectnet.com>. His comments:
Haven't had a chance to do an extensive shake-out of 980710, but it
  builds just fine on FreeBSD 2.2.5 (after termios is fixed using the
  attached patch), and the tests run fine.  FYI: FreeBSD doesn't support
  System V IPC out of the box, but one only needs to add three options
  to the kernel build configuration file, recompile the kernel, and
  you're ready.
1998-07-17 13:05:03 +00:00
Joel Sherrill
16d0e63538 Corrected header files. 1998-07-16 00:16:22 +00:00
Joel Sherrill
a6f441b825 Minor corrections for typos to get it to compile. 1998-07-16 00:16:11 +00:00
Joel Sherrill
dd5d2f041f Split default baud rate table into its own file. This shrinks the
size of the minimum mc68681 driver.  The clock speed field can not
now be configured as NULL but must instead specify the address of
the default table.
1998-07-16 00:03:01 +00:00
Joel Sherrill
4a11d8c1b2 Fixed typo in which last port did not get switched to default
register access routines.
1998-07-15 23:58:08 +00:00
Joel Sherrill
849dc10756 Fixed typos. 1998-07-15 23:57:41 +00:00
Joel Sherrill
670d0378e7 Switched to usign the default z8530 and mc68681 register access routines. 1998-07-15 23:55:04 +00:00
Joel Sherrill
8414c033e2 Added default z85c30 register access routines. 1998-07-15 23:54:24 +00:00
Joel Sherrill
cce93220ec Added default mc68681 register access routines. 1998-07-15 23:54:08 +00:00
Joel Sherrill
991a1ab400 Added check for proper deviceType to interrupt processing code. 1998-07-15 23:21:55 +00:00
Joel Sherrill
efaf85faf1 Added interrupt mask and interrupt status register bit constants.
Added prototype for mc68681_build_imr(), mc68681_process(), and
mc68681_enable_interrupts().
1998-07-15 23:21:30 +00:00
Joel Sherrill
49370cd68c Added default mc68681 register access routines. 1998-07-15 23:20:50 +00:00
Joel Sherrill
198d851c77 Switched from driver's own buffering to using termios. This eliminated
the need for the ringbuffer manipulation in this driver.  It should
also allow the removal of mc68681_flush.  This greatly simplified the
interrupt processing.

Reworked Interrupt Mask Register handling.  Added imr field to the device
context.  This handling makes sure that the IMR accurately reflects the
state of the port in use and its mate.  This required the reworking of
the mc68681_enable_interrupts() routine to allow for the specification
of which interrupt sources were being enabled/disabled.

Reworked initialization to reset using port address rather than chip
base address.  Basically we were always resetting port 0.

Added deviceType field which allows for multiple chips of the same
class to have the same vector number.
1998-07-15 23:20:33 +00:00
Joel Sherrill
27a66bd999 Added information on the deviceType field. 1998-07-15 23:15:49 +00:00
Joel Sherrill
66f95fc621 Added default mc68681 register access routines. 1998-07-15 23:15:32 +00:00
Joel Sherrill
8a2e9c417f Added SCV64_Get_Interrupt_Enable().
Added proper headers to routines.
1998-07-15 21:43:28 +00:00
Joel Sherrill
d0cff6dc67 Added SCV64_Get_Interrupt_Enable(). 1998-07-15 21:43:00 +00:00
Joel Sherrill
38e717fe8b Added chip type identifier field. This was necessary because a single
interrupt vector can be shared by multiple chips of varying types.
1998-07-15 21:42:26 +00:00
Joel Sherrill
c0573d7e5d Added comment to remove use of TxBuffer ring buffer in all libchip drivers.
The scheme used in the mc68681 is the one to follow.
1998-07-15 21:40:42 +00:00
Joel Sherrill
0f613361b7 Added comments. 1998-07-15 19:28:29 +00:00
Joel Sherrill
a69f0ad9ca Added comments. 1998-07-15 19:20:20 +00:00
Joel Sherrill
100a4e53fc Masked out interrupts not being used prior to processing the status register. 1998-07-15 19:19:14 +00:00
Joel Sherrill
6c45da17cf Added routine to return interrupt mask. Added comments. 1998-07-15 19:12:11 +00:00
Joel Sherrill
01e54b8f9c Added scv64 subdirectory. 1998-07-15 14:06:37 +00:00