projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b7ae55
)
Export new PACA constants in asm-offsets
author
Alexander Graf
<agraf@suse.de>
Fri, 30 Oct 2009 05:47:23 +0000
(
05:47
+0000)
committer
Benjamin Herrenschmidt
<benh@kernel.crashing.org>
Thu, 5 Nov 2009 05:50:26 +0000
(16:50 +1100)
In order to access fields in the PACA from assembly code, we need
to generate offsets using asm-offsets.c.
So let's add the new PACA related bits, we just introduced!
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/asm-offsets.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/kernel/asm-offsets.c
b/arch/powerpc/kernel/asm-offsets.c
index aba3ea64661ea50059eea4f4b2c1c916acde9735..e2e2082acf2983e96c9ed14a5dd1644125cb798f 100644
(file)
--- a/
arch/powerpc/kernel/asm-offsets.c
+++ b/
arch/powerpc/kernel/asm-offsets.c
@@
-190,6
+190,11
@@
int main(void)
DEFINE(PACA_SYSTEM_TIME, offsetof(struct paca_struct, system_time));
DEFINE(PACA_DATA_OFFSET, offsetof(struct paca_struct, data_offset));
DEFINE(PACA_TRAP_SAVE, offsetof(struct paca_struct, trap_save));
+#ifdef CONFIG_KVM_BOOK3S_64_HANDLER
+ DEFINE(PACA_KVM_IN_GUEST, offsetof(struct paca_struct, kvm_in_guest));
+ DEFINE(PACA_KVM_SLB, offsetof(struct paca_struct, kvm_slb));
+ DEFINE(PACA_KVM_SLB_MAX, offsetof(struct paca_struct, kvm_slb_max));
+#endif
#endif /* CONFIG_PPC64 */
/* RTAS */