Subversion Repositories HelenOS

Rev

Rev 3766 | Rev 3934 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3766 Rev 3782
Line 71... Line 71...
71
        FW_OFFSET);
71
        FW_OFFSET);
72
}
72
}
73
 
73
 
74
static void ipi_broadcast_arch_all(int ipi)
74
static void ipi_broadcast_arch_all(int ipi)
75
{
75
{
76
    int id,eid;
76
    int id, eid;
77
    int myid, myeid;
77
    int myid, myeid;
78
   
78
   
79
    myid = ia64_get_cpu_id();
79
    myid = ia64_get_cpu_id();
80
    myeid = ia64_get_cpu_eid();
80
    myeid = ia64_get_cpu_eid();
81
   
81
   
Line 85... Line 85...
85
                ipi_send_ipi(id, eid, ipi);
85
                ipi_send_ipi(id, eid, ipi);
86
}
86
}
87
 
87
 
88
void ipi_broadcast_arch(int ipi )
88
void ipi_broadcast_arch(int ipi )
89
{
89
{
90
    int id,eid;
90
    int id, eid;
91
    int myid,myeid;
91
    int myid, myeid;
92
   
92
   
93
    myid = ia64_get_cpu_id();
93
    myid = ia64_get_cpu_id();
94
    myeid = ia64_get_cpu_eid();
94
    myeid = ia64_get_cpu_eid();
95
 
95
 
96
    for (id = 0; id < 256; id++)
96
    for (id = 0; id < 256; id++)
Line 104... Line 104...
104
{
104
{
105
    if (!bootinfo->hello_configured)
105
    if (!bootinfo->hello_configured)
106
        return;
106
        return;
107
   
107
   
108
    /*
108
    /*
109
     * If we have not system prepared by hello, we are not able to start
109
     * If we have not got system prepared by hello, we are not able to start
110
     * AP's. This means we are running on a simulator.
110
     * AP's. This means we are running on a simulator.
111
     */
111
     */
112
   
112
   
113
    sapic_init();
113
    sapic_init();
114
    ipi_broadcast_arch_all(bootinfo->wakeup_intno);
114
    ipi_broadcast_arch_all(bootinfo->wakeup_intno);
Line 127... Line 127...
127
            }
127
            }
128
}
128
}
129
 
129
 
130
void kmp(void *arg __attribute__((unused)))
130
void kmp(void *arg __attribute__((unused)))
131
{
131
{
132
    int id,eid;
132
    int id, eid;
133
    int myid, myeid;
133
    int myid, myeid;
134
   
134
   
135
    myid = ia64_get_cpu_id();
135
    myid = ia64_get_cpu_id();
136
    myeid = ia64_get_cpu_eid();
136
    myeid = ia64_get_cpu_eid();
137
 
137
 
Line 163... Line 163...
163
                }
163
                }
164
}
164
}
165
 
165
 
166
#endif
166
#endif
167
 
167
 
168
 
-
 
169
#ifndef CONFIG_SMP
-
 
170
 
-
 
171
/* This is just a hack for linking with assembler - may be removed in future. */
-
 
172
void main_ap(void);
-
 
173
void main_ap(void)
-
 
174
{
-
 
175
    while(1)
-
 
176
        ;
-
 
177
}
-
 
178
 
-
 
179
#endif
-
 
180
 
-
 
181
/** @}
168
/** @}
182
 */
169
 */
183
 
170