WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ia64-devel

Re: [Xen-ia64-devel] [PATCH 6/12]MCA handler support for Xen/ia64 TAKE 2

Hi Alex,

Sorry, I forgot to clean up my debug messages.
Please replace `mca-sal_h.patch' by attached patch.


Thanks,
KAZ

Signed-off-by: Yutaka Ezaki <yutaka.ezaki@xxxxxxxxxxxxxx>
Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
Signed-off-by: Kazuhiro Suzuki <kaz@xxxxxxxxxxxxxx>
*** linux-2.6-xen-sparse/include/asm-ia64/sal.h.orig    2006-10-10 
18:06:14.000000000 +0900
--- linux-2.6-xen-sparse/include/asm-ia64/sal.h 2006-10-11 09:04:07.000000000 
+0900
***************
*** 42,47 ****
--- 42,48 ----
  #include <asm/pal.h>
  #include <asm/system.h>
  #include <asm/fpu.h>
+ #include <asm/xen/xencomm.h>
  
  extern spinlock_t sal_lock;
  
***************
*** 690,697 ****
  ia64_sal_get_state_info (u64 sal_info_type, u64 *sal_info)
  {
        struct ia64_sal_retval isrv;
        SAL_CALL_REENTRANT(isrv, SAL_GET_STATE_INFO, sal_info_type, 0,
!                     sal_info, 0, 0, 0, 0);
        if (isrv.status)
                return 0;
  
--- 691,710 ----
  ia64_sal_get_state_info (u64 sal_info_type, u64 *sal_info)
  {
        struct ia64_sal_retval isrv;
+       struct xencomm_mini xc_area[4];
+       int nbr_area = 4;
+       struct xencomm_handle *desc;
+       int rc;
+       static inline u64 ia64_sal_get_state_info_size (u64 sal_info_type);
+ 
+       rc = xencomm_create_mini(xc_area, &nbr_area, sal_info,
+                                ia64_sal_get_state_info_size(sal_info_type),
+                                &desc);
+       if (rc)
+               return 0;
+ 
        SAL_CALL_REENTRANT(isrv, SAL_GET_STATE_INFO, sal_info_type, 0,
!                     desc, 0, 0, 0, 0);
        if (isrv.status)
                return 0;
  
_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel