This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: i386 HAL, stack segment not initialised
- To: Ian Campbell <icampbell at arcom dot co dot uk>
- Subject: Re: [ECOS] i386 HAL, stack segment not initialised
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Fri, 28 Sep 2001 19:02:06 +0100
- Cc: eCos List <ecos-discuss at sources dot redhat dot com>
- Organization: Red Hat UK Ltd.
- References: <1001670749.15543.13.camel@LinuxDev>
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