Changeset 9a5b556 in mainline for kernel/arch/sparc64/src/cpu/cpu.c


Ignore:
Timestamp:
2006-09-12T13:03:55Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6eabb6e6
Parents:
7bb6b06
Message:

sparc64 work:

  • find a CPU node and read its clock_frequency attribute
  • implement asm_delay_loop()
  • set TICK_COMPARE register according to processor frequency
  • small improvements at random places

OpenFirmware work:

  • two new functions for walking the device tree

Generic boot loader work:

  • added basic string functions

Usual pile of indentation and formatting fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/src/cpu/cpu.c

    r7bb6b06 r9a5b556  
    3333 */
    3434
     35#include <arch/asm.h>
    3536#include <cpu.h>
    3637#include <arch.h>
    3738#include <arch/register.h>
    38 #include <arch/asm.h>
    3939#include <print.h>
     40#include <arch/boot/boot.h>
    4041
    4142void cpu_arch_init(void)
    4243{
     44        CPU->arch.clock_frequency = bootinfo.processor.clock_frequency;
    4345}
    4446
     
    9496        }
    9597
    96         printf("cpu%d: manuf=%s, impl=%s, mask=%d\n", CPU->id, manuf, impl, CPU->arch.ver.mask);
     98        printf("cpu%d: manuf=%s, impl=%s, mask=%d (%dMHz)\n",
     99                CPU->id, manuf, impl, CPU->arch.ver.mask, CPU->arch.clock_frequency/1000000);
    97100}
    98101
Note: See TracChangeset for help on using the changeset viewer.