Changeset db3c8834 in mainline for uspace/lib/c/arch/amd64/include/libarch/fibril_context.h
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/arch/amd64/include/libarch/fibril_context.h
r5af6cf3d rdb3c8834 1 /* Copyright (c) 2014 Jakub Jermar 2 * All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * - Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. 10 * - Redistributions in binary form must reproduce the above copyright 11 * notice, this list of conditions and the following disclaimer in the 12 * documentation and/or other materials provided with the distribution. 13 * - The name of the author may not be used to endorse or promote products 14 * derived from this software without specific prior written permission. 15 * 16 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 17 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 18 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 19 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 20 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 21 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 */ 1 27 2 /***************************************************************************** 3 * AUTO-GENERATED FILE, DO NOT EDIT!!! 4 * Generated by: tools/autogen.py 5 * Generated from: arch/amd64/include/libarch/fibril_context.ag 6 *****************************************************************************/ 28 #pragma once 29 #include <stdint.h> 7 30 8 #ifndef AUTOGEN_CONTEXT_H9 #define AUTOGEN_CONTEXT_H10 11 #ifndef __ASM__12 #include <stddef.h>13 #include <stdint.h>14 #endif15 16 #define CONTEXT_OFFSET_SP 017 #define CONTEXT_SIZE_SP 818 #define CONTEXT_OFFSET_PC 819 #define CONTEXT_SIZE_PC 820 #define CONTEXT_OFFSET_RBX 1621 #define CONTEXT_SIZE_RBX 822 #define CONTEXT_OFFSET_RBP 2423 #define CONTEXT_SIZE_RBP 824 #define CONTEXT_OFFSET_R12 3225 #define CONTEXT_SIZE_R12 826 #define CONTEXT_OFFSET_R13 4027 #define CONTEXT_SIZE_R13 828 #define CONTEXT_OFFSET_R14 4829 #define CONTEXT_SIZE_R14 830 #define CONTEXT_OFFSET_R15 5631 #define CONTEXT_SIZE_R15 832 #define CONTEXT_OFFSET_TLS 6433 #define CONTEXT_SIZE_TLS 834 #define CONTEXT_SIZE 7235 36 #ifndef __ASM__37 31 typedef struct context { 32 /* We include only registers that must be preserved 33 * during function call. 34 */ 38 35 uint64_t sp; 39 36 uint64_t pc; … … 46 43 uint64_t tls; 47 44 } context_t; 48 #endif49 45 50 #endif51
Note:
See TracChangeset
for help on using the changeset viewer.