Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 8627
b: refs/heads/master
c: a0d58c9
h: refs/heads/master
i:
  8625: 4ee8404
  8623: 389218e
v: v3
  • Loading branch information
Andi Kleen authored and Linus Torvalds committed Sep 12, 2005
1 parent ee147f2 commit 854f80d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1209140c3c70aaa32d1a0462d79557f2a44a4ef8
refs/heads/master: a0d58c9741e4ef42f5fbdfb2a6b86f03c6e9092f
2 changes: 1 addition & 1 deletion trunk/arch/x86_64/kernel/init_task.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ EXPORT_SYMBOL(init_task);
* section. Since TSS's are completely CPU-local, we want them
* on exact cacheline boundaries, to eliminate cacheline ping-pong.
*/
DEFINE_PER_CPU(struct tss_struct, init_tss) ____cacheline_maxaligned_in_smp;
DEFINE_PER_CPU(struct tss_struct, init_tss) ____cacheline_maxaligned_in_smp = INIT_TSS;

#define ALIGN_TO_4K __attribute__((section(".data.init_task")))
8 changes: 7 additions & 1 deletion trunk/include/asm-x86_64/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,13 @@ struct thread_struct {
u64 tls_array[GDT_ENTRY_TLS_ENTRIES];
} __attribute__((aligned(16)));

#define INIT_THREAD {}
#define INIT_THREAD { \
.rsp0 = (unsigned long)&init_stack + sizeof(init_stack) \
}

#define INIT_TSS { \
.rsp0 = (unsigned long)&init_stack + sizeof(init_stack) \
}

#define INIT_MMAP \
{ &init_mm, 0, 0, NULL, PAGE_SHARED, VM_READ | VM_WRITE | VM_EXEC, 1, NULL, NULL }
Expand Down

0 comments on commit 854f80d

Please sign in to comment.