This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: GCC 4.1 with i386-elf setjmp causes page fault
- From: ramsdell at mitre dot org (John D. Ramsdell)
- To: newlib at sourceware dot org
- Date: 04 May 2006 13:29:13 -0400
- Subject: Re: GCC 4.1 with i386-elf setjmp causes page fault
- References: <ogt3bfr5ons.fsf@divan.mitre.org>
> I modified the code that implements the console in Mini-OS so that
> it exercises setjmp and longjmp. A page fault occurs when longjmp
> is called.
I discovered that omitting the cli and sti instructions allows
newlib's implementation of longjmp to run within the Mini-OS kernel
without causing a page fault.
John