summaryrefslogtreecommitdiffstats
path: root/c/src/lib (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Added .eh_frame, C++ constructor, and C++ destructor sections.Joel Sherrill1998-02-1717-1/+251
|
* Patch from Eric Norum <eric@skatter.usask.ca>:Joel Sherrill1998-02-172-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I've gone through and cleaned up the TFTP driver so that it fits into the libio system. Here's the comment from the new driver: /* * Usage: * * To open `/bootfiles/image' on `hostname' for reading: * fd = open ("/TFTP/hostname/bootfiles/image", O_RDONLY); * * The `hostname' can be a symbolic name or four * dot-separated decimal values. * * To open a file on the host which supplied the BOOTP * information just leave the `hostname' part empty: * fd = open ("/TFTP//bootfiles/image", O_RDONLY); * */ You can `fopen' TFTP files the same way: fp = fopen (fullname, "r"); nread = fread (cbuf, sizeof cbuf[0], sizeof cbuf, fp); The diff's are included below. I've also modified the TFTP demo program and the bootstrap PROM example. They should be on my ftp site `soon'. The one thing I don't like is the way I had to do an end-run on the libio routines to get errno passed back from my driver to the application (since there are some errno codes that don't map to RTEMS status codes). My approach was to set errno in the driver and have the driver routine return an RTEMS status code that I `know' isn't in the errno_assoc[] in libio.c. Perhaps there should be an RTEMS_TRANPARENT_ERRNO status code (or something similar) which driver routines could return to indicate that the driver routine has set errno and that the libio routines shouldn't attempt to map the returned status code to errno. Actually, I think the entire I/O system needs looking at -- as you've already mentioned. The hacks I've dropped in to syscalls.c to make fstat work, for example, are *not* shining examples of good code......
* Incorporated Ralf Corsepius' idea for new -q flags to properly supportJoel Sherrill1998-02-1120-40/+142
| | | | "gmake debug".
* Don't install tools using variant name.Joel Sherrill1998-02-111-1/+1
|
* Problem report from Brian Cuthie regarding incorrect calculationJoel Sherrill1998-02-061-1/+2
| | | | | | | | | of BSS size. The conversion from a count of u8's to a count of u32's was shifting in the wrong direction. This error had been in the start code a long time. It had not caused problems because the BSS is typically much smaller than the C heap which typically follows it in memory. Plus since this code was executed at start time, all that really happened was an extra zeroing of some memory.
* Added call to libc_wrapup() in _exit. This fixes a problem whereJoel Sherrill1998-02-031-0/+1
| | | | | the atexit routines on the global reentrancy structure were not invoked. But it does not seem like a 100% correct solution.
* Corrected spelling error so interrupt driven console would work.Joel Sherrill1998-02-031-2/+2
|
* Big patch form Ralf Corsepius described in this email:Joel Sherrill1998-01-30245-980/+490
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Here is the result of my nightly work to get RTEMS_ROOT=$srcdir working with different shells and relative/absolute paths. What I did is relatively simple in principle: Instead of setting RTEMS_ROOT in configure.in and then let configure substitute @RTEMS_ROOT@ inside the Makefiles, I now let each Makefile set RTEMS_ROOT from each Makefile's @top_srcdir@ value. The difference is subtile, but with enormous side effects: - If RTEMS_ROOT is set in configure, then the same single value will be propagated to all Makefiles. This breaks using relative paths, as the relative path to the root of the source tree is used inside of all subdirectory Makefiles. - Now each Makefile.in sets RTEMS_ROOT = @top_srcdir@. top_srcdir is computed individually by configure for each single Makefile.in, hereby receiving the correct value, no matter if relative or absolute paths are used. To get this working, I needed to remove setting RTEMS_ROOT from target.cfg.in, because this overrides the value of RTEMS_ROOT from each individual Makefile. Furthermore, I removed RTEMS_CUSTOM from the Makefiles and replaced all "include $(RTEMS_CUSTOM)" directives with"include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP)". Perhaps you don't like this, but I think, to have one variable less is clearer and easier to understand than having several variables refering to the next one. I enclose a small patch to this mail, which - fixes the config.h problem (to finally clearify misunderstands) - removes assignment/subsitution of RTEMS_ROOT from configure.in - contains a workaround for the application Makefile's RTEMS_ROOT problem (reported by Eric) - removes some unused lines from the toplevel Makefile.in - removes assignment of RTEMS_ROOT from make/target.cfg.in
* Corrected Linux port for glibc2Joel Sherrill1998-01-304-3/+6
|
* Fixed missing carriage return at the bottom of the file reportedJoel Sherrill1998-01-271-1/+0
| | | | by Ralf Corsepius
* Solaris port updates from Chris JohnsJoel Sherrill1998-01-2310-21/+26
|
* Added information about multilib problems.Joel Sherrill1998-01-231-0/+8
|
* Added some GRUB information from Phil Wilshire.Joel Sherrill1998-01-221-0/+12
|
* Removed CONFIG_DIR and PROJECT_HOME directories.Joel Sherrill1998-01-20244-271/+256
|
* Added _times_r.Joel Sherrill1998-01-191-0/+7
|
* more info from EricJoel Sherrill1998-01-191-0/+6
|
* Patch from Eric Norum:Joel Sherrill1998-01-193-7/+25
| | | | | With this in place, it is possible to fdopen a TCP stream socket and getc/fprintf/etc. on the STDIO stream!
* Ralf Corsepius reported a number of missing CVS Id's:Joel Sherrill1998-01-1686-115/+271
| | | | | | | | | | > RTEMS is under CVS control and has been since rtems 3.1.16 which was > around May 1995. So I just to add the $Id$. If you notice other files > with missing $Id$'s let me know. I try to keep w\up with it. Now that you have asked -- I'll attach a list of files lacking an RCS-Id to this mail. This list has been generated by a little sh-script I'll also enclose.
* Jennifer found some uninitialized variables:Joel Sherrill1998-01-161-1/+7
| | | | | | + major and minor number elements in rtems_termios_open. + arg->ioctl_return in rtems_termios_ioctl routine.
* Updates from Eric Norum. Changed CPU CFLAG and went to a common nameJoel Sherrill1998-01-061-150/+112
| | | | for the network driver attach entry point.
* Changed initial settings of first time.Joel Sherrill1998-01-061-3/+5
|
* Fixes from Eric Norum. C++ support added in previous version was broken:Joel Sherrill1997-12-223-291/+272
| | | | | | | | | | | | | | | | | | 1) In my haste to add C++ constructor/destructors to the 68360 linkcmds scripts I managed to break all existing 68360 programs. Linker scripts which actually produce a working executable are contained below. The problem was that the constructor/destructors weren't included before the etext symbol. On top of that Eric and I appear to have problems with attachments: 2) In deciphering the above problem I think I stumbled across the reason you've had with patches mailed from me. I noticed that the linkcmds (and linkcmds.bootp) scripts in the latest distribution have a control-M (carriage return) at the end of each line. Could you check the files below before installing them in the distribution and see that there aren't returns in the files? Maybe if I send everything as a tar attatchment things will work better.
* Corrected prototypes for all termios console write driver entries toJoel Sherrill1997-12-226-8/+10
| | | | properly reflect the const on the buffer pointer being passed in.
* Moved -qnolinkcmds option so arguments passed on the command line areJoel Sherrill1997-12-2019-38/+38
| | | | | | | | | | | | | | | | | | | | | interpreted at the right point per Eric Norum's discovery: The problem with the my previous `fix' for adding linker commands was with the ordering of the options to the linker. For example, to make a larger heap size, the application Makefile would CFLAGS_LD = -Wl,--defsym -Wl,HeapSize=0x40000 The command passed to the linker would be : m68k-rtems-ld .... -T xxx/linkcmds .... --defsym HeapSize=0x40000 ..... This doesn't work because the script in linkcmds inserts a default value for HeapSize if HeapSize is not defined by the time the linker looks at the linkcmds script. The solution seems to be to move the -T linkcmds%s in the bsp_specs file out of the link specfication and into the lib specification -- a little unorthodox, perhaps, but it seems to work!
* Update from Eric Norum to include C++ support.Joel Sherrill1997-12-203-239/+281
|
* Modified bsp_specs per Eric Norum's suggestion to handle -qnolinkcmdsJoel Sherrill1997-12-1919-19/+19
| | | | switch which lets the user specify a different linker script.
* Pass in PROJECT_HOME so rtems-glom can run if the make is invokedJoel Sherrill1997-12-161-2/+4
| | | | just in this directory.
* Modified a lot of files to take a first cut at supporting building fromJoel Sherrill1997-12-10245-249/+984
| | | | | any directory in the build tree. The only variable which must be set before the command "gmake" is invoked is RTEMS_BSP (e.g. RTEMS_BSP=erc32).
* Added missing dependency for libmisc.a based on a bug report by Phil Wilshire.Joel Sherrill1997-12-071-0/+1
|
* Fixed indexing bug reported by Phil Wilshire.Joel Sherrill1997-12-071-1/+1
|
* Changed the uuencode line to work better with VPATH setups.Joel Sherrill1997-12-061-2/+2
|
* Inclusion of PC386 BSP submitted by Pedro Miguel Da Cruz Neto RomanoJoel Sherrill1997-12-0131-0/+4894
| | | | | <pmcnr@camoes.rnl.ist.utl.pt> and Jose Rufino <ruf@asterix.ist.utl.pt> of NavIST (http://pandora.ist.utl.pt/).
* Corrected call to rtems_termios_open.Joel Sherrill1997-11-301-1/+2
|
* Removed warnings.Joel Sherrill1997-11-292-1/+6
|
* Removed warning under linux port.Joel Sherrill1997-11-181-0/+5
|
* Removed warnings.Joel Sherrill1997-11-182-1/+6
|
* Added argument as required by new version of termios_open.Joel Sherrill1997-11-181-2/+4
|
* Fixed assignment to dereference ch.Joel Sherrill1997-11-181-1/+1
|
* Changed from DOS style CR/LF to Unix style.Joel Sherrill1997-11-181-534/+534
|
* interrupt driven change from Eric NorumJoel Sherrill1997-11-154-95/+236
|
* Fixed prototypeJoel Sherrill1997-11-102-2/+2
|
* Set return code to avoid spurious errors.Joel Sherrill1997-11-101-0/+1
|
* added katsutoshi ShibuyaJoel Sherrill1997-10-241-1/+8
|
* Changed prototype of read routine.Joel Sherrill1997-10-233-15/+8
|
* Switched to new style for read support routine.Joel Sherrill1997-10-231-10/+6
|
* Added TOD driver from Katsutoshi Shibuya.Joel Sherrill1997-10-236-3/+190
|
* Removed GEN68360_INIT.Joel Sherrill1997-10-231-8/+0
|
* Update from Eric Norum.Joel Sherrill1997-10-231-161/+153
|
* Updated console driver to use new read routine conventions.Joel Sherrill1997-10-231-6/+3
|
* Added console_reserve_resources.Joel Sherrill1997-10-232-6/+15
|