-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 11499 b: refs/heads/master c: c111d0b h: refs/heads/master i: 11497: d78d7a0 11495: 9a8a308 v: v3
- Loading branch information
Stephen Rothwell
committed
Sep 28, 2005
1 parent
70a4de0
commit 2121b48
Showing
6 changed files
with
85 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 7b875f4dc345dc5f6a2c3bd0e1f90bfee46b2258 | ||
refs/heads/master: c111d0bda8437d146ccf5101970801fe4ff23ed8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
obj-y += hvlog.o hvlpconfig.o lpardata.o setup.o mf.o lpevents.o \ | ||
hvcall.o proc.o htab.o iommu.o | ||
hvcall.o proc.o htab.o iommu.o misc.o | ||
obj-$(CONFIG_PCI) += pci.o irq.o vpdinfo.o | ||
obj-$(CONFIG_IBMVIO) += vio.o | ||
obj-$(CONFIG_SMP) += smp.o | ||
obj-$(CONFIG_VIOPATH) += viopath.o | ||
obj-$(CONFIG_MODULES) += ksyms.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* (C) 2001-2005 PPC 64 Team, IBM Corp | ||
* | ||
* 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 <linux/module.h> | ||
|
||
#include <asm/hw_irq.h> | ||
#include <asm/iSeries/HvCallSc.h> | ||
|
||
EXPORT_SYMBOL(HvCall0); | ||
EXPORT_SYMBOL(HvCall1); | ||
EXPORT_SYMBOL(HvCall2); | ||
EXPORT_SYMBOL(HvCall3); | ||
EXPORT_SYMBOL(HvCall4); | ||
EXPORT_SYMBOL(HvCall5); | ||
EXPORT_SYMBOL(HvCall6); | ||
EXPORT_SYMBOL(HvCall7); | ||
|
||
#ifdef CONFIG_SMP | ||
EXPORT_SYMBOL(local_get_flags); | ||
EXPORT_SYMBOL(local_irq_disable); | ||
EXPORT_SYMBOL(local_irq_restore); | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/* | ||
* This file contains miscellaneous low-level functions. | ||
* Copyright (C) 1995-2005 IBM Corp | ||
* | ||
* Largely rewritten by Cort Dougan (cort@cs.nmt.edu) | ||
* and Paul Mackerras. | ||
* Adapted for iSeries by Mike Corrigan (mikejc@us.ibm.com) | ||
* PPC64 updates by Dave Engebretsen (engebret@us.ibm.com) | ||
* | ||
* 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 <asm/processor.h> | ||
#include <asm/asm-offsets.h> | ||
|
||
.text | ||
|
||
/* unsigned long local_save_flags(void) */ | ||
_GLOBAL(local_get_flags) | ||
lbz r3,PACAPROCENABLED(r13) | ||
blr | ||
|
||
/* unsigned long local_irq_disable(void) */ | ||
_GLOBAL(local_irq_disable) | ||
lbz r3,PACAPROCENABLED(r13) | ||
li r4,0 | ||
stb r4,PACAPROCENABLED(r13) | ||
blr /* Done */ | ||
|
||
/* void local_irq_restore(unsigned long flags) */ | ||
_GLOBAL(local_irq_restore) | ||
lbz r5,PACAPROCENABLED(r13) | ||
/* Check if things are setup the way we want _already_. */ | ||
cmpw 0,r3,r5 | ||
beqlr | ||
/* are we enabling interrupts? */ | ||
cmpdi 0,r3,0 | ||
stb r3,PACAPROCENABLED(r13) | ||
beqlr | ||
/* Check pending interrupts */ | ||
/* A decrementer, IPI or PMC interrupt may have occurred | ||
* while we were in the hypervisor (which enables) */ | ||
ld r4,PACALPPACA+LPPACAANYINT(r13) | ||
cmpdi r4,0 | ||
beqlr | ||
|
||
/* | ||
* Handle pending interrupts in interrupt context | ||
*/ | ||
li r0,0x5555 | ||
sc | ||
blr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters