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-changelog

[Xen-changelog] Simplify cdb.

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Simplify cdb.
From: BitKeeper Bot <riel@xxxxxxxxxxx>
Date: Fri, 29 Apr 2005 08:36:31 +0000
Delivery-date: Fri, 29 Apr 2005 09:05:17 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: Xen Development List <xen-devel@xxxxxxxxxxxxxxxxxxx>
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
ChangeSet 1.1401, 2005/04/29 09:36:31+01:00, kaf24@xxxxxxxxxxxxxxxxxxxx

        Simplify cdb.
        Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>



 b/xen/include/asm-x86/debugger.h     |    5 +---
 xen/arch/x86/x86_32/call_with_regs.S |   36 -----------------------------------
 2 files changed, 2 insertions(+), 39 deletions(-)


diff -Nru a/xen/arch/x86/x86_32/call_with_regs.S 
b/xen/arch/x86/x86_32/call_with_regs.S
--- a/xen/arch/x86/x86_32/call_with_regs.S      2005-04-29 05:05:41 -04:00
+++ /dev/null   Wed Dec 31 16:00:00 196900
@@ -1,36 +0,0 @@
-.global call_with_registers
-
-#include <asm/asm-offsets.h>
-
-       // int call_with_registers(void (*f)(struct cpu_user_regs *r)) ->
-       // build a cpu_user_regs structure, and then call f with that.
-call_with_registers:
-       pushf
-       subl $UREGS_user_sizeof, %esp
-       movl %ebx, UREGS_ebx(%esp)
-       movl %ecx, UREGS_ecx(%esp)
-       movl %edx, UREGS_edx(%esp)
-       movl %esi, UREGS_esi(%esp)
-       movl %edi, UREGS_edi(%esp)
-       movl %ebp, UREGS_ebp(%esp)
-       movl %eax, UREGS_eax(%esp)
-       movw $0, UREGS_error_code(%esp)
-       movw $0, UREGS_entry_vector(%esp)
-       movl UREGS_user_sizeof+4(%esp), %eax
-       movl %eax, UREGS_eip(%esp)
-       movl %cs, UREGS_cs(%esp)
-       movl UREGS_user_sizeof(%esp), %eax
-       movl %eax, UREGS_eflags(%esp)
-       movl %esp, UREGS_esp(%esp)
-       addl $UREGS_user_sizeof+4, UREGS_esp(%esp)
-       movl %ss, UREGS_ss(%esp)
-       movl %es, UREGS_es(%esp)
-       movl %ds, UREGS_ds(%esp)
-       movl %fs, UREGS_fs(%esp)
-       movl %gs, UREGS_gs(%esp)
-
-       movl UREGS_user_sizeof+8(%esp), %eax
-       pushl %esp
-       call *%eax
-       add $UREGS_user_sizeof + 8, %esp
-       ret
diff -Nru a/xen/include/asm-x86/debugger.h b/xen/include/asm-x86/debugger.h
--- a/xen/include/asm-x86/debugger.h    2005-04-29 05:05:41 -04:00
+++ b/xen/include/asm-x86/debugger.h    2005-04-29 05:05:41 -04:00
@@ -38,14 +38,13 @@
 #define DEBUGGER_trap_fatal(_v, _r) \
     if ( debugger_trap_fatal(_v, _r) ) return EXCRET_fault_fixed;
 
-int call_with_registers(int (*f)(struct cpu_user_regs *r));
-
 #if defined(CRASH_DEBUG)
 
 extern int __trap_to_cdb(struct cpu_user_regs *r);
 #define debugger_trap_entry(_v, _r) (0)
 #define debugger_trap_fatal(_v, _r) __trap_to_cdb(_r)
-#define debugger_trap_immediate() call_with_registers(__trap_to_cdb)
+/* Int3 is a trivial way to gather cpu_user_regs context. */
+#define debugger_trap_immediate() __asm__ __volatile__ ( "int3" );
 
 #elif defined(DOMU_DEBUG)
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Simplify cdb., BitKeeper Bot <=