Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 336b739 in mainline


Ignore:
Timestamp:
2018-12-18T20:15:13Z (3 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
4a33845
Parents:
485281e
Message:

Set cpu_mode in context_set()

Leaving the field zeroed-out from thread_create() results in boot
failures on some ARM boards.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/arm32/include/arch/context.h

    r485281e r336b739  
    4040#include <arch/stack.h>
    4141#include <arch/context_struct.h>
     42#include <arch/regutils.h>
    4243
    4344/* Put one item onto the stack to support get_stack_base() and align it up. */
     
    4950                (c)->sp = ((uintptr_t) (stack)) + (size) - SP_DELTA; \
    5051                (c)->fp = 0; \
     52                (c)->cpu_mode = SUPERVISOR_MODE; \
    5153        } while (0)
    5254
Note: See TracChangeset for help on using the changeset viewer.