arch: adjust idle stack offset to reserve space of stack info
Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
parent
6576306bca
commit
6e6eecaa73
@ -34,6 +34,7 @@
|
|||||||
#include <nuttx/kmalloc.h>
|
#include <nuttx/kmalloc.h>
|
||||||
#include <nuttx/sched.h>
|
#include <nuttx/sched.h>
|
||||||
#include <nuttx/sched_note.h>
|
#include <nuttx/sched_note.h>
|
||||||
|
#include <nuttx/tls.h>
|
||||||
|
|
||||||
#include "group/group.h"
|
#include "group/group.h"
|
||||||
#include "sched/sched.h"
|
#include "sched/sched.h"
|
||||||
@ -131,6 +132,7 @@ int nx_smp_start(void)
|
|||||||
/* Initialize the processor-specific portion of the TCB */
|
/* Initialize the processor-specific portion of the TCB */
|
||||||
|
|
||||||
up_initial_state(tcb);
|
up_initial_state(tcb);
|
||||||
|
up_stack_frame(tcb, sizeof(struct task_info_s));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Then start all of the other CPUs after we have completed the memory
|
/* Then start all of the other CPUs after we have completed the memory
|
||||||
|
@ -44,6 +44,7 @@
|
|||||||
#include <nuttx/syslog/syslog.h>
|
#include <nuttx/syslog/syslog.h>
|
||||||
#include <nuttx/binfmt/binfmt.h>
|
#include <nuttx/binfmt/binfmt.h>
|
||||||
#include <nuttx/init.h>
|
#include <nuttx/init.h>
|
||||||
|
#include <nuttx/tls.h>
|
||||||
|
|
||||||
#include "sched/sched.h"
|
#include "sched/sched.h"
|
||||||
#include "signal/signal.h"
|
#include "signal/signal.h"
|
||||||
@ -517,6 +518,7 @@ void nx_start(void)
|
|||||||
if (cpu == 0)
|
if (cpu == 0)
|
||||||
{
|
{
|
||||||
up_initial_state(&g_idletcb[cpu].cmn);
|
up_initial_state(&g_idletcb[cpu].cmn);
|
||||||
|
up_stack_frame(&g_idletcb[cpu].cmn, sizeof(struct task_info_s));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user