This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: CYGNUM_HAL_RTC_PERIOD / floating point


David N. Welton wrote:
Jonathan Larmour <jifl@eCosCentric.com> writes:
386DX? 386SX has no FPU. Does FPU work outside of cyg_start in threads?

This machine is a - what's the term you folks use ? - "bog standard"
modern desktop PC.
It should say the processor model when you boot, I'd hope.

>  I thought of trying it in a variety of places in
the code, and it doesn't seem to work in threads, either.

When I run it under bochs with debug logs turned on, it tells me:

00005904485d[CPU  ] exception(07 h)
00005904485d[CPU  ] interrupt(): vector = 7, INT = 0, EXT = 1
00005904485d[CPU  ] int_trap_gate286(): INTERRUPT TO SAME PRIVILEGE
And this is with the lazy FPU switching off even? There should be no interrupt if the FPU is there and the lazy FPU switching is off. Unless you haven't got an FPU.

Jifl
--
eCosCentric http://www.eCosCentric.com/ <info@eCosCentric.com>
--[ "You can complain because roses have thorns, or you ]--
--[ can rejoice because thorns have roses." -Lincoln ]-- Opinions==mine


--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]