mirror of
https://github.com/saymrwulf/pulp-runtime.git
synced 2026-05-14 20:48:09 +00:00
Further cleanup.
This commit is contained in:
parent
95a05dcc6d
commit
016a9b5b80
3 changed files with 5 additions and 16 deletions
|
|
@ -25,9 +25,6 @@ L1_DATA char *cluster_stacks;
|
|||
static volatile int cluster_running;
|
||||
static volatile int cluster_retval;
|
||||
|
||||
#ifdef ARCHI_NO_FC
|
||||
extern int main(int argc, const char * const argv[]);
|
||||
#endif
|
||||
|
||||
static void pos_wait_forever()
|
||||
{
|
||||
|
|
@ -54,10 +51,8 @@ void cluster_entry_stub()
|
|||
|
||||
int retval = ((int (*)())cluster_entry)();
|
||||
|
||||
#ifdef ARCHI_NO_FC
|
||||
synch_barrier();
|
||||
#endif
|
||||
|
||||
|
||||
if (hal_core_id() == 0)
|
||||
{
|
||||
cluster_retval = retval;
|
||||
|
|
|
|||
|
|
@ -170,7 +170,7 @@ pe_start:
|
|||
addi a1, a1, 1
|
||||
mul x1, x3, a1
|
||||
add x2, x2, x1
|
||||
j cluster_entry_stub
|
||||
j cluster_entry_stub
|
||||
#endif
|
||||
|
||||
do_cl_boot:
|
||||
|
|
@ -179,8 +179,6 @@ do_cl_boot:
|
|||
la x4, _start
|
||||
sw x4, 0x40(x2)
|
||||
sw x3, 8(x2)
|
||||
li x2, 0x1a109800
|
||||
sw x0, 0(x2)
|
||||
|
||||
loop:
|
||||
li x2, 0x1a109800
|
||||
|
|
|
|||
|
|
@ -58,9 +58,6 @@ void pos_init_start()
|
|||
hal_pmu_bypass_set (ARCHI_REG_FIELD_SET (hal_pmu_bypass_get (), 1, 11, 1) );
|
||||
#endif
|
||||
|
||||
#ifdef ARCHI_NO_FC
|
||||
if(hal_core_id()==0) {
|
||||
#endif
|
||||
pos_soc_init();
|
||||
|
||||
pos_irq_init();
|
||||
|
|
@ -73,7 +70,7 @@ void pos_init_start()
|
|||
// available for constructors, especially to let them declare
|
||||
// callbacks
|
||||
//__rt_utils_init();
|
||||
|
||||
|
||||
pos_allocs_init();
|
||||
|
||||
// Call global and static constructors
|
||||
|
|
@ -88,13 +85,12 @@ void pos_init_start()
|
|||
|
||||
#ifdef ARCHI_NO_FC
|
||||
cluster_start(hal_cluster_id(), main);
|
||||
}
|
||||
#else
|
||||
#endif
|
||||
|
||||
if (!hal_is_fc())
|
||||
{
|
||||
cluster_start(hal_cluster_id(), main);
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue