source: mainline/uspace/lib/c/include/context.h@ cd1e3fc0

Last change on this file since cd1e3fc0 was d7f7a4a, checked in by Jiří Zárevúcky <zarevucky.jiri@…>, 3 years ago

Replace some license headers with SPDX identifier

Headers are replaced using tools/transorm-copyright.sh only
when it can be matched verbatim with the license header used
throughout most of the codebase.

  • Property mode set to 100644
File size: 634 bytes
Line 
1/*
2 * SPDX-FileCopyrightText: 2018 CZ.NIC, z.s.p.o.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef _LIBC_CONTEXT_H_
8#define _LIBC_CONTEXT_H_
9
10#include <_bits/size_t.h>
11#include <libarch/fibril_context.h>
12
13typedef __context_t context_t;
14
15/* Context initialization data. */
16typedef struct {
17 void (*fn)(void);
18 void *stack_base;
19 size_t stack_size;
20 void *tls;
21} context_create_t;
22
23extern void context_swap(context_t *self, context_t *other);
24extern void context_create(context_t *context, const context_create_t *arg);
25extern uintptr_t context_get_fp(context_t *ctx);
26extern uintptr_t context_get_pc(context_t *ctx);
27
28#endif
Note: See TracBrowser for help on using the repository browser.