This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Serial port used by both RedBoot and a program
- To: Fabrice Gautier <Fabrice_Gautier at sdesigns dot com>
- Subject: Re: [ECOS] Serial port used by both RedBoot and a program
- From: Jesper Skov <jskov at redhat dot com>
- Date: 09 Nov 2000 08:47:40 +0100
- Cc: Andrew Lunn <andrew dot lunn at ascom dot ch>, "Ecos-List (E-mail)" <ecos-discuss at sourceware dot cygnus dot com>
- References: <B1F6452C89AFD411AE0800A0CC734C23014FFC@EMAIL1>
>>>>> "Fabrice" == Fabrice Gautier <Fabrice_Gautier@sdesigns.com> writes:
Fabrice> How does that works exactly ? The corresponding entries in
Fabrice> the vector table are disabled or something like that ?
No. What happens is that the stubs enable serial receive interrupts,
but do not change the vector. When a serial interrupt happens, it
causes the cyg_hal_default_isr of the application to be run. This
calls into the stub (via the virtual vectors) which determines if the
received character was a 0x03. If so, a breakpoint is put at the PC
where the interrupt happened.
Also see
http://sources.redhat.com/ecos/docs-latest/porting/hal-stubs.html
Jesper