Ignore:
Timestamp:
2014-09-02T20:16:21Z (10 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0aee9b4
Parents:
21365c0
Message:

Autogenerate amd64 fibril context_t and its offsets

Generate the userspace context_t structure and its offsets by
autogen.py. Decouple the context definition from the kernel context_t,
because these structures can, and in fact already do, have different
members. Do not share the corresponding common assembly between the
kernel and the userspace.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/arch/amd64/include/libarch/fibril.h

    r21365c0 r4dc7a84  
    3636#define LIBC_amd64_FIBRIL_H_
    3737
    38 #include <sys/types.h>
     38#include <libarch/fibril_context.h>
    3939
    4040/*
     
    5353        } while (0)
    5454
    55 /* We include only registers that must be preserved
    56  * during function call
    57  */
    58 typedef struct {
    59         uint64_t sp;
    60         uint64_t pc;
    61 
    62         uint64_t rbx;
    63         uint64_t rbp;
    64 
    65         uint64_t r12;
    66         uint64_t r13;
    67         uint64_t r14;
    68         uint64_t r15;
    69 
    70         uint64_t tls;
    71 } context_t;
    72 
    7355static inline uintptr_t context_get_fp(context_t *ctx)
    7456{
Note: See TracChangeset for help on using the changeset viewer.