Changeset 6f8a426 in mainline for arch/ppc32/include/cpuid.h
- Timestamp:
- 2006-02-21T00:04:20Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0fad93a
- Parents:
- cd92528
- File:
-
- 1 moved
-
arch/ppc32/include/cpuid.h (moved) (moved from arch/ppc32/src/fpu_context.c ) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
arch/ppc32/include/cpuid.h
rcd92528 r6f8a426 1 1 /* 2 * Copyright (C) 200 5 Jakub Vana2 * Copyright (C) 2006 Martin Decky 3 3 * All rights reserved. 4 4 * … … 25 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 *28 27 */ 29 28 30 #include <fpu_context.h> 29 #ifndef __ppc32_CPUID_H__ 30 #define __ppc32_CPUID_H__ 31 31 32 void fpu_context_save(fpu_context_t *fctx) 32 #include <arch/types.h> 33 34 struct cpu_info { 35 __u16 version; 36 __u16 revision; 37 } __attribute__ ((packed)); 38 39 static inline void cpu_version(struct cpu_info *info) 33 40 { 41 __asm__ volatile ( 42 "mfspr %0, 287\n" 43 : "=r" (*info) 44 ); 34 45 } 35 46 36 37 void fpu_context_restore(fpu_context_t *fctx) 38 { 39 } 47 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
