Changeset bc1f1c2 in mainline for uspace/lib/libc/arch


Ignore:
Timestamp:
2007-06-28T00:54:12Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
12f91130
Parents:
b9641ee
Message:

Goodbye pseudo threads, welcome fibrils.
The renaming might still be incomplete.

Location:
uspace/lib/libc/arch
Files:
1 added
1 deleted
17 edited
16 moved

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/arch/amd64/Makefile.inc

    rb9641ee rbc1f1c2  
    3434
    3535ARCH_SOURCES += arch/$(ARCH)/src/syscall.S \
    36                 arch/$(ARCH)/src/psthread.S \
     36                arch/$(ARCH)/src/fibril.S \
    3737                arch/$(ARCH)/src/thread.c
    3838
  • uspace/lib/libc/arch/amd64/include/fibril.h

    rb9641ee rbc1f1c2  
    3333 */
    3434
    35 #ifndef LIBC_amd64_PSTHREAD_H_
    36 #define LIBC_amd64_PSTHREAD_H_
     35#ifndef LIBC_amd64_FIBRIL_H_
     36#define LIBC_amd64_FIBRIL_H_
    3737
    3838#include <types.h>
  • uspace/lib/libc/arch/amd64/include/thread.h

    rb9641ee rbc1f1c2  
    4040typedef struct {
    4141        void *self;
    42         void *pst_data;
     42        void *fibril_data;
    4343} tcb_t;
    4444
  • uspace/lib/libc/arch/arm32/Makefile.inc

    rb9641ee rbc1f1c2  
    3737
    3838ARCH_SOURCES += arch/$(ARCH)/src/syscall.c \
    39                 arch/$(ARCH)/src/psthread.S \
     39                arch/$(ARCH)/src/fibril.S \
    4040                arch/$(ARCH)/src/thread.c \
    4141                arch/$(ARCH)/src/eabi.S
  • uspace/lib/libc/arch/arm32/include/fibril.h

    rb9641ee rbc1f1c2  
    3131 */
    3232/** @file
    33  *  @brief psthread related declarations.
     33 *  @brief Fibrils related declarations.
    3434 */
    3535
    36 #ifndef LIBC_arm32_PSTHREAD_H_
    37 #define LIBC_arm32_PSTHREAD_H_
     36#ifndef LIBC_arm32_FIBRIL_H_
     37#define LIBC_arm32_FIBRIL_H_
    3838
    3939#include <types.h>
     
    6464
    6565
    66 /** Thread context.
     66/** Fibril context.
    6767 *
    6868 *  Only registers preserved accross function calls are included. r9 is used
  • uspace/lib/libc/arch/arm32/include/thread.h

    rb9641ee rbc1f1c2  
    5050 */
    5151typedef struct {
    52         /** psthread data. */
    53         void *pst_data;
     52        /** Fibril data. */
     53        void *fibril_data;
    5454} tcb_t;
    5555
  • uspace/lib/libc/arch/ia32/Makefile.inc

    rb9641ee rbc1f1c2  
    3434
    3535ARCH_SOURCES += arch/$(ARCH)/src/syscall.c \
    36                 arch/$(ARCH)/src/psthread.S \
     36                arch/$(ARCH)/src/fibril.S \
    3737                arch/$(ARCH)/src/thread.c
    3838
  • uspace/lib/libc/arch/ia32/include/fibril.h

    rb9641ee rbc1f1c2  
    3333 */
    3434
    35 #ifndef LIBC_ia32_PSTHREAD_H_
    36 #define LIBC_ia32_PSTHREAD_H_
     35#ifndef LIBC_ia32_FIBRIL_H_
     36#define LIBC_ia32_FIBRIL_H_
    3737
    3838#include <types.h>
  • uspace/lib/libc/arch/ia32/include/thread.h

    rb9641ee rbc1f1c2  
    4040typedef struct {
    4141        void *self;
    42         void *pst_data;
     42        void *fibril_data;
    4343} tcb_t;
    4444
     
    5050static inline tcb_t * __tcb_get(void)
    5151{
    52         void * retval;
     52        void *retval;
    5353
    5454        asm ("movl %%gs:0, %0" : "=r"(retval));
  • uspace/lib/libc/arch/ia32/src/fibril.S

    rb9641ee rbc1f1c2  
    4040context_save:
    4141        movl 0(%esp),%eax       # the caller's return %eip
    42         movl 4(%esp),%edx       # address of the kernel_context variable to save context to
     42        movl 4(%esp),%edx       # address of the context variable to save context to
    4343
    4444        movl %esp,0(%edx)       # %esp -> ctx->sp
     
    6464#
    6565context_restore:
    66         movl 4(%esp),%eax       # address of the kernel_context variable to restore context from
     66        movl 4(%esp),%eax       # address of the context variable to restore context from
    6767        movl 0(%eax),%esp       # ctx->sp -> %esp
    6868        movl 4(%eax),%edx       # ctx->pc -> %edx
  • uspace/lib/libc/arch/ia64/Makefile.inc

    rb9641ee rbc1f1c2  
    3737
    3838ARCH_SOURCES += arch/$(ARCH)/src/syscall.S \
    39                 arch/$(ARCH)/src/psthread.S \
     39                arch/$(ARCH)/src/fibril.S \
    4040                arch/$(ARCH)/src/thread.c
    4141
  • uspace/lib/libc/arch/ia64/include/fibril.h

    rb9641ee rbc1f1c2  
    3333 */
    3434
    35 #ifndef LIBC_ia64_PSTHREAD_H_
    36 #define LIBC_ia64_PSTHREAD_H_
     35#ifndef LIBC_ia64_FIBRIL_H_
     36#define LIBC_ia64_FIBRIL_H_
    3737
    3838#include <types.h>
     
    4545 * No need to allocate scratch area.
    4646 */
    47 #define SP_DELTA        (0+ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT))
     47#define SP_DELTA        (0 + ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT))
    4848
    4949#define PFM_MASK        (~0x3fffffffff)
  • uspace/lib/libc/arch/ia64/include/thread.h

    rb9641ee rbc1f1c2  
    3333 */
    3434
    35 #ifndef LIBC_ia64THREAD_H_
    36 #define LIBC_ia64THREAD_H_
     35#ifndef LIBC_ia64_THREAD_H_
     36#define LIBC_ia64_THREAD_H_
    3737
    3838#define THREAD_INITIAL_STACK_PAGES_NO 2
     
    4141typedef struct {
    4242        void *dtv; /* unused in static linking*/
    43         void *pst_data;
     43        void *fibril_data;
    4444} tcb_t;
    4545
  • uspace/lib/libc/arch/mips32/Makefile.inc

    rb9641ee rbc1f1c2  
    4040
    4141ARCH_SOURCES += arch/$(ARCH)/src/syscall.c \
    42         arch/$(ARCH)/src/psthread.S \
     42        arch/$(ARCH)/src/fibril.S \
    4343        arch/$(ARCH)/src/thread.c
    4444
  • uspace/lib/libc/arch/mips32/include/fibril.h

    rb9641ee rbc1f1c2  
    3434 */
    3535
    36 #ifndef LIBC_mips32_PSTHREAD_H_
    37 #define LIBC_mips32_PSTHREAD_H_
     36#ifndef LIBC_mips32_FIBRIL_H_
     37#define LIBC_mips32_FIBRIL_H_
    3838
    3939#include <types.h>
  • uspace/lib/libc/arch/mips32/include/thread.h

    rb9641ee rbc1f1c2  
    3636/* TLS for MIPS is described in http://www.linux-mips.org/wiki/NPTL */
    3737
    38 #ifndef LIBC_mips32THREAD_H_
    39 #define LIBC_mips32THREAD_H_
     38#ifndef LIBC_mips32_THREAD_H_
     39#define LIBC_mips32_THREAD_H_
    4040
    4141/* I did not find any specification (neither MIPS nor PowerPC), but
     
    5454
    5555typedef struct {
    56         void *pst_data;
     56        void *fibril_data;
    5757} tcb_t;
    5858
  • uspace/lib/libc/arch/mips32eb/Makefile.inc

    rb9641ee rbc1f1c2  
    3535
    3636ARCH_SOURCES += arch/$(ARCH)/src/syscall.c \
    37                 arch/$(ARCH)/src/psthread.S \
     37                arch/$(ARCH)/src/fibril.S \
    3838                arch/$(ARCH)/src/thread.c
    3939
  • uspace/lib/libc/arch/ppc32/Makefile.inc

    rb9641ee rbc1f1c2  
    3434
    3535ARCH_SOURCES += arch/$(ARCH)/src/syscall.c \
    36                 arch/$(ARCH)/src/psthread.S \
     36                arch/$(ARCH)/src/fibril.S \
    3737                arch/$(ARCH)/src/thread.c
    3838
  • uspace/lib/libc/arch/ppc32/include/fibril.h

    rb9641ee rbc1f1c2  
    3333 */
    3434
    35 #ifndef LIBC_ppc32_PSTHREAD_H_
    36 #define LIBC_ppc32_PSTHREAD_H_
     35#ifndef LIBC_ppc32_FIBRIL_H_
     36#define LIBC_ppc32_FIBRIL_H_
    3737
    3838#include <types.h>
  • uspace/lib/libc/arch/ppc32/include/thread.h

    rb9641ee rbc1f1c2  
    3939
    4040typedef struct {
    41         void *pst_data;
     41        void *fibril_data;
    4242} tcb_t;
    4343
  • uspace/lib/libc/arch/ppc64/Makefile.inc

    rb9641ee rbc1f1c2  
    3434
    3535ARCH_SOURCES += arch/$(ARCH)/src/syscall.c \
    36                 arch/$(ARCH)/src/psthread.S \
     36                arch/$(ARCH)/src/fibril.S \
    3737                arch/$(ARCH)/src/thread.c
    3838
  • uspace/lib/libc/arch/ppc64/include/fibril.h

    rb9641ee rbc1f1c2  
    3333 */
    3434
    35 #ifndef LIBC_ppc64_PSTHREAD_H_
    36 #define LIBC_ppc64_PSTHREAD_H_
     35#ifndef LIBC_ppc64_FIBRIL_H_
     36#define LIBC_ppc64_FIBRIL_H_
    3737
    3838#include <types.h>
  • uspace/lib/libc/arch/ppc64/include/thread.h

    rb9641ee rbc1f1c2  
    3939
    4040typedef struct {
    41         void *pst_data;
     41        void *fibril_data;
    4242} tcb_t;
    4343
  • uspace/lib/libc/arch/sparc64/Makefile.inc

    rb9641ee rbc1f1c2  
    3333TOOLCHAIN_DIR = /usr/local/sparc64/bin
    3434
    35 ARCH_SOURCES += arch/$(ARCH)/src/psthread.S \
     35ARCH_SOURCES += arch/$(ARCH)/src/fibril.S \
    3636                arch/$(ARCH)/src/thread.c
    3737
  • uspace/lib/libc/arch/sparc64/include/fibril.h

    rb9641ee rbc1f1c2  
    3333 */
    3434
    35 #ifndef LIBC_sparc64_PSTHREAD_H_
    36 #define LIBC_sparc64_PSTHREAD_H_
     35#ifndef LIBC_sparc64_FIBRIL_H_
     36#define LIBC_sparc64_FIBRIL_H_
    3737
    3838#include <libarch/stack.h>
  • uspace/lib/libc/arch/sparc64/include/thread.h

    rb9641ee rbc1f1c2  
    4141typedef struct {
    4242        void *self;
    43         void *pst_data;
     43        void *fibril_data;
    4444} tcb_t;
    4545
Note: See TracChangeset for help on using the changeset viewer.