Commit Graph

1288 Commits

Author SHA1 Message Date
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
Joel Sherrill
75d0b0b83a Corrected macros for assembly language program sections. 1998-06-03 18:49:38 +00:00
Joel Sherrill
5184958afe Update from Pedro Romano <pmcnr@camoes.rnl.ist.utl.pt> which replaces C++
versions of these utilities with C implementations.
1998-06-03 18:47:44 +00:00
Joel Sherrill
64be9d4673 Added some missing files per Eric Norum. 1998-06-02 17:38:16 +00:00
Joel Sherrill
2785eab264 Changed calculaction for Clock_Decrementer_value to use the
BSP_configuration table.
1998-05-30 16:01:12 +00:00
Joel Sherrill
95a683b57b Set console to port 2.
Changed #if defined to a #if check for CONSOLE_USE_INTERRUPTS.
1998-05-30 15:58:37 +00:00
Joel Sherrill
a874427306 Made Debug defination a null routine. 1998-05-30 15:55:46 +00:00
Joel Sherrill
b317117a71 clicks_per_usec had to be cut in half (unknown reason).
fixed starting address.
1998-05-30 15:53:19 +00:00
Joel Sherrill
dc104a4039 Updated to current source and removed warnings. 1998-05-30 11:46:21 +00:00
Joel Sherrill
a38b9f89ac Used shared sbrk.c. 1998-05-30 10:42:01 +00:00
Joel Sherrill
825a2bb573 Use shared initialization. 1998-05-30 10:41:21 +00:00
Joel Sherrill
55b517cb4e Rewrote in C to avoid Makefile problems. 1998-05-30 10:32:19 +00:00
Joel Sherrill
c932d85019 New files -- from rtems-LM-980406 which was based on an RTEMS from 12/97.
This was called the dmv170 BSP in that source tree but since the DMV171
is now obsolete, we have transitioned to the DMV177 and have no intention
of checking compatibility with any other models.
1998-05-30 10:09:14 +00:00
Joel Sherrill
2e4b3d03da changed version to 980527 1998-05-27 22:10:10 +00:00
Joel Sherrill
1278ea1b37 Deleted blank lines. 1998-05-27 22:09:47 +00:00
Joel Sherrill
bb6d368d02 Added "speaker on" debug code. 1998-05-27 22:09:39 +00:00
Joel Sherrill
4050a7fb50 Numerous changes including the following:
+ DEBUG_EARLY_START re-added (Eric Valette)
  + segment register initialization (Aleksey/Quality Quorum)
  + heap size use correction
  + more debug printk's
  + increased heap size.

Now works with grub boot on all systems I have access to including
desktops and a laptop.  This is with the i386-rtems tools.
Neither i386-rtemself nor netboot produces a working executable.
1998-05-27 19:34:37 +00:00
Joel Sherrill
c2c9c7e58f Added names for C++ compilers. 1998-05-27 19:26:09 +00:00
Joel Sherrill
339cc25c20 Moved rtemsReboot() to console/inch.c. 1998-05-27 19:24:57 +00:00
Joel Sherrill
a92adc63d6 Deleted HEAP_SIZE constant. 1998-05-27 19:20:55 +00:00
Joel Sherrill
37eacd7158 Removed illegally formatted comments. 1998-05-27 19:20:38 +00:00
Joel Sherrill
8d62ece80e Moved rtemsReboot() to here from exit.c. This appears to have been
necessary because a patch did not apply cleanly.
1998-05-27 19:19:31 +00:00
Joel Sherrill
71d07b9ddf Corrected interrupt stack allocation. 1998-05-27 19:18:02 +00:00
Joel Sherrill
448ba47a4c Fixed spacing 1998-05-27 12:26:07 +00:00
Joel Sherrill
139e6efe3c Fix from Jiri Gaisler <jgais@ws.estec.esa.nl> for a problem in which
external interrupt priorities were not being honored.  Here is some
of his original report:

    using rtems/erc32, I have a problem with interrupt priority when
    interrupts occure simultaneously. Erc32 has an interrupt force
    register where interrupts can be generated. If more than one
    interrupt is generated, the interrupt handlers are scheduled in
    the wrong order, i.e. with the lowest priority first.

    I have attched a program that generates three interrupts, 0x11, 0x12
    and 0x13. Interrupt 0x13 should be handled first, but is actually
    handled last. Below is the output from sis:

        sis> go
        resuming at 0x02000000
        RAM size: 4096 K, ROM size: 2048 K
        Watchdog disabled
        Waitstates = RAM read: 0, RAM write: 0, ROM read: 0, ROM write: 0
        Power-down mode enabled
        infinite UART baudrate
        External interrupt received with vector 0x11
        External interrupt received with vector 0x12
        External interrupt received with vector 0x13

    I have verified that sis generates the interrupts in the correct
    order, i.e. 0x13 first, then 0x12 and then 0x11. So the problem
    seems to be in the rtems interrupt handler. Do you use the PIL field
    in the %psr register to mask lower priority interrupts or are all
    external interrupts considered to have the same priority ..?

Here is a description of the fix:

  it turned out that lower priority interrupts were not at all masked
  off during interrupt handling. I made the following fix to cpu_asm.s:
       ... fix is in the code ...
  There might be a simpler way of doing this, but this works...
1998-05-27 12:21:32 +00:00
Joel Sherrill
119bced0fd Added tcdrain(), cfgetospeed(0, cfsetospeed(), cfgetispeed(), and
cfsetispeed().
1998-05-22 14:51:11 +00:00
Joel Sherrill
e2476ed4d1 Added tcdrain(), cfgetospeed(), cfsetospeed(), cfgetispeed(), and cfsetispeed(). 1998-05-22 14:49:49 +00:00
Joel Sherrill
06e326b67f UNIX port now builds and runs cleanly with both C++ support enabled
and disabled.
1998-05-22 12:28:35 +00:00
Joel Sherrill
c19a29b458 Added call to console_reserve_resources back in. 1998-05-22 12:27:51 +00:00
Joel Sherrill
9d09d13808 Added main() which did not require C++ support. A different main
is used based on whether C++ is enabled or disabled.
1998-05-22 11:03:03 +00:00