Ignore:
Timestamp:
2018-03-06T18:09:19Z (7 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Children:
95aed62
Parents:
5af6cf3d
Message:

amd64

File:
1 edited

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 */
    127
    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>
    730
    8 #ifndef AUTOGEN_CONTEXT_H
    9 #define AUTOGEN_CONTEXT_H
    10 
    11 #ifndef __ASM__
    12 #include <stddef.h>
    13 #include <stdint.h>
    14 #endif
    15 
    16 #define CONTEXT_OFFSET_SP 0
    17 #define CONTEXT_SIZE_SP 8
    18 #define CONTEXT_OFFSET_PC 8
    19 #define CONTEXT_SIZE_PC 8
    20 #define CONTEXT_OFFSET_RBX 16
    21 #define CONTEXT_SIZE_RBX 8
    22 #define CONTEXT_OFFSET_RBP 24
    23 #define CONTEXT_SIZE_RBP 8
    24 #define CONTEXT_OFFSET_R12 32
    25 #define CONTEXT_SIZE_R12 8
    26 #define CONTEXT_OFFSET_R13 40
    27 #define CONTEXT_SIZE_R13 8
    28 #define CONTEXT_OFFSET_R14 48
    29 #define CONTEXT_SIZE_R14 8
    30 #define CONTEXT_OFFSET_R15 56
    31 #define CONTEXT_SIZE_R15 8
    32 #define CONTEXT_OFFSET_TLS 64
    33 #define CONTEXT_SIZE_TLS 8
    34 #define CONTEXT_SIZE 72
    35 
    36 #ifndef __ASM__
    3731typedef struct context {
     32        /* We include only registers that must be preserved
     33         * during function call.
     34         */
    3835        uint64_t sp;
    3936        uint64_t pc;
     
    4643        uint64_t tls;
    4744} context_t;
    48 #endif
    4945
    50 #endif
    51        
Note: See TracChangeset for help on using the changeset viewer.