Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/arch.h

    r26a9388 r128359eb  
    11/*
    2  * Copyright (c) 2025 Jiri Svoboda
    32 * Copyright (c) 2001-2004 Jakub Jermar
    43 * All rights reserved.
     
    4948 *
    5049 */
    51 #if __has_builtin(__builtin_stack_address)
    52 
    53 #define CURRENT \
    54         ((current_t *) (((uintptr_t) __builtin_stack_address()) & \
    55             (~((uintptr_t) STACK_SIZE - 1))))
    56 
    57 #else
    58 
    5950#define CURRENT \
    6051        ((current_t *) (((uintptr_t) __builtin_frame_address(0)) & \
    6152            (~((uintptr_t) STACK_SIZE - 1))))
    62 
    63 #endif
    6453
    6554#define MAGIC  UINT32_C(0xfacefeed)
     
    8675typedef struct {
    8776        size_t preemption;      /**< Preemption disabled counter and flag. */
    88         size_t mutex_locks;
    8977        struct thread *thread;  /**< Current thread. */
    9078        struct task *task;      /**< Current task. */
     
    117105extern void calibrate_delay_loop(void);
    118106
     107extern void reboot(void);
    119108extern void arch_reboot(void);
    120109extern void *arch_construct_function(fncptr_t *, void *, void *);
Note: See TracChangeset for help on using the changeset viewer.