Subversion Repositories HelenOS

Rev

Rev 3664 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3664 Rev 3742
Line 62... Line 62...
62
 
62
 
63
/**
63
/**
64
 * Starts all CPUs represented by following siblings of the given node,
64
 * Starts all CPUs represented by following siblings of the given node,
65
 * except for the current CPU.
65
 * except for the current CPU.
66
 *
66
 *
67
 * @param child the first child of the OFW tree node whose children represent
67
 * @param child     The first child of the OFW tree node whose children
68
 *      CPUs to be woken up
68
 *          represent CPUs to be woken up.
69
 * @param current_mid   MID of the current CPU, the current CPU will
69
 * @param current_mid   MID of the current CPU, the current CPU will
70
 *          (of course) not be woken up
70
 *          (of course) not be woken up.
71
 * @return  number of CPUs which have the same parent node as "child"
71
 * @return      Number of CPUs which have the same parent node as
-
 
72
 *          "child".
72
 */
73
 */
73
static int wake_cpus_in_node(phandle child, uint64_t current_mid)
74
static int wake_cpus_in_node(phandle child, uint64_t current_mid)
74
{
75
{
75
    int cpus;
76
    int cpus;
76
    char type_name[BUF_SIZE];
77
    char type_name[BUF_SIZE];
Line 158... Line 159...
158
   
159
   
159
}
160
}
160
 
161
 
161
/** Get physical memory starting address.
162
/** Get physical memory starting address.
162
 *
163
 *
163
 * @param start Pointer to variable where the physical memory starting
164
 * @param start     Pointer to variable where the physical memory starting
164
 *      address will be stored.
165
 *          address will be stored.
165
 *
166
 *
166
 * @return Non-zero on succes, zero on failure.
167
 * @return      Non-zero on succes, zero on failure.
167
 */
168
 */
168
int ofw_get_physmem_start(uintptr_t *start)
169
int ofw_get_physmem_start(uintptr_t *start)
169
{
170
{
170
    uint32_t memreg[4];
171
    uint32_t memreg[4];
171
 
172