x86/tss: Move I/O bitmap data into a seperate struct
Move the non hardware portion of I/O bitmap data into a seperate struct for readability sake. Originally-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
@@ -374,11 +374,11 @@ static inline void switch_to_bitmap(struct thread_struct *next,
|
||||
* bits permitted, then the copy needs to cover those as
|
||||
* well so they get turned off.
|
||||
*/
|
||||
memcpy(tss->io_bitmap, next->io_bitmap_ptr,
|
||||
max(tss->io_bitmap_prev_max, next->io_bitmap_max));
|
||||
memcpy(tss->io_bitmap.bitmap, next->io_bitmap_ptr,
|
||||
max(tss->io_bitmap.prev_max, next->io_bitmap_max));
|
||||
|
||||
/* Store the new max and set io_bitmap_base valid */
|
||||
tss->io_bitmap_prev_max = next->io_bitmap_max;
|
||||
tss->io_bitmap.prev_max = next->io_bitmap_max;
|
||||
tss->x86_tss.io_bitmap_base = IO_BITMAP_OFFSET_VALID;
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user