Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
hvCall.S
Package: linux-2.4.20.tar.gz [view]
Upload User: jlfgdled
Upload Date: 2013-04-10
Package Size: 33168k
Code Size: 2k
Category:
Linux-Unix program
Development Platform:
Unix_Linux
- /*
- * arch/ppc64/kernel/hvCall.S
- *
- *
- * This file contains the code to perform calls to the
- * iSeries LPAR hypervisor
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version
- * 2 of the License, or (at your option) any later version.
- */
- #include "ppc_asm.h"
- #include <asm/processor.h>
- #include <linux/config.h>
- .text
- /*
- * Hypervisor call
- *
- * Invoke the iSeries hypervisor via the System Call instruction
- * Parameters are passed to this routine in registers r3 - r10
- *
- * r3 contains the HV function to be called
- * r4-r10 contain the operands to the hypervisor function
- *
- */
- _GLOBAL(HvCall)
- _GLOBAL(HvCall0)
- _GLOBAL(HvCall1)
- _GLOBAL(HvCall2)
- _GLOBAL(HvCall3)
- _GLOBAL(HvCall4)
- _GLOBAL(HvCall5)
- _GLOBAL(HvCall6)
- _GLOBAL(HvCall7)
- mfcr r0
- std r0,-8(r1)
- stdu r1,-(STACK_FRAME_OVERHEAD+16)(r1)
- /* r0 = 0xffffffffffffffff indicates a hypervisor call */
- li r0,-1
- /* Invoke the hypervisor */
- sc
- ld r1,0(r1)
- ld r0,-8(r1)
- mtcrf 0xff,r0
- /* return to caller, return value in r3 */
- blr
- _GLOBAL(HvCall0Ret16)
- _GLOBAL(HvCall1Ret16)
- _GLOBAL(HvCall2Ret16)
- _GLOBAL(HvCall3Ret16)
- _GLOBAL(HvCall4Ret16)
- _GLOBAL(HvCall5Ret16)
- _GLOBAL(HvCall6Ret16)
- _GLOBAL(HvCall7Ret16)
- mfcr r0
- std r0,-8(r1)
- std r31,-16(r1)
- stdu r1,-(STACK_FRAME_OVERHEAD+32)(r1)
- mr r31,r4
- li r0,-1
- mr r4,r5
- mr r5,r6
- mr r6,r7
- mr r7,r8
- mr r8,r9
- mr r9,r10
- sc
- std r3,0(r31)
- std r4,8(r31)
- mr r3,r5
- ld r1,0(r1)
- ld r0,-8(r1)
- mtcrf 0xff,r0
- ld r31,-16(r1)
- blr