Changes in kernel/generic/include/arch.h [26a9388:128359eb] in mainline
- File:
-
- 1 edited
-
kernel/generic/include/arch.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/arch.h
r26a9388 r128359eb 1 1 /* 2 * Copyright (c) 2025 Jiri Svoboda3 2 * Copyright (c) 2001-2004 Jakub Jermar 4 3 * All rights reserved. … … 49 48 * 50 49 */ 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 #else58 59 50 #define CURRENT \ 60 51 ((current_t *) (((uintptr_t) __builtin_frame_address(0)) & \ 61 52 (~((uintptr_t) STACK_SIZE - 1)))) 62 63 #endif64 53 65 54 #define MAGIC UINT32_C(0xfacefeed) … … 86 75 typedef struct { 87 76 size_t preemption; /**< Preemption disabled counter and flag. */ 88 size_t mutex_locks;89 77 struct thread *thread; /**< Current thread. */ 90 78 struct task *task; /**< Current task. */ … … 117 105 extern void calibrate_delay_loop(void); 118 106 107 extern void reboot(void); 119 108 extern void arch_reboot(void); 120 109 extern void *arch_construct_function(fncptr_t *, void *, void *);
Note:
See TracChangeset
for help on using the changeset viewer.
