diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2007-12-20 02:39:59 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-12-21 03:46:19 -0500 |
commit | 7cd58e43810852eeb7af5a0c803f3890bd08b581 (patch) | |
tree | d9ea5c0102d70c26c4a9b18aaf4db4e3b6d48fc1 /include/asm-powerpc | |
parent | 9b1d21f858e8bad750ab19cac23dcbf79d099be3 (diff) |
[POWERPC] spufs: move fault, lscsa_alloc and switch code to spufs module
Currently, part of the spufs code (switch.o, lscsa_alloc.o and fault.o)
is compiled directly into the kernel.
This change moves these components of spufs into the kernel.
The lscsa and switch objects are fairly straightforward to move in.
For the fault.o module, we split the fault-handling code into two
parts: a/p/p/c/spu_fault.c and a/p/p/c/spufs/fault.c. The former is for
the in-kernel spu_handle_mm_fault function, and we move the rest of the
fault-handling code into spufs.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc')
-rw-r--r-- | include/asm-powerpc/spu.h | 2 | ||||
-rw-r--r-- | include/asm-powerpc/spu_csa.h | 9 |
2 files changed, 2 insertions, 9 deletions
diff --git a/include/asm-powerpc/spu.h b/include/asm-powerpc/spu.h index 90aadf5bed2c..543c83c2dc62 100644 --- a/include/asm-powerpc/spu.h +++ b/include/asm-powerpc/spu.h | |||
@@ -283,6 +283,8 @@ void spu_remove_sysdev_attr(struct sysdev_attribute *attr); | |||
283 | int spu_add_sysdev_attr_group(struct attribute_group *attrs); | 283 | int spu_add_sysdev_attr_group(struct attribute_group *attrs); |
284 | void spu_remove_sysdev_attr_group(struct attribute_group *attrs); | 284 | void spu_remove_sysdev_attr_group(struct attribute_group *attrs); |
285 | 285 | ||
286 | int spu_handle_mm_fault(struct mm_struct *mm, unsigned long ea, | ||
287 | unsigned long dsisr, unsigned *flt); | ||
286 | 288 | ||
287 | /* | 289 | /* |
288 | * Notifier blocks: | 290 | * Notifier blocks: |
diff --git a/include/asm-powerpc/spu_csa.h b/include/asm-powerpc/spu_csa.h index 867bc2667330..34da5c685170 100644 --- a/include/asm-powerpc/spu_csa.h +++ b/include/asm-powerpc/spu_csa.h | |||
@@ -259,15 +259,6 @@ struct spu_state { | |||
259 | spinlock_t register_lock; | 259 | spinlock_t register_lock; |
260 | }; | 260 | }; |
261 | 261 | ||
262 | extern int spu_init_csa(struct spu_state *csa); | ||
263 | extern void spu_fini_csa(struct spu_state *csa); | ||
264 | extern int spu_save(struct spu_state *prev, struct spu *spu); | ||
265 | extern int spu_restore(struct spu_state *new, struct spu *spu); | ||
266 | extern int spu_switch(struct spu_state *prev, struct spu_state *new, | ||
267 | struct spu *spu); | ||
268 | extern int spu_alloc_lscsa(struct spu_state *csa); | ||
269 | extern void spu_free_lscsa(struct spu_state *csa); | ||
270 | |||
271 | #endif /* !__SPU__ */ | 262 | #endif /* !__SPU__ */ |
272 | #endif /* __KERNEL__ */ | 263 | #endif /* __KERNEL__ */ |
273 | #endif /* !__ASSEMBLY__ */ | 264 | #endif /* !__ASSEMBLY__ */ |