Skip to content

Commit 1f4e1de

Browse files
committed
Rename switcher.S to x86/switcher_32.S
lguest uses a "switcher" shim mapped high to bounce between host and guest. As lguest becomes less i386-centric, we separate this code into a subdir. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
1 parent 34b8867 commit 1f4e1de

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

‎drivers/lguest/Makefile‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ obj-$(CONFIG_LGUEST_GUEST) += lguest_bus.o
33

44
# Host requires the other files, which can be a module.
55
obj-$(CONFIG_LGUEST) += lg.o
6-
lg-y := core.o hypercalls.o page_tables.o interrupts_and_traps.o \
7-
segments.o io.o lguest_user.o switcher.o
6+
lg-y = core.o hypercalls.o page_tables.o interrupts_and_traps.o \
7+
segments.o io.o lguest_user.o
8+
9+
lg-$(CONFIG_X86_32) += x86/switcher_32.o
810

911
Preparation Preparation!: PREFIX=P
1012
Guest: PREFIX=G
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
#include <linux/linkage.h>
4949
#include <asm/asm-offsets.h>
5050
#include <asm/page.h>
51-
#include "lg.h"
51+
#include "../lg.h"
5252

5353
// We mark the start of the code to copy
5454
// It's placed in .text tho it's never run here

0 commit comments

Comments
 (0)