diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2007-05-02 13:27:13 -0400 |
---|---|---|
committer | Andi Kleen <andi@basil.nowhere.org> | 2007-05-02 13:27:13 -0400 |
commit | a75c54f933bd8db9f4a609bd128663c179b3e6a1 (patch) | |
tree | 8b7dd866185bec34146eb537f057b6b496c78443 /arch/i386/kernel/process.c | |
parent | 82d1bb725e128c97b362a4b33fcbfff08fdaaa5a (diff) |
[PATCH] i386: i386 separate hardware-defined TSS from Linux additions
On Thu, 2007-03-29 at 13:16 +0200, Andi Kleen wrote:
> Please clean it up properly with two structs.
Not sure about this, now I've done it. Running it here.
If you like it, I can do x86-64 as well.
==
lguest defines its own TSS struct because the "struct tss_struct"
contains linux-specific additions. Andi asked me to split the struct
in processor.h.
Unfortunately it makes usage a little awkward.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Andi Kleen <ak@suse.de>
Diffstat (limited to 'arch/i386/kernel/process.c')
-rw-r--r-- | arch/i386/kernel/process.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/i386/kernel/process.c b/arch/i386/kernel/process.c index 7e8e129b3d7d..5fb9524c6f4b 100644 --- a/arch/i386/kernel/process.c +++ b/arch/i386/kernel/process.c | |||
@@ -375,7 +375,7 @@ void exit_thread(void) | |||
375 | t->io_bitmap_max = 0; | 375 | t->io_bitmap_max = 0; |
376 | tss->io_bitmap_owner = NULL; | 376 | tss->io_bitmap_owner = NULL; |
377 | tss->io_bitmap_max = 0; | 377 | tss->io_bitmap_max = 0; |
378 | tss->io_bitmap_base = INVALID_IO_BITMAP_OFFSET; | 378 | tss->x86_tss.io_bitmap_base = INVALID_IO_BITMAP_OFFSET; |
379 | put_cpu(); | 379 | put_cpu(); |
380 | } | 380 | } |
381 | } | 381 | } |
@@ -554,7 +554,7 @@ static noinline void __switch_to_xtra(struct task_struct *next_p, | |||
554 | * Disable the bitmap via an invalid offset. We still cache | 554 | * Disable the bitmap via an invalid offset. We still cache |
555 | * the previous bitmap owner and the IO bitmap contents: | 555 | * the previous bitmap owner and the IO bitmap contents: |
556 | */ | 556 | */ |
557 | tss->io_bitmap_base = INVALID_IO_BITMAP_OFFSET; | 557 | tss->x86_tss.io_bitmap_base = INVALID_IO_BITMAP_OFFSET; |
558 | return; | 558 | return; |
559 | } | 559 | } |
560 | 560 | ||
@@ -564,7 +564,7 @@ static noinline void __switch_to_xtra(struct task_struct *next_p, | |||
564 | * matches the next task, we dont have to do anything but | 564 | * matches the next task, we dont have to do anything but |
565 | * to set a valid offset in the TSS: | 565 | * to set a valid offset in the TSS: |
566 | */ | 566 | */ |
567 | tss->io_bitmap_base = IO_BITMAP_OFFSET; | 567 | tss->x86_tss.io_bitmap_base = IO_BITMAP_OFFSET; |
568 | return; | 568 | return; |
569 | } | 569 | } |
570 | /* | 570 | /* |
@@ -576,7 +576,7 @@ static noinline void __switch_to_xtra(struct task_struct *next_p, | |||
576 | * redundant copies when the currently switched task does not | 576 | * redundant copies when the currently switched task does not |
577 | * perform any I/O during its timeslice. | 577 | * perform any I/O during its timeslice. |
578 | */ | 578 | */ |
579 | tss->io_bitmap_base = INVALID_IO_BITMAP_OFFSET_LAZY; | 579 | tss->x86_tss.io_bitmap_base = INVALID_IO_BITMAP_OFFSET_LAZY; |
580 | } | 580 | } |
581 | 581 | ||
582 | /* | 582 | /* |