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]

Re: i386 HAL, stack segment not initialised


Ian Campbell wrote:
> 
> It may be something that I have changed (I don't think so though), but
> when booting RedBoot from ROM and then loading an application via GDB it
> seems that %ss never gets initialised, this causes a crash on the first
> context switch or when changing %esp (at least on the 386ex it does).

It seems that %ss only gets set in the floppy boot code in
pcmb/current/include/pcmb.inc
 
> The attached patch initialises ss in hal_cpu_init along with the other
> data segment registers. I'm not sure this is the correct general
> solution, but 'it works for me(tm)'. The patch also contains a rather
> pedantic change to make the names used for some registers match the
> suffix on the opcode.

Seems fine. Applied. I made a ChangeLog entry for you.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine


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