Changeset a6d4ceb in mainline for arch/ia32


Ignore:
Timestamp:
2006-04-13T14:27:30Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
963074b3
Parents:
1ace9ea
Message:

Move arch/thread.h to arch/proc/thread.h on all architectures.
Replace ARCH_THREAD_DATA with new thread_arch_t arch on all architectures.
Similarily, add task_arch_t arch on all architectures.
On amd64 and ia32, grow the TSS segment by 64K + 1B to support IO port
permission bitmap. For the same reason, define per task IO port permission bitmaps
on ia32 and amd64.

Location:
arch/ia32
Files:
1 added
4 edited
1 moved

Legend:

Unmodified
Added
Removed
  • arch/ia32/include/pm.h

    r1ace9ea ra6d4ceb  
    129129        unsigned : 16;
    130130        unsigned : 16;
    131         __u16 io_map_base;
     131        __u16 iomap_base;
     132        __u8 iomap[0x10000+1];  /* 64K + 1 terminating byte */
    132133} __attribute__ ((packed));
    133134
  • arch/ia32/include/proc/thread.h

    r1ace9ea ra6d4ceb  
    3030#define __ia32_THREAD_H__
    3131
    32 #define ARCH_THREAD_DATA __native tls;
     32#include <arch/types.h>
     33
     34typedef struct {
     35        __native tls;
     36} thread_arch_t;
    3337
    3438#endif
  • arch/ia32/src/ia32.c

    r1ace9ea ra6d4ceb  
    117117__native sys_tls_set(__native addr)
    118118{
    119         THREAD->tls = addr;
     119        THREAD->arch.tls = addr;
    120120        set_tls_desc(addr);
    121121
  • arch/ia32/src/proc/scheduler.c

    r1ace9ea ra6d4ceb  
    4141
    4242        /* Set up TLS in GS register */
    43         set_tls_desc(THREAD->tls);
     43        set_tls_desc(THREAD->arch.tls);
    4444
    4545#ifdef CONFIG_DEBUG_AS_WATCHPOINT
  • arch/ia32/src/proc/thread.c

    r1ace9ea ra6d4ceb  
    3535void thread_create_arch(thread_t *t)
    3636{
    37         t->tls = 0;
     37        t->arch.tls = 0;
    3838}
Note: See TracChangeset for help on using the changeset viewer.