Changeset 8e7c9fe in mainline for kernel/arch/ppc32/src/ppc32.c


Ignore:
Timestamp:
2014-09-12T03:45:25Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c53b58e
Parents:
3eb0c85 (diff), 105d8d6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

merge mainline changes

most usb changes were reverted. blink and usbmass were fixed
known problems:
ehci won't initialize
usbmast asserts on unmount (happens on mainline too)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ppc32/src/ppc32.c

    r3eb0c85 r8e7c9fe  
    4747#include <mm/page.h>
    4848#include <mm/km.h>
     49#include <time/clock.h>
    4950#include <abi/proc/uarg.h>
    5051#include <console/console.h>
     
    99100        interrupt_init();
    100101       
     102        ofw_tree_node_t *cpus_node;
     103        ofw_tree_node_t *cpu_node;
     104        ofw_tree_property_t *freq_prop;
     105
     106        cpus_node = ofw_tree_lookup("/cpus");
     107        if (!cpus_node)
     108                panic("Could not find cpus node.");
     109
     110        cpu_node = cpus_node->child;
     111        if (!cpu_node)
     112                panic("Could not find first cpu.");     
     113
     114        freq_prop = ofw_tree_getprop(cpu_node, "timebase-frequency");
     115        if (!freq_prop)
     116                panic("Could not get frequency property.");
     117
     118        uint32_t freq;
     119        freq = *((uint32_t *) freq_prop->value);
     120
    101121        /* Start decrementer */
    102         start_decrementer();
     122        decrementer_start(freq / HZ);
    103123}
    104124
Note: See TracChangeset for help on using the changeset viewer.