Commit Graph

2268 Commits

Author SHA1 Message Date
Joel Sherrill
1d1b1507a6 Split out polled io, debug puts, and console reserve resources to
reduce dependencies and shrink minimum executable size.
1999-05-27 16:08:40 +00:00
Joel Sherrill
2a333f9a0d Disabled running size_rtems until all file splitting is finished. 1999-05-27 15:46:34 +00:00
Joel Sherrill
73989010b4 Regenerated. 1999-05-27 15:46:00 +00:00
Joel Sherrill
326378bfd4 Corrected so rtems.o is built and installed on all targets. 1999-05-27 15:44:20 +00:00
Joel Sherrill
82d11f8781 Corrected macro names. 1999-05-27 15:43:32 +00:00
Joel Sherrill
da47e4a930 Initiated updating this to reflect split up. 1999-05-26 14:00:48 +00:00
Joel Sherrill
0aeda88267 Renamed to rtemstimer.c to avoid conflict with timer drivers in EVERY
BSP as we transition to more .o's and less .rel's.
1999-05-20 16:16:44 +00:00
Joel Sherrill
8bbaf3bd49 Removed all post 4.0 changes. 1999-05-20 13:32:54 +00:00
Joel Sherrill
5a064dca14 Patch from Daniel Kelley <dank@icube.com>:
I found a small buglet in the mips64orion _CPU_ISR_Set_level; the
    original was wiping out the level argument, and then comparing the
    current interrupt level with some random value of v0. See patch below.
1999-05-18 17:41:16 +00:00
Joel Sherrill
fbec4a149f Regenerated. 1999-05-18 17:33:52 +00:00
Joel Sherrill
0090c1a119 Spacing correction. 1999-05-18 17:31:27 +00:00
Joel Sherrill
0995b6ffc1 Reworked to avoid pulling in the jump point entry in EVERY executable. 1999-05-17 23:48:34 +00:00
Joel Sherrill
9180f63e97 Fixed some typos. 1999-05-17 23:26:50 +00:00
Joel Sherrill
c9973bbc54 Split Interrupt Manager into one routine per file. 1999-05-17 23:22:45 +00:00
Joel Sherrill
0123e3be53 Split Signal Manager into one routine per file. 1999-05-17 23:20:52 +00:00
Joel Sherrill
1dc030fe05 Dual-Ported Memory Manager split into one routine per file. 1999-05-17 23:18:20 +00:00
Joel Sherrill
842db5f391 Split Partition Manager into one routine per file. 1999-05-17 23:15:20 +00:00
Joel Sherrill
be47df9381 Split Timer Manager into one routine per file. 1999-05-17 23:10:36 +00:00
Joel Sherrill
cc2bc3025c Split Event Manager into one routine per file. 1999-05-17 23:06:03 +00:00
Joel Sherrill
5f9b3db545 Split Rate Monotonic Manager into one routine per file. 1999-05-17 23:03:07 +00:00
Joel Sherrill
c06d8f6467 Split the Semaphore Manager into one routine per file. 1999-05-17 22:58:30 +00:00
Joel Sherrill
a2d0f39a2c Moved some MP routines to semmp.c. 1999-05-17 22:56:13 +00:00
Joel Sherrill
3270ca68da Forgot to actually remove the routines. :) 1999-05-17 22:53:34 +00:00
Joel Sherrill
1e1b3e00d1 Split Message Manager into one routine per file. 1999-05-17 22:52:59 +00:00
Joel Sherrill
ef22ab2584 Moved an MP routine from msg.c to here. 1999-05-17 22:46:01 +00:00
Joel Sherrill
86cb89f05f Cleaned up some multiprocessing issues. 1999-05-17 22:45:47 +00:00
Joel Sherrill
bd83f4738f Split Clock Manager into one routine per file. 1999-05-17 22:42:47 +00:00
Joel Sherrill
5aa64518b5 Split Region Manager into one routine per file. 1999-05-17 22:39:20 +00:00
Joel Sherrill
1178b8cabb Splitting the Thread Handler forced the inclusion of more prototypes. 1999-05-17 22:19:29 +00:00
Joel Sherrill
2f831ac1fe Moved _Entry_Table to its own file to avoid having every RTEMS directive
pulled in.
1999-05-17 22:16:52 +00:00
Joel Sherrill
d785158293 Added simple test to find minimum code size of executive with this BSP
and RTEMS configuration.
1999-05-17 22:15:56 +00:00
Joel Sherrill
c4d69e21a7 Split Task Manager into multiple files. Eventually this effort will
reduce the size of executables.
1999-05-17 21:02:16 +00:00
Joel Sherrill
05df0a846f Thread Handler split into multiple files. Eventually, as RTEMS is
split into one function per file, this will decrease the size of executables.
1999-05-17 20:41:13 +00:00
Joel Sherrill
a238cc97d0 Patch from D. V. Henkel-Wallace <gumby@zembu.com> to remove compiler
warnings.
1999-05-17 15:45:15 +00:00
Joel Sherrill
577c408009 Patch from D. V. Henkel-Wallace <gumby@zembu.com>:
Here's a tiny patch that shreds memory returned to the pool (such as by
  free() and delete). This may help people find some nasty
  bugs, so here it is.
1999-05-17 15:28:52 +00:00
Joel Sherrill
fcf17a4f69 Added testing for C++ exceptions from Rosimildo DaSilva
<rdasilva@connecttel.com>.
1999-05-14 16:25:15 +00:00
Joel Sherrill
44dd8a6116 Added 3COM 3C509 driver from Rosimildo DaSilva <rdasilva@connecttel.com>. 1999-05-14 16:23:42 +00:00
Joel Sherrill
c5881fc155 Enabled compilation of rtems_servers at request of Jake Janovetz
<janovetz@tempest.ece.uiuc.edu>.
1999-05-14 15:31:07 +00:00
Joel Sherrill
a0b94685cd Removed check for initialized ID at request of Rosimildo DaSilva
<rdasilva@connecttel.com> who encountered random failures in his
port of omniORB2.
1999-05-14 14:43:53 +00:00
Joel Sherrill
4c5080ed09 Fix based on bug report from Jay Kulpinski <jskulpin@eng01.gdds.com>
that the per task reentrancy structure was not being processed properly
during exit().

joel@oarcorp.com wrote:
>
>
> This is always an ugly place to poke around. :(
>
> The code in newlib/libc/stdlib/exit.c walks the atexit chain for the
> reentrancy structure for JUST the current task.  The code in libc_wrapup()
> does it for both the current task and the global reentrancy structure
> (which tends to be where driver atexit()'s were registered.
>
> So I think the _wrapup_reent(0) in libc_wrapup() should be commented out.
>
> If you concur, then I will make the change and improve the comment on this
> line of code to explain things:
>
>     libc_wrapup(); /* Why? XXX */
>
> --joel

That does the job.  cdtest.exe works correctly now.
1999-05-11 16:30:51 +00:00
Joel Sherrill
ddd22e5d0d Patch from Erik Ivanenko <erik.ivanenko@utoronto.ca> to correct 32 bit
jmp relative offset from .reset section.
1999-05-11 15:15:03 +00:00
Joel Sherrill
5a909149ca Made all calls to _Thread_Yield_processor consistent in how they are
wrapped by calls to _Thread_Enable_dispatch and _Thread_Disable_dispatch.
1999-05-07 17:09:20 +00:00
Joel Sherrill
16775a5535 Patch from Jiri Gaisler <jgais@ws.estec.esa.nl> to allow stacksize
of POSIX Init thread to be user configured.
1999-05-07 16:36:29 +00:00
Joel Sherrill
0700136005 Added rules to handle alternate suffixes for C++ files. 1999-05-07 16:31:08 +00:00
Joel Sherrill
acb644a66f Error reporting fixed by Jennifer. 1999-05-07 16:30:44 +00:00
Joel Sherrill
c34aaae7e6 Bug fix from Gunter Magin <magin@@skil.camelot.de>:
in libcpu/powerpc/mpc860/clock/clock.c:InstallClock() the reload value for
    the PIT is defined as:

      pit_value = (BSP_Configuration.microseconds_per_tick *
                 Cpu_table.clicks_per_usec) - 1 ;

    What exactly is a tick, and what is a click?

    My confusion stems from the fact, that Jay defines clicks_per_usec to 1
    which is correct for his configuration, where a 4MHz clock is predivided
    by 4 and then fed to the PIT. So I assume a "click" is just the period of
    the PIT input frequency.

    However, our HW config seems to have 32.768 kHz crystal input for PIT.
    Mandatory division by 4 means 8.196kHz (122usec) at the PIT.

    I think, the above assignment should read:

      pit_value = (BSP_Configuration.microseconds_per_tick /
                 Cpu_table.clicks_per_usec) - 1;

    where I can define Cpu_table.clicks_per_usec in bspstart.c to 122
    (clicks_per_usec). That would lead to a PIT reload value of
    10000/122 - 1 = 81 to reach a 10ms "tick" period.
1999-05-07 16:29:54 +00:00
Joel Sherrill
b06279dfc0 Bug fix from Gunter Magin <magin@skil.camelot.de>:
in libcpu/powerpc/mpc860/clock/clock.c:InstallClock() the reload value for
    the PIT is defined as:

      pit_value = (BSP_Configuration.microseconds_per_tick *
                 Cpu_table.clicks_per_usec) - 1 ;

    What exactly is a tick, and what is a click?

    My confusion stems from the fact, that Jay defines clicks_per_usec to 1
    which is correct for his configuration, where a 4MHz clock is predivided
    by 4 and then fed to the PIT. So I assume a "click" is just the period of
    the PIT input frequency.

    However, our HW config seems to have 32.768 kHz crystal input for PIT.
    Mandatory division by 4 means 8.196kHz (122usec) at the PIT.

    I think, the above assignment should read:

      pit_value = (BSP_Configuration.microseconds_per_tick /
                 Cpu_table.clicks_per_usec) - 1;

    where I can define Cpu_table.clicks_per_usec in bspstart.c to 122
    (clicks_per_usec). That would lead to a PIT reload value of
    10000/122 - 1 = 81 to reach a 10ms "tick" period.
1999-05-07 16:28:43 +00:00
Joel Sherrill
f779efcba8 Added paragraph for Tony Ambardar (tonya@ece.ubc.ca) submitting
a BSP for the TS-1325 embedded PC from Technologic Systems
(http://www.t-systems.com) and patches to enable software
floating-point emulation for x86 targets.
1999-04-29 19:08:04 +00:00
Joel Sherrill
8846bbd0ec Patch from Emmanuel Raguet <raguet@crf.canon.fr>:
I have made test with the Dec21140 driver and it appears that all
    works fine even if the cache is enabled for the memory space in
    which the incoming and outcoming Ethernet frames are stored.

    I have had #ifdef to "comment" the code. If you want to disable
    cache, you only have to #define the name. It could be mandatory
    for some BSPs.
1999-04-28 13:59:11 +00:00
Joel Sherrill
cfcb5a299a Patch from Eric Norum <eric@cls.usask.ca> to corrent a miscount in length
that results in an error in parsing network unit names/numbers.
1999-04-27 17:31:39 +00:00