Changeset ed7e057 in mainline for kernel/generic/src/proc/thread.c
- Timestamp:
- 2024-01-16T15:46:47Z (16 months ago)
- Branches:
- master
- Children:
- 29029ac0, a5b5f17
- Parents:
- 4ed7870
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2024-01-15 20:09:30)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2024-01-16 15:46:47)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/thread.c
r4ed7870 red7e057 60 60 #include <arch/interrupt.h> 61 61 #include <smp/ipi.h> 62 #include <arch/faddr.h>63 62 #include <atomic.h> 64 63 #include <memw.h> … … 310 309 irq_spinlock_unlock(&tidlock, true); 311 310 312 memset(&thread->saved_context, 0, sizeof(thread->saved_context)); 313 context_set(&thread->saved_context, FADDR(cushion), 314 (uintptr_t) thread->kstack, STACK_SIZE); 311 context_create(&thread->saved_context, cushion, thread->kstack, STACK_SIZE); 315 312 316 313 current_initialize((current_t *) thread->kstack);
Note:
See TracChangeset
for help on using the changeset viewer.