Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset fb41d44 in mainline


Ignore:
Timestamp:
2014-09-03T19:39:34Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
41f9802
Parents:
6a8ddd37
Message:

Autogenerate arm32 fibril context_t and its offsets.

Location:
uspace/lib/c/arch/arm32
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/arch/arm32/Makefile.inc

    r6a8ddd37 rfb41d44  
    4040
    4141.PRECIOUS: arch/$(UARCH)/src/entry.o
     42
     43ARCH_AUTOGENS_AG = \
     44        arch/$(UARCH)/include/libarch/fibril_context.ag
     45
  • uspace/lib/c/arch/arm32/include/libarch/fibril.h

    r6a8ddd37 rfb41d44  
    4040#include <align.h>
    4141#include <thread.h>
     42#include <libarch/fibril_context.h>
    4243
    4344/** Size of a stack item */
     
    6667        } while (0)
    6768
    68 /** Fibril context.
    69  *
    70  *  Only registers preserved accross function calls are included. r9 is used
    71  *  to store a TLS address. -ffixed-r9 gcc forces gcc not to use this
    72  *  register. -mtp=soft forces gcc to use #__aeabi_read_tp to obtain
    73  *  TLS address.
    74  */
    75 typedef struct  {
    76         uint32_t sp;
    77         uint32_t pc;
    78         uint32_t r4;
    79         uint32_t r5;
    80         uint32_t r6;
    81         uint32_t r7;
    82         uint32_t r8;
    83         uint32_t tls;   /* r9 */
    84         uint32_t r10;
    85         uint32_t fp;    /* r11 */
    86 } context_t;
    87 
    8869static inline uintptr_t context_get_fp(context_t *ctx)
    8970{
Note: See TracChangeset for help on using the changeset viewer.