ia64/xen: paravirtualize minstate.h, DO_SAVE_MIN.
Hi, Isaku
Quoted 13 lines
---
arch/ia64/xen/xenminstate.h| 148 ++++++++++++++++++++++++++++++++++++++++
+++1 files changed, 148 insertions(+), 0 deletions(-)create mode 100644
arch/ia64/xen/xenminstate.harch/ia64/xen/xenminstate.h new file +0
-0
arch/ia64/xen/xenminstate.h line 8
Quoted 8 lines
arch/ia64/xen/xenminstate.h new file +8
-0@@ -0,0 +1,148 @@ +#include <asm/cache.h> + +#ifdef CONFIG_XEN +#include "../kernel/entry.h" +#else +#include "entry.h" +#endif +
we don't have arch/ia64/xen/entry.h,
so the above ifdef is not necessary.
Best Regards,
Akio Takebe
Hi, Isaku
Quoted 39 lines
Signed-off-by Isaku Yamahata <[email protected]>---
arch/ia64/xen/xenminstate.h| 148 ++++++++++++++++++++++++++++++++++++++++
+++1 files changed, 148 insertions(+), 0 deletions(-)create mode 100644
arch/ia64/xen/xenminstate.harch/ia64/xen/xenminstate.h new file +26
-0@@ -0,0 +1,148 @@ +#include <asm/cache.h> + +#ifdef CONFIG_XEN +#include "../kernel/entry.h" +#else +#include "entry.h" +#endif + +#ifdef __IA64_ASM_PARAVIRTUALIZED_XEN +/* +* DO_SAVE_MIN switches to the kernel stacks (if necessary) and saves +* the minimum state necessary that allows us to turn psr.ic back +* on. +* +* Assumed state upon entry: +* psr.ic: off +* r31: contains saved predicates (pr) +* +* Upon exit, the state is as follows: +* psr.ic: off +* r2 = points to &pt_regs.r16 +* r8 = contents of ar.ccv +* r9 = contents of ar.csd +* r10 = contents of ar.ssd +* r11 = FPSR_DEFAULT +* r12 = kernel sp (kernel virtual address)
arch/ia64/xen/xenminstate.h line 36
Quoted 10 lines
arch/ia64/xen/xenminstate.h new file +10
-0+* r13 = points to current task_struct (kernel virtual address) +* p15 = TRUE if psr.i is set in cr.ipsr +* predicate registers (other than p2, p3, and p15), b6, r3, r14, r15: +* preserved +* CONFIG_XEN note: p6/p7 are not preserved +* +* Note that psr.ic is NOT turned on by this macro. This is so that +* we can pass interruption state as arguments to a handler. +*/ +#define DO_SAVE_MIN (COVER ,SAVE_IFS ,EXTRA )
\
arch/ia64/xen/xenminstate.h line 37
Quoted 1 line
arch/ia64/xen/xenminstate.h new file +1
-0+mov r16=IA64_KR (CURRENT );/* M */
\
arch/ia64/xen/xenminstate.h line 38
Quoted 1 line
arch/ia64/xen/xenminstate.h new file +1
-0+mov r27=ar.rsc;/* M */
\
arch/ia64/xen/xenminstate.h line 39
Quoted 1 line
arch/ia64/xen/xenminstate.h new file +1
-0+mov r20=r1;/* A */
\
arch/ia64/xen/xenminstate.h line 40
Quoted 1 line
arch/ia64/xen/xenminstate.h new file +1
-0+mov r25=ar.unat;/* M */
\
arch/ia64/xen/xenminstate.h line 41
Quoted 1 line
arch/ia64/xen/xenminstate.h new file +1
-0+/* mov r29=cr.ipsr; /* M */
\
arch/ia64/xen/xenminstate.h line 42
Quoted 1 line
arch/ia64/xen/xenminstate.h new file +1
-0+movl r29=XSI_IPSR ;;
\
arch/ia64/xen/xenminstate.h line 43
Quoted 1 line
arch/ia64/xen/xenminstate.h new file +1
-0+ ld8 r29=[r29];;
\
arch/ia64/xen/xenminstate.h line 44
Quoted 1 line
arch/ia64/xen/xenminstate.h new file +1
-0+mov r26=ar.pfs;/* I */
\
arch/ia64/xen/xenminstate.h line 45
Quoted 1 line
arch/ia64/xen/xenminstate.h new file +1
-0+/* mov r28=cr.iip; /* M */
\
arch/ia64/xen/xenminstate.h line 46
Quoted 1 line
arch/ia64/xen/xenminstate.h new file +1
-0+movl r28=XSI_IIP ;;
\
arch/ia64/xen/xenminstate.h line 47
Quoted 1 line
arch/ia64/xen/xenminstate.h new file +1
-0+ ld8 r28=[r28];;
\
arch/ia64/xen/xenminstate.h line 48
Quoted 1 line
arch/ia64/xen/xenminstate.h new file +1
-0+mov r21=ar.fpsr;/* M */
\
arch/ia64/xen/xenminstate.h line 49
Quoted 1 line
arch/ia64/xen/xenminstate.h new file +1
-0+COVER ;/* B;; (or nothing) */
\
We may mis-read the above COVER as COVER in arch/ia64/xen/inst_xen.h. Why don't chage the name?
Best Regards,
Akio Takebe