This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: qustion about GDB
>>>>> "james" == james chen <james_ch1@sina.com> writes:
james> I have found the reason, it is that the IRQ bit is
james> disable in Current Progarm Staus Register(CPSR). I have check
james> the vectors.S in arm/arch, I don't find any code to re-enable
james> IRQ in CPSR, where can I have a chance to re-enable it in my
james> platform code?
It should be enabled in the ctrlc init code - if that is configured
into your system. Look for this in vectors.S:
#if defined(CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT) \
|| defined(CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT)
.extern hal_ctrlc_isr_init
bl hal_ctrlc_isr_init
#endif
james> it seem that eCos will run in supervisor mode between OS
james> and Applications. but I want OS running in supervisor mode and
james> Applications running in user mode, how to change it? Will eCos
james> support this in future?
That is unlikely to ever happen - eCos application needs to be able to
use HAL cache and interrupt macros which cannot be used from user
mode.
jesper