This is the mail archive of the newlib@sourceware.org mailing list for the newlib 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: GCC 4.1 with i386-elf setjmp causes page fault


> 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


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