⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gpr_switch.s

📁 xen虚拟机源代码安装包
💻 S
字号:
/* * GPR context switch between host and guest. * Used by IO-port-access emulation stub. * * Copyright (c) 2006, Novell, Inc. */#include <xen/config.h>#include <asm/asm_defns.h>ENTRY(host_to_guest_gpr_switch)        movl  (%esp), %ecx        movl  %eax, (%esp)        movl  UREGS_edx(%eax), %edx        pushl %ebx        movl  UREGS_ebx(%eax), %ebx        pushl %ebp        movl  UREGS_ebp(%eax), %ebp        pushl %esi        movl  UREGS_esi(%eax), %esi        pushl %edi        movl  UREGS_edi(%eax), %edi        pushl $guest_to_host_gpr_switch        pushl %ecx        movl  UREGS_ecx(%eax), %ecx        movl  UREGS_eax(%eax), %eax        retENTRY(guest_to_host_gpr_switch)        pushl %edx        movl  5*4(%esp), %edx        movl  %eax, UREGS_eax(%edx)        popl  UREGS_edx(%edx)        movl  %edi, UREGS_edi(%edx)        popl  %edi        movl  %esi, UREGS_esi(%edx)        popl  %esi        movl  %ebp, UREGS_ebp(%edx)        popl  %ebp        movl  %ebx, UREGS_ebx(%edx)        popl  %ebx        movl  %ecx, UREGS_ecx(%edx)        popl  %ecx        ret

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -