diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2005-09-27 10:17:40 -0400 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2005-09-27 10:17:40 -0400 |
commit | 99a2379cdddcc4e8579e70deb80479450ed65d49 (patch) | |
tree | d5c40a1e7ffabb87c3b1f1ae510eac80f4b52d05 /arch | |
parent | 2952bc7c896ec76a20e18321e2be40a694a73a78 (diff) |
powerpc: move hvCall.s to powerpc/platforms/iseries
Rename it to hvcall.S and (so I can do that) rename hvcall.c
to hvlog.c - a more appropriate name.
Do some white space cleanups.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/platforms/iseries/Makefile | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/iseries/hvcall.S (renamed from arch/ppc64/kernel/hvCall.S) | 21 | ||||
-rw-r--r-- | arch/powerpc/platforms/iseries/hvlog.c (renamed from arch/powerpc/platforms/iseries/hvcall.c) | 0 | ||||
-rw-r--r-- | arch/ppc64/kernel/Makefile | 3 |
4 files changed, 10 insertions, 16 deletions
diff --git a/arch/powerpc/platforms/iseries/Makefile b/arch/powerpc/platforms/iseries/Makefile index a5e91c9db5c7..3a9981a35e2a 100644 --- a/arch/powerpc/platforms/iseries/Makefile +++ b/arch/powerpc/platforms/iseries/Makefile | |||
@@ -1 +1 @@ | |||
obj-y += hvcall.o hvlpconfig.o lpardata.o setup.o mf.o lpevents.o | obj-y += hvlog.o hvlpconfig.o lpardata.o setup.o mf.o lpevents.o hvcall.o | ||
diff --git a/arch/ppc64/kernel/hvCall.S b/arch/powerpc/platforms/iseries/hvcall.S index 4c699eab1b95..9901c0ec1415 100644 --- a/arch/ppc64/kernel/hvCall.S +++ b/arch/powerpc/platforms/iseries/hvcall.S | |||
@@ -1,7 +1,4 @@ | |||
1 | /* | 1 | /* |
2 | * arch/ppc64/kernel/hvCall.S | ||
3 | * | ||
4 | * | ||
5 | * This file contains the code to perform calls to the | 2 | * This file contains the code to perform calls to the |
6 | * iSeries LPAR hypervisor | 3 | * iSeries LPAR hypervisor |
7 | * | 4 | * |
@@ -16,12 +13,12 @@ | |||
16 | 13 | ||
17 | .text | 14 | .text |
18 | 15 | ||
19 | /* | 16 | /* |
20 | * Hypervisor call | 17 | * Hypervisor call |
21 | * | 18 | * |
22 | * Invoke the iSeries hypervisor via the System Call instruction | 19 | * Invoke the iSeries hypervisor via the System Call instruction |
23 | * Parameters are passed to this routine in registers r3 - r10 | 20 | * Parameters are passed to this routine in registers r3 - r10 |
24 | * | 21 | * |
25 | * r3 contains the HV function to be called | 22 | * r3 contains the HV function to be called |
26 | * r4-r10 contain the operands to the hypervisor function | 23 | * r4-r10 contain the operands to the hypervisor function |
27 | * | 24 | * |
@@ -41,11 +38,11 @@ _GLOBAL(HvCall7) | |||
41 | mfcr r0 | 38 | mfcr r0 |
42 | std r0,-8(r1) | 39 | std r0,-8(r1) |
43 | stdu r1,-(STACK_FRAME_OVERHEAD+16)(r1) | 40 | stdu r1,-(STACK_FRAME_OVERHEAD+16)(r1) |
44 | 41 | ||
45 | /* r0 = 0xffffffffffffffff indicates a hypervisor call */ | 42 | /* r0 = 0xffffffffffffffff indicates a hypervisor call */ |
46 | 43 | ||
47 | li r0,-1 | 44 | li r0,-1 |
48 | 45 | ||
49 | /* Invoke the hypervisor */ | 46 | /* Invoke the hypervisor */ |
50 | 47 | ||
51 | sc | 48 | sc |
@@ -55,7 +52,7 @@ _GLOBAL(HvCall7) | |||
55 | mtcrf 0xff,r0 | 52 | mtcrf 0xff,r0 |
56 | 53 | ||
57 | /* return to caller, return value in r3 */ | 54 | /* return to caller, return value in r3 */ |
58 | 55 | ||
59 | blr | 56 | blr |
60 | 57 | ||
61 | _GLOBAL(HvCall0Ret16) | 58 | _GLOBAL(HvCall0Ret16) |
@@ -92,7 +89,5 @@ _GLOBAL(HvCall7Ret16) | |||
92 | ld r0,-8(r1) | 89 | ld r0,-8(r1) |
93 | mtcrf 0xff,r0 | 90 | mtcrf 0xff,r0 |
94 | ld r31,-16(r1) | 91 | ld r31,-16(r1) |
95 | |||
96 | blr | ||
97 | |||
98 | 92 | ||
93 | blr | ||
diff --git a/arch/powerpc/platforms/iseries/hvcall.c b/arch/powerpc/platforms/iseries/hvlog.c index f61e2e9ac9ec..f61e2e9ac9ec 100644 --- a/arch/powerpc/platforms/iseries/hvcall.c +++ b/arch/powerpc/platforms/iseries/hvlog.c | |||
diff --git a/arch/ppc64/kernel/Makefile b/arch/ppc64/kernel/Makefile index e3bce4dda502..f84ae358db0a 100644 --- a/arch/ppc64/kernel/Makefile +++ b/arch/ppc64/kernel/Makefile | |||
@@ -22,8 +22,7 @@ pci-obj-$(CONFIG_PPC_MULTIPLATFORM) += pci_dn.o pci_direct_iommu.o | |||
22 | 22 | ||
23 | obj-$(CONFIG_PCI) += pci.o pci_iommu.o iomap.o $(pci-obj-y) | 23 | obj-$(CONFIG_PCI) += pci.o pci_iommu.o iomap.o $(pci-obj-y) |
24 | 24 | ||
25 | obj-$(CONFIG_PPC_ISERIES) += hvCall.o \ | 25 | obj-$(CONFIG_PPC_ISERIES) += HvLpEvent.o iSeries_proc.o iSeries_htab.o \ |
26 | HvLpEvent.o iSeries_proc.o iSeries_htab.o \ | ||
27 | iSeries_iommu.o | 26 | iSeries_iommu.o |
28 | 27 | ||
29 | obj-$(CONFIG_PPC_MULTIPLATFORM) += nvram.o i8259.o prom_init.o | 28 | obj-$(CONFIG_PPC_MULTIPLATFORM) += nvram.o i8259.o prom_init.o |