Changeset 2cf87e50 in mainline


Ignore:
Timestamp:
2005-12-17T23:25:48Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ff12a3c
Parents:
07bd114e
Message:

sparc64 work.
CPU identification.

Files:
2 added
6 edited

Legend:

Unmodified
Added
Removed
  • arch/sparc64/Makefile.inc

    r07bd114e r2cf87e50  
    4848
    4949ARCH_SOURCES = \
     50        arch/$(ARCH)/src/cpu/cpu.c \
    5051        arch/$(ARCH)/src/asm.S \
    5152        arch/$(ARCH)/src/console.c \
  • arch/sparc64/include/asm.h

    r07bd114e r2cf87e50  
    8686}
    8787
     88/** Read Version Register.
     89 *
     90 * @return Value of VER register.
     91 */
     92static inline __u64 ver_read(void)
     93{
     94        __u64 v;
     95       
     96        __asm__ volatile ("rdpr %%ver, %0\n" : "=r" (v));
     97       
     98        return v;
     99}
     100
    88101/** Read Trap Base Address register.
    89102 *
  • arch/sparc64/include/cpu.h

    r07bd114e r2cf87e50  
    3030#define __sparc64_CPU_H__
    3131
    32 #include <typedefs.h>
     32#include <arch/register.h>
     33
     34#define MANUF_FUJITSU           0x04
     35#define MANUF_ULTRASPARC        0x17    /**< UltraSPARC I, UltraSPARC II */
     36#define MANUF_SUN               0x3e
     37
     38#define IMPL_ULTRASPARCI        0x10
     39#define IMPL_ULTRASPARCII       0x11
     40#define IMPL_ULTRASPARCII_I     0x12
     41#define IMPL_ULTRASPARCII_E     0x13
     42#define IMPL_ULTRASPARCIII      0x15
     43#define IMPL_ULTRASPARCIV_PLUS  0x19
     44
     45#define IMPL_SPARC64V           0x5
    3346
    3447struct cpu_arch {
     48        ver_reg_t ver;
    3549};
    3650       
  • arch/sparc64/src/dummy.s

    r07bd114e r2cf87e50  
    3131.global asm_delay_loop
    3232.global before_thread_runs_arch
    33 .global cpu_arch_init
    3433.global cpu_halt
    35 .global cpu_identify
    36 .global cpu_print_report
    3734.global cpu_sleep
    3835.global fmath_dpow
     
    5249asm_delay_loop:
    5350before_thread_runs_arch:
    54 cpu_arch_init:
    5551cpu_halt:
    56 cpu_identify:
    57 cpu_print_report:
    5852cpu_sleep:
    5953fmath_dpow:
  • generic/src/console/kconsole.c

    r07bd114e r2cf87e50  
    159159}
    160160
    161 /** Try to find a command begenning with prefix */
     161/** Try to find a command beginning with prefix */
    162162static const char * cmdtab_search_one(const char *name,link_t **startpos)
    163163{
  • generic/src/main/main.c

    r07bd114e r2cf87e50  
    204204
    205205        calibrate_delay_loop();
    206        
     206
    207207        timeout_init();
    208208        scheduler_init();
Note: See TracChangeset for help on using the changeset viewer.