[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] The entry of Xen's exception handler

  • To: Xinxin Jin <xinxinjin89@xxxxxxxxx>, <Xen-devel@xxxxxxxxxxxxx>
  • From: Keir Fraser <keir.xen@xxxxxxxxx>
  • Date: Tue, 02 Oct 2012 22:30:49 +0100
  • Delivery-date: Tue, 02 Oct 2012 21:31:15 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>
  • Thread-index: Ac2g5TDIEdAkF83j00Kkw177JsyWbw==
  • Thread-topic: [Xen-devel] The entry of Xen's exception handler

On 02/10/2012 21:51, "Xinxin Jin" <xinxinjin89@xxxxxxxxx> wrote:

> Hi, I am trying to understand the exception handler of Xen. In
> xen/arch/x86/x86_64/entry.S, the entry of the page fault handler is :
> ENTRY(page_fault)
>         movl  $TRAP_page_fault,4(%rsp)
>         jmp   handle_exception
> Here I did not get why to put the exception vector ($TRAP_page_fault) to stack
> before calling handle_exception?

Otherwise handle_exception would not know which type of exception it was
handling, would it.

 -- Keir

> Thanks,

Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.