Changeset 6f8a426 in mainline for arch/ppc32/include/cpuid.h


Ignore:
Timestamp:
2006-02-21T00:04:20Z (20 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0fad93a
Parents:
cd92528
Message:

indentation changes
ppc32 fpu context save/restore
ppc32 CPU version
ppc32 memcpy

File:
1 moved

Legend:

Unmodified
Added
Removed
  • arch/ppc32/include/cpuid.h

    rcd92528 r6f8a426  
    11/*
    2  * Copyright (C) 2005 Jakub Vana
     2 * Copyright (C) 2006 Martin Decky
    33 * All rights reserved.
    44 *
     
    2525 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
    2626 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    27  *
    2827 */
    2928
    30 #include <fpu_context.h>
     29#ifndef __ppc32_CPUID_H__
     30#define __ppc32_CPUID_H__
    3131
    32 void fpu_context_save(fpu_context_t *fctx)
     32#include <arch/types.h>
     33
     34struct cpu_info {
     35        __u16 version;
     36        __u16 revision;
     37} __attribute__ ((packed));
     38
     39static inline void cpu_version(struct cpu_info *info)
    3340{
     41        __asm__ volatile (
     42                "mfspr %0, 287\n"
     43                : "=r" (*info)
     44        );
    3445}
    3546
    36 
    37 void fpu_context_restore(fpu_context_t *fctx)
    38 {
    39 }
     47#endif
Note: See TracChangeset for help on using the changeset viewer.