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


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/ia32
Files:
2 edited
2 moved

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.