summaryrefslogtreecommitdiffstats
path: root/c/src/exec/score (unfollow)
Commit message (Collapse)AuthorFilesLines
1999-02-18Readded.Joel Sherrill1-0/+14
1999-02-18Should have been removed earlier.Joel Sherrill43-5878/+0
1999-02-18Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>:Joel Sherrill12-69/+60
This patch removes generation of targopts.h from leaf.cfg and generates it in location at score/include/rtems/score instead. To achieve this: * all rules in other Makefile.ins which have accessed targopts.h have been removed. * c/Makefile.in has been modified to generate the directories before doing anything else. I.e. to ensure the directories exist before any preinstall rule fires (This part is a bit kludgy, but it seems to work. Please check if the interaction with libhwapi still works).
1999-02-18Should have been removed from cvs early.Joel Sherrill31-5253/+0
1999-02-18Patch from Emmanuel Raguet <raguet@crf.canon.fr>:Joel Sherrill1-1/+9
You will find enclosed a patch which contains, for Intel PC386 target : - an Ethernet driver for DEC21140 device based boards. - a simple cache management with paging mechanism.
1999-02-18MPC860 support submitted by Jay Monkman <jmonkman@frasca.com>.Joel Sherrill4-2/+256
1999-02-17Jay Monkman <jmonkman@frasca.com> submitted the eth_comm BSP for a PPC860Joel Sherrill1-0/+1300
based board.
1999-02-05Added caching enable routines.Joel Sherrill1-1/+1
1999-02-02New file.Joel Sherrill1-0/+61
1999-01-20Patch from Eric Norum <eric@skatter.usask.ca> to make m68360.h usableJoel Sherrill1-357/+366
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-19Removed duplicate lines in file.Joel Sherrill1-14/+0
1999-01-19Patch from Jiri Gaisler <jgais@ce.chalmers.se>:Joel Sherrill2-2/+4
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-13Bug report from Jiri Gaisler <jgais@ws.estec.esa.nl>:Joel Sherrill1-1/+1
> > 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 ...
1998-12-16Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de> heading towardJoel Sherrill9-12/+106
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-15Switched to use of ASM compilation conditional.Joel Sherrill2-4/+4
1998-12-15Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>:Joel Sherrill1-1/+1
Some Makefile.ins depend on gcc by hard-coded gcc-specific compiler flags: -g added to CFLAGS /LDFLAGS in > find . -name Makefile.in -exec grep -l ' \-g' {} \; ./c/src/lib/libbsp/i386/i386ex/startup/Makefile.in ./c/src/lib/libbsp/i386/pc386/tools/Makefile.in -Wall added CFLAGS in > find . -name Makefile.in -exec grep -l ' \-Wall' {} \; ./c/src/exec/score/tools/sh/Makefile.in ./c/src/lib/libbsp/i386/pc386/tools/Makefile.in Both -g and -Wall should not be used in any Makefile.in (Yes, I know, tools/sh/Makefile.in was written by me :-). I'd like to propose to remove these flags from the files mentioned above.
1998-12-15Changed reference from no_cpu to mips64orion.Joel Sherrill2-2/+2
1998-12-14Switch from .s to .S on includeJoel Sherrill1-2/+2
1998-12-14Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de> to rename allJoel Sherrill24-27/+27
.s files to .S in conformance with GNU conventions. This is a minor step along the way to supporting automake.
1998-12-07Patch from Ian Lance Taylor <ian@airs.com>:Joel Sherrill1-1/+1
This patch avoids a warning from the development version of gas.
1998-12-03Patch from Emmanuel Raguet <raguet@crf.canon.fr> to add remote debug serverJoel Sherrill2-19/+22
and RPC support to RTEMS. Thanks. :) Email follows: Hello, For Xmas, here is the Remote Debugger on RTEMS ! Here are 2 patches for the Remote Debugger on RTEMS for pc386 from Linux host : - one for RTEMS it self, - one for GDB-4.17. 1/ RTEMS patch -------------- This patch adds 2 libraries : - a simplified SUN RPC library - the Remote Debugger library The configuration command is the following : ../rtems4/configure --target=i386-rtemself --enable-rtemsbsp=pc386 --enable-rdbg The SUN RPC library is built only if networking is set. The RDBG library is built if networking and enable-rdbg are set. The function used to initialize the debugger is : rtems_rdbg_initialize (); A special function has been created to force a task to be in a "debug" state : enterRdbg(). The use of this function is not mandatory. 2/ GDB-4.17 patch ----------------- This patch create a new RTEMS target for GDB-4.17. The configuration command is the following : ./configure --enable-shared --target=i386RTEMS To connect to a target, use : target rtems [your_site_address] Then, attach the target using : attach 1 And... Debug ;) You can obtain the original GDB-4.17 on ftp://ftp.debian.org/debian/dists/stable/main/source/devel/gdb_4.17.orig.tar.gz This has been tested from a Debian 2.0.1 linux host.
1998-12-03Corrected spacing.Joel Sherrill1-1/+1
1998-11-23Added --disable-multiprocessing flag and modified a lot of files to makeJoel Sherrill19-25/+121
it work.
1998-11-19Renamed exception constants per requests from Erik IvanenkoJoel Sherrill1-19/+19
<erik.ivanenko@utoronto.ca> and Eric Valette <valette@crf.canon.fr>.
1998-11-19Patch from Eric Norum <eric@skatter.usask.ca>:Joel Sherrill3-0/+22
1) Socket timeout field changed from `short' to `long'. This makes longer timeouts possible. With a 1 kHz system clock the old system allowed timeouts only up to a little over 30 seconds! This change is a slightly cleaned-up version of the patch proposed by Ian Lance Taylor. 2) Major changes to BOOTP/DHCP reply handling. Now supports much of RFC2132. These changes were done at the request of, and with the assistance of, Erik Ivanenko. If you're making changes, you might want to change the network supplement Essentially just do a global search and replace of BOOTP with BOOTP/DHCP.
1998-10-28Patch from Ian Lance Taylor <ian@airs.com>.Joel Sherrill1-11/+19
I just happened across the sync_io support in c/src/exec/score/cpu/unix/cpu.c (is this documented anywhere?). That looked more useful than the signal driven I/O I was using before, so I tried it. I ran across a few bugs in the way it uses select. Select changes its fd_set arguments, so you can't use global variables for them. You have to copy them into local variables first. If select returns -1 with errno set to EINTR, then it has not changed any of the fd_sets. You can't start looking at them. When clearing a descriptor, the code has the usual select off by one error when setting sync_io_nfds. I don't see how this code could ever have worked correctly. I have appended a patch for the problems I found.
1998-10-14Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>:Joel Sherrill1-6/+9
1. Rtems contains some perl scripts that use hard-coded paths to /usr/bin/perl or /usr/local/bin/perl I have already fixed these problems by adding some checks to configure.in. While doing this, I also cleaned up some more autoconf related problems for generating shell scripts. This patch might seem a bit scary to you, but I am quite confident it won't break something (I've been testing it for almost a week now, however it might introduce typos for a limited number configurations I don't have access to - But it shouldn't be a problem for you to test them :-). I expect to get this finished tonight, hence you will very likely have the patch when you get up tomorrow. Changes: * Check for PERL and disable all PERL scripts if perl wasn't found. * Generate all KSHELL-scripts with autoconf instead of make-script * Automatic dependency handling for autoconf generated KSHELL or PERL scripts (make/rtems.cfg) Notes: * this patch contains new files and deletes some other files. * The patch is relative to rtems-4.0.0-beta4 with my previous rtems-rc-981014-1.diff patch applied. Testing: I tested it with sh-rtems and posix under linux. Now all targets which are touched by this patch and which are not used while building for sh-rtems and posix still need to be tested. AFAIS, only the sparc/erc32 BSP should be affected by this criterion. And if you like to, you should also consider testing it on a Cygwin32 and a Solaris host for one arbitrary BSP.
1998-10-13Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de> to correct minorJoel Sherrill2-4/+4
cosmetic things.
1998-10-06Corrected assembly language to use constants instead of addresses.Joel Sherrill1-2/+2
Thanks to Rod Barman for this one.
1998-10-06Added missing field (idle_task_stack_size) to CPU Table.Joel Sherrill1-0/+1
1998-10-01Patch from Thomas Doerfler <td@imd.m.isar.de> to improve 403 support.Joel Sherrill4-1/+42
- c/src/exec/score/cpu/powerpc/ppc.h: some small changes (added ppc403 characteristics like a exception vector prefix register, some special register definitions). I am quite sure, they are compatible with the existing sources, although I did not check - c/src/exec/score/cpu/powerpc/cpu.c: There is one severe limitation in the exception entries: Due to the current code arrangement, the "branch absolute" to the ISR handler may only jump to the first 128MByte or the last 128MByte of the 4GByte address range. When the ppc403 is running out of ROM, the ROM functions are located in the last 128MByte (0xFFF00000 and up). These addresses were not handled correctly (sign reduced) in "install_raw_handler". The change I added should work on existing ppc BSPs aswell...
1998-09-30Patch from Eric Norum <eric@skatter.USask.Ca>:Joel Sherrill2-18/+1
I found that my 68040/68360 test programs would not run even after I fixed the `wrong BSP' problem. It seems that there's a bug in the interrupt handling code for processors with hardware interrupt stacks (e.g. 68040). The wrong status register was getting pushed on the stack for the `return from exception' to call _ISR__Dispatch. This ended up making the context switch code run on the interrupt stack, so interrupt-driven context switches would always fail. I guess that no one has tried running any of the RTEMS-4.0 snapshots on a 68040 machine! Anyhow, here are the patches for 1) gen68360.cfg --- to fix the `wrong-BSP' problem. 2) m68k/cpu_asm.s --- to fix the hardware interrupt stack problem. With these patches in place, the network demo programs run on my 68040/68360 system. The paranoia program runs with no failures, defects nor flaws.
1998-09-23Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>.Joel Sherrill2-2/+2
1998-09-23IDLE task stack size now specified as a field in the CPU Table for allJoel Sherrill13-18/+17
ports.
1998-08-31Patch from Eric Valette <valette@crf.canon.fr>:Joel Sherrill1-6/+17
Eric> NB : there is still a bug on PC386 serial line : exit does not Eric> flush the remaining output queue. As this is not a bug in the Eric> driver itself but somewhere in PC386 initialization/termios Eric> relationship it will be part of another patch. Eric> NB2 : As Emmanuel excerced the exception hanlder code, while Eric> porting the SMC driver to the new BSD stack, we found a bug Eric> in the exception handler : it shall not delete the current Eric> thread in case we are running at interrupt level. This will Eric> be part of another patch... So here is the patch. This patch fixes the two problems mentionned above + it use vpath mechanism intead of copying the irq related files in the right directory. This avoid to compile them each time and is more homogenous with other Makefiles.
1998-08-24Added __RTEMS_INSIDE__ macro to insure that ".inl" files are ALWAYS includedJoel Sherrill1-1/+1
when building the executive source.
1998-08-21Patch from Eric Valette <valette@crf.canon.fr>:Joel Sherrill3-0/+216
Here is a patch that enables to catch exception and get message before crashing RTEMS :) It should be generic to any Intel port although enabled only for pc386 BSP... [Joel] I fixed the bug I introduced in irq_asm.s...
1998-08-21Spacing changesJoel Sherrill2-16/+14
1998-08-20Patches from Eric NorumJoel Sherrill3-9/+25
1998-08-20FreeBSD stack compiles for the first time (except libc/strsep.c)Joel Sherrill1-1/+1
1998-08-19Patch from Eric Valette <valette@crf.canon.fr>:Joel Sherrill2-5/+37
- Use the "hlt" instruction for the Idle thread, - Optimise interrupt PATH leadding to thread wakeup, - Preparation for Intel exception management that should come before the end of the week...
1998-08-19Fixed obsolete reference to BSDINSTALL.Joel Sherrill1-1/+1
1998-08-19Patches from Ralf Corsepius <corsepiu@faw.uni-ulm.de> and myself toJoel Sherrill2-4/+4
make solaris target buildable. > 1. The ipc check fails since solaris does not define union semun. > The unix port code actually defines this type itself on solaris. Doing > the same thing lets it get configured. Then... > 2. It looks like BSDINSTALL is not defined properly. BSDINSTALL is defined in make/host.cfg.in as BSDINSTALL=@INSTALL@ @INSTALL@ is generated by autoconf's standard macro AC_PROG_INSTALL, which is widely used in almost any autoconf/automake configured package. In case there is really something wrong with it, then it must be considered a bug in autoconf. I can see a doubious fragment in AC_PROG_INSTALL, which is used when no appropriate bsd-install is found. Finally Ralf saw a problem with the find on solaris which I also saw and fixed.
1998-08-19Added 68060 definition from Chris Johns.Joel Sherrill1-0/+17
1998-08-13Fixed preinstall stanza so the prebuild works.Joel Sherrill1-3/+3
1998-08-13Patch from Chris Johns <ccj@acm.org>. Comments follow:Joel Sherrill1-0/+19
Here is a small patch which allows the m68060 to be used. I have not tested the FP switching stuff which we know is broken. This is taken against the libchip snapshot but should merge without problems. If you have any problems please let me know. There are other smaller issues such as superscalar enable and cache control which I have not addressed yet. They are different to all other m68k processors. These can wait IMO.
1998-08-05Patch from Eric Valette <valette@crf.canon.fr> which brings the i386ex BSPJoel Sherrill2-499/+0
inline with the new IRQ structure.
1998-08-05Automatic CPU type detection code from Eric Valette <valette@crf.canon.fr>.Joel Sherrill2-2/+5
Enabled on the pc386.
1998-08-05Redid Makefiles to properly do a preinstall. There was remnants of theJoel Sherrill11-62/+20
old way of setting th cpu family and model string names.
1998-08-01Merged patch from David Fiddes <D.J.Fiddes@hw.ac.uk> to add ColdFireJoel Sherrill2-1/+15
specific register macros and correct code in rtems.s.