Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | A patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>: | Joel Sherrill | 1998-08-21 | 5 | -75/+295 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | Here is another patch to hopefully enhance rtems' configuration. Motivation: Try to support other c-compilers besides gcc (I tried to build rtems under Solaris using sun's WSPro c-compiler). Here is a couple of small patches concerning the host compiler configuration, which fix/work-around the worst problems when using sun's WSPro c-compiler. Changes: * Replaced make/compilers/gcc.cfg with make/compilers/gcc.cfg.in, ie. gcc.cfg is generated by configure now. * Removed a line containing a hard-coded "gcc" from gcc.cfg (BUG-fix). * Add -g to host compiler flags only if configure reported -g to work * Add -Wall to host compiler flags only if configure reported that the host compiler is gcc (WSPro's cc chokes on -Wall). * Some modifications to make/Makefile.in * Adapted make/custom/default.cfg to the new location of gcc.cfg BTW, gcc.cfg/gcc.cfg.in seems to be full of unused code (DEBUG-VARIANTS etc.) which deserves to be cleaned up, IMO. IMO, a similar patch should be applied to gcc-target-default.cfg | ||||
* | Modified version number to recut snapshot. | Joel Sherrill | 1998-08-21 | 2 | -2/+2 |
| | |||||
* | Another missing piece. Thanks Eric. | Joel Sherrill | 1998-08-21 | 4 | -0/+12 |
| | |||||
* | changed version to 980821 | Joel Sherrill | 1998-08-21 | 2 | -2/+2 |
| | |||||
* | Added system task attribute to allow one to create a task with "0" priority | Joel Sherrill | 1998-08-21 | 11 | -18/+109 |
| | | | | via the user api. | ||||
* | Patch from Eric Valette <valette@crf.canon.fr>: | Joel Sherrill | 1998-08-21 | 11 | -20/+348 |
| | | | | | | | | | | 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... | ||||
* | Spacing changes | Joel Sherrill | 1998-08-21 | 3 | -17/+14 |
| | |||||
* | Fix from Eric Norum <eric@skatter.usask.ca>: | Joel Sherrill | 1998-08-21 | 3 | -42/+6 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "Thomas Doerfler" <td@imd.m.isar.de> wrote: > > While implementing/testing the console/termios support for > PPC403 in RTEMS-4.0.0-beta3, I am stuck at a certain location in > termios.c: > > During "rtems_termios_initialize", the main control data structure > "*tty" is allocated using malloc(). (Note, that malloc does not > clear the allocated memory and my BSP does not clear memory during > startup). Furtheron, a lot of fields of that structure are > initialized, but the field "rawOutBufState" is not, and therefore > keeps an arbitrary contents. > > When "osend()" is called the first time(with the serial device > driver working in interrupt mode), termios gets stuck and will not > call the device drivers output function. > > My questions now are: > > - anybody already experienced this bug? > - is it a bug at all or did I do anything fundamentally wrong? > - is there already a common bugfix for that? > > I don't like poking around in other people code, as long as I am > not absolutely sure, what I do... Yes, there's a bug there. I thought that Joel had patched this already, but here's a patch to fix this. This patch also addresses a concern that many others have raised regarding enabling and disabling of transmitter interrupts. First, here's the example I've been using of a simple UART-style interrupt-driven driver: =============================================================== void device_write_routine (int minor, char *buf, int count) { UART->control_register &= ~UART_TRANSMITTER_READY; UART->output_register = *buf; UART->control_register |= UART_TRANSMIT_INTERRUPT_ENABLE; } void device_transmit_interrupt_routine (int vector) { UART->control_register &= ~UART_TRANSMIT_INTERRUPT_ENABLE; rtems_termios_dequeue_characters (device_ttyp, 1); } ============================================================== Several people have expressed their concern about the disable/enable of transmitter interrupts for every character. On some machines this disable/enable is an expensive operation. With the attached patch applied you can write the two routines as: ============================================================== void device_write_routine (int minor, char *buf, int count) { code_to_clear_transmitter_ready_status (); if (device_ttyp->rawOutBufState == rob_idle) code_to_enable_transmitter_interrupts (); code_to_send_one_character_to_transmitter (*buf); } void device_transmit_interrupt_routine (int vector) { rtems_termios_dequeue_characters (device_ttyp, 1); if (device_ttyp->rawOutBufState == rob_idle) code_to_disable_transmitter_interrupts (); } =============================================================== | ||||
* | Update from Eric Norum. | Joel Sherrill | 1998-08-21 | 1 | -3/+2 |
| | |||||
* | Regenerated | Joel Sherrill | 1998-08-21 | 0 | -0/+0 |
| | |||||
* | All warnings removed. | Joel Sherrill | 1998-08-21 | 28 | -24/+100 |
| | |||||
* | Removed networkconfig.h since it reflects target specific initialization. | Joel Sherrill | 1998-08-21 | 2 | -4/+4 |
| | |||||
* | Patch from Eric Norum | Joel Sherrill | 1998-08-21 | 1 | -10/+9 |
| | |||||
* | Update from Eric Norum. | Joel Sherrill | 1998-08-21 | 1 | -4/+23 |
| | |||||
* | Changed version. | Joel Sherrill | 1998-08-21 | 1 | -2/+2 |
| | |||||
* | Added Networking and Obsoleted KA9Q manual. | Joel Sherrill | 1998-08-21 | 1 | -1/+3 |
| | |||||
* | Added networking to public documents. | Joel Sherrill | 1998-08-21 | 1 | -1/+1 |
| | |||||
* | Changed date/version. | Joel Sherrill | 1998-08-21 | 1 | -1/+1 |
| | |||||
* | Added initialization of missing termios structure entries. | Joel Sherrill | 1998-08-21 | 3 | -6/+9 |
| | |||||
* | Fixed warning about pointer/integer conversion which turned out to be | Joel Sherrill | 1998-08-21 | 4 | -4/+4 |
| | | | | a missed "&" on a write. | ||||
* | Fixed discrepancies noted by John Oleynick <johno@sirius.com>. | Joel Sherrill | 1998-08-21 | 1 | -6/+11 |
| | |||||
* | Made the description of timeing generation more accurate. | Joel Sherrill | 1998-08-20 | 2 | -8/+42 |
| | |||||
* | Changed wording to read better for PSIM. | Joel Sherrill | 1998-08-20 | 2 | -2/+2 |
| | |||||
* | New times. | Joel Sherrill | 1998-08-20 | 2 | -168/+169 |
| | |||||
* | Changed distribution level for this document. | Joel Sherrill | 1998-08-20 | 1 | -1/+1 |
| | |||||
* | Switched from generating tables based on CPU model to BSP. | Joel Sherrill | 1998-08-20 | 1 | -14/+14 |
| | |||||
* | Changed version. | Joel Sherrill | 1998-08-20 | 1 | -5/+5 |
| | |||||
* | PowerPC Supplement now part of support documentation. | Joel Sherrill | 1998-08-20 | 1 | -2/+2 |
| | |||||
* | rtems_support.html added. | Joel Sherrill | 1998-08-20 | 1 | -0/+2 |
| | |||||
* | New file | Joel Sherrill | 1998-08-20 | 1 | -0/+72 |
| | |||||
* | rtems_full.html sed'ed to get right version number. | Joel Sherrill | 1998-08-20 | 1 | -1/+2 |
| | |||||
* | PowerPC now part of customer support version. | Joel Sherrill | 1998-08-20 | 1 | -1/+0 |
| | |||||
* | changed version to 980820pm-BSD | Joel Sherrill | 1998-08-20 | 2 | -2/+2 |
| | |||||
* | Patches from Eric Norum | Joel Sherrill | 1998-08-20 | 60 | -363/+252 |
| | |||||
* | Added CVS Ids | Joel Sherrill | 1998-08-20 | 258 | -0/+812 |
| | |||||
* | Fixed many warnings. | Joel Sherrill | 1998-08-20 | 138 | -336/+644 |
| | |||||
* | changed version to 980820-BSD | Joel Sherrill | 1998-08-20 | 2 | -2/+2 |
| | |||||
* | Regenerated. | Joel Sherrill | 1998-08-20 | 0 | -0/+0 |
| | |||||
* | Changed to avoid use of gets(). | Joel Sherrill | 1998-08-20 | 4 | -32/+136 |
| | |||||
* | Updated to reflect TCP/IP stack transition. | Joel Sherrill | 1998-08-20 | 1 | -1/+3 |
| | |||||
* | Updated to reflect stack transition. | Joel Sherrill | 1998-08-20 | 3 | -5/+6 |
| | |||||
* | Temporarily leave strsep out of the build. | Joel Sherrill | 1998-08-20 | 2 | -4/+8 |
| | |||||
* | Added missing file. | Joel Sherrill | 1998-08-20 | 2 | -2/+2 |
| | |||||
* | Removed stub implementation | Joel Sherrill | 1998-08-20 | 3 | -13/+4 |
| | |||||
* | FreeBSD stack compiles for the first time (except libc/strsep.c) | Joel Sherrill | 1998-08-20 | 42 | -558/+832 |
| | |||||
* | FreeBSD stack compiles for the first time (except libc/strsep.c). | Joel Sherrill | 1998-08-20 | 54 | -24/+1356 |
| | |||||
* | Base files | Joel Sherrill | 1998-08-20 | 4 | -0/+190 |
| | |||||
* | Base files | Joel Sherrill | 1998-08-20 | 12 | -0/+584 |
| | |||||
* | Base version. | Joel Sherrill | 1998-08-20 | 2 | -0/+28 |
| | |||||
* | Base files | Joel Sherrill | 1998-08-19 | 859 | -0/+239233 |
| |