Changeset a6d4ceb in mainline for arch/amd64
- Timestamp:
- 2006-04-13T14:27:30Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 963074b3
- Parents:
- 1ace9ea
- Location:
- arch/amd64
- Files:
-
- 1 added
- 4 edited
- 1 moved
-
include/pm.h (modified) (1 diff)
-
include/proc/task.h (added)
-
include/proc/thread.h (moved) (moved from arch/amd64/include/thread.h ) (1 diff)
-
src/amd64.c (modified) (1 diff)
-
src/proc/scheduler.c (modified) (1 diff)
-
src/proc/thread.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
arch/amd64/include/pm.h
r1ace9ea ra6d4ceb 139 139 __u64 reserve3; 140 140 __u16 reserve4; 141 __u16 iomap; 141 __u16 iomap_base; 142 __u8 iomap[0x10000 + 1]; /* 64K + 1 terminating byte */ 142 143 } __attribute__ ((packed)); 143 144 -
arch/amd64/include/proc/thread.h
r1ace9ea ra6d4ceb 30 30 #define __amd64_THREAD_H__ 31 31 32 #define ARCH_THREAD_DATA __native tls; 32 #include <arch/types.h> 33 34 typedef struct { 35 __native tls; 36 } thread_arch_t; 33 37 34 38 #endif -
arch/amd64/src/amd64.c
r1ace9ea ra6d4ceb 174 174 __native sys_tls_set(__native addr) 175 175 { 176 THREAD-> tls = addr;176 THREAD->arch.tls = addr; 177 177 write_msr(AMD_MSR_FS, addr); 178 178 return 0; -
arch/amd64/src/proc/scheduler.c
r1ace9ea ra6d4ceb 48 48 49 49 /* TLS support - set FS to thread local storage */ 50 write_msr(AMD_MSR_FS, THREAD-> tls);50 write_msr(AMD_MSR_FS, THREAD->arch.tls); 51 51 52 52 #ifdef CONFIG_DEBUG_AS_WATCHPOINT -
arch/amd64/src/proc/thread.c
r1ace9ea ra6d4ceb 35 35 void thread_create_arch(thread_t *t) 36 36 { 37 t-> tls = 0;37 t->arch.tls = 0; 38 38 }
Note:
See TracChangeset
for help on using the changeset viewer.
