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