L4Re Operating System Framework
Interface and Usage Documentation
Loading...
Searching...
No Matches
thread.h
1/*
2 * Copyright (C) 2026 Kernkonzept GmbH.
3 * Author(s): Jan Klötzke <jan.kloetzke@kernkonzept.com>
4 * Frank Mehnert <frank.mehnert@kernkonzept.com>
5 *
6 * License: see LICENSE.spdx (in this directory or the directories above)
7 */
8#pragma once
9
10/* Similar to signal handler: Align stack pointer and skip the red zone. */
11#define L4UTIL_THREAD_CXX_FUNC_IMPL_INTERRUPT_STUB(from_asm_name) \
12 "sub $128, %rsp \n" \
13 "and $~0xf, %rsp \n" \
14 "cld \n" \
15 "call " L4_stringify(from_asm_name) "\n"