aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJarkko Sakkinen <jarkko.sakkinen@intel.com>2012-05-08 14:22:42 -0400
committerH. Peter Anvin <hpa@linux.intel.com>2012-05-08 14:48:45 -0400
commitc4845474a01f699966272536e8416222e3f2d2cb (patch)
tree8d590924f5ab164981368822f7534f42eaabae30
parentb429dbf6e866bd6dadb56fae66f61f611cde57ff (diff)
x86, realmode: flattened rm hierachy
Simplified hierarchy under rm directory to a flat directory because it is not anymore really justified to have own directory for wakeup code. It only adds more complexity. Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@intel.com> Link: http://lkml.kernel.org/r/1336501366-28617-20-git-send-email-jarkko.sakkinen@intel.com Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
-rw-r--r--arch/x86/kernel/acpi/sleep.c2
-rw-r--r--arch/x86/realmode/rm/Makefile20
-rw-r--r--arch/x86/realmode/rm/bioscall.S1
-rw-r--r--arch/x86/realmode/rm/copy.S1
-rw-r--r--arch/x86/realmode/rm/regs.c1
-rw-r--r--arch/x86/realmode/rm/video-bios.c1
-rw-r--r--arch/x86/realmode/rm/video-mode.c1
-rw-r--r--arch/x86/realmode/rm/video-vesa.c1
-rw-r--r--arch/x86/realmode/rm/video-vga.c1
-rw-r--r--arch/x86/realmode/rm/wakemain.c (renamed from arch/x86/realmode/rm/wakeup/wakemain.c)0
-rw-r--r--arch/x86/realmode/rm/wakeup.h (renamed from arch/x86/realmode/rm/wakeup/wakeup.h)0
-rw-r--r--arch/x86/realmode/rm/wakeup/.gitignore3
-rw-r--r--arch/x86/realmode/rm/wakeup/Makefile33
-rw-r--r--arch/x86/realmode/rm/wakeup/bioscall.S1
-rw-r--r--arch/x86/realmode/rm/wakeup/copy.S1
-rw-r--r--arch/x86/realmode/rm/wakeup/regs.c1
-rw-r--r--arch/x86/realmode/rm/wakeup/video-bios.c1
-rw-r--r--arch/x86/realmode/rm/wakeup/video-mode.c1
-rw-r--r--arch/x86/realmode/rm/wakeup/video-vesa.c1
-rw-r--r--arch/x86/realmode/rm/wakeup/video-vga.c1
-rw-r--r--arch/x86/realmode/rm/wakeup_asm.S (renamed from arch/x86/realmode/rm/wakeup/wakeup_asm.S)2
21 files changed, 22 insertions, 52 deletions
diff --git a/arch/x86/kernel/acpi/sleep.c b/arch/x86/kernel/acpi/sleep.c
index 6ca3f54ebe7d..95bf99de9058 100644
--- a/arch/x86/kernel/acpi/sleep.c
+++ b/arch/x86/kernel/acpi/sleep.c
@@ -16,7 +16,7 @@
16#include <asm/cacheflush.h> 16#include <asm/cacheflush.h>
17#include <asm/realmode.h> 17#include <asm/realmode.h>
18 18
19#include "../../realmode/rm/wakeup/wakeup.h" 19#include "../../realmode/rm/wakeup.h"
20#include "sleep.h" 20#include "sleep.h"
21 21
22unsigned long acpi_realmode_flags; 22unsigned long acpi_realmode_flags;
diff --git a/arch/x86/realmode/rm/Makefile b/arch/x86/realmode/rm/Makefile
index c2c27a41ab8f..fc8854b09dfa 100644
--- a/arch/x86/realmode/rm/Makefile
+++ b/arch/x86/realmode/rm/Makefile
@@ -7,21 +7,26 @@
7# 7#
8# 8#
9 9
10subdir- := wakeup
11
12always := realmode.bin 10always := realmode.bin
13 11
14realmode-y += header.o 12realmode-y += header.o
15realmode-y += trampoline_$(BITS).o 13realmode-y += trampoline_$(BITS).o
16realmode-y += stack.o 14realmode-y += stack.o
17realmode-$(CONFIG_X86_32) += reboot_32.o 15realmode-$(CONFIG_X86_32) += reboot_32.o
18realmode-$(CONFIG_ACPI_SLEEP) += wakeup/wakeup.o 16realmode-$(CONFIG_ACPI_SLEEP) += $(wakeup-objs)
17
18wakeup-objs := wakeup_asm.o wakemain.o video-mode.o
19wakeup-objs += copy.o bioscall.o regs.o
20# The link order of the video-*.o modules can matter. In particular,
21# video-vga.o *must* be listed first, followed by video-vesa.o.
22# Hardware-specific drivers should follow in the order they should be
23# probed, and video-bios.o should typically be last.
24wakeup-objs += video-vga.o
25wakeup-objs += video-vesa.o
26wakeup-objs += video-bios.o
19 27
20targets += $(realmode-y) 28targets += $(realmode-y)
21 29
22$(obj)/wakeup/wakeup.o: FORCE
23 $(Q)$(MAKE) $(build)=$(obj)/wakeup $@
24
25REALMODE_OBJS = $(addprefix $(obj)/,$(realmode-y)) 30REALMODE_OBJS = $(addprefix $(obj)/,$(realmode-y))
26 31
27sed-pasyms := -n -r -e 's/^([0-9a-fA-F]+) [ABCDGRSTVW] (.+)$$/pa_\2 = \2;/p' 32sed-pasyms := -n -r -e 's/^([0-9a-fA-F]+) [ABCDGRSTVW] (.+)$$/pa_\2 = \2;/p'
@@ -55,7 +60,8 @@ $(obj)/realmode.relocs: $(obj)/realmode.elf FORCE
55 60
56# How to compile the 16-bit code. Note we always compile for -march=i386, 61# How to compile the 16-bit code. Note we always compile for -march=i386,
57# that way we can complain to the user if the CPU is insufficient. 62# that way we can complain to the user if the CPU is insufficient.
58KBUILD_CFLAGS := $(LINUXINCLUDE) -m32 -g -Os -D_SETUP -D__KERNEL__ \ 63KBUILD_CFLAGS := $(LINUXINCLUDE) -m32 -g -Os -D_SETUP -D__KERNEL__ -D_WAKEUP \
64 -I$(srctree)/arch/x86/boot \
59 -DDISABLE_BRANCH_PROFILING \ 65 -DDISABLE_BRANCH_PROFILING \
60 -Wall -Wstrict-prototypes \ 66 -Wall -Wstrict-prototypes \
61 -march=i386 -mregparm=3 \ 67 -march=i386 -mregparm=3 \
diff --git a/arch/x86/realmode/rm/bioscall.S b/arch/x86/realmode/rm/bioscall.S
new file mode 100644
index 000000000000..16162d197918
--- /dev/null
+++ b/arch/x86/realmode/rm/bioscall.S
@@ -0,0 +1 @@
#include "../../boot/bioscall.S"
diff --git a/arch/x86/realmode/rm/copy.S b/arch/x86/realmode/rm/copy.S
new file mode 100644
index 000000000000..b785e6f38fdd
--- /dev/null
+++ b/arch/x86/realmode/rm/copy.S
@@ -0,0 +1 @@
#include "../../boot/copy.S"
diff --git a/arch/x86/realmode/rm/regs.c b/arch/x86/realmode/rm/regs.c
new file mode 100644
index 000000000000..fbb15b9f9ca9
--- /dev/null
+++ b/arch/x86/realmode/rm/regs.c
@@ -0,0 +1 @@
#include "../../boot/regs.c"
diff --git a/arch/x86/realmode/rm/video-bios.c b/arch/x86/realmode/rm/video-bios.c
new file mode 100644
index 000000000000..848b25aaf11b
--- /dev/null
+++ b/arch/x86/realmode/rm/video-bios.c
@@ -0,0 +1 @@
#include "../../boot/video-bios.c"
diff --git a/arch/x86/realmode/rm/video-mode.c b/arch/x86/realmode/rm/video-mode.c
new file mode 100644
index 000000000000..2a98b7e2368b
--- /dev/null
+++ b/arch/x86/realmode/rm/video-mode.c
@@ -0,0 +1 @@
#include "../../boot/video-mode.c"
diff --git a/arch/x86/realmode/rm/video-vesa.c b/arch/x86/realmode/rm/video-vesa.c
new file mode 100644
index 000000000000..413edddb51e5
--- /dev/null
+++ b/arch/x86/realmode/rm/video-vesa.c
@@ -0,0 +1 @@
#include "../../boot/video-vesa.c"
diff --git a/arch/x86/realmode/rm/video-vga.c b/arch/x86/realmode/rm/video-vga.c
new file mode 100644
index 000000000000..3085f5c9d288
--- /dev/null
+++ b/arch/x86/realmode/rm/video-vga.c
@@ -0,0 +1 @@
#include "../../boot/video-vga.c"
diff --git a/arch/x86/realmode/rm/wakeup/wakemain.c b/arch/x86/realmode/rm/wakemain.c
index 91405d515ec6..91405d515ec6 100644
--- a/arch/x86/realmode/rm/wakeup/wakemain.c
+++ b/arch/x86/realmode/rm/wakemain.c
diff --git a/arch/x86/realmode/rm/wakeup/wakeup.h b/arch/x86/realmode/rm/wakeup.h
index 2dfaf06b8af1..2dfaf06b8af1 100644
--- a/arch/x86/realmode/rm/wakeup/wakeup.h
+++ b/arch/x86/realmode/rm/wakeup.h
diff --git a/arch/x86/realmode/rm/wakeup/.gitignore b/arch/x86/realmode/rm/wakeup/.gitignore
deleted file mode 100644
index 58f1f48a58f8..000000000000
--- a/arch/x86/realmode/rm/wakeup/.gitignore
+++ /dev/null
@@ -1,3 +0,0 @@
1wakeup.bin
2wakeup.elf
3wakeup.lds
diff --git a/arch/x86/realmode/rm/wakeup/Makefile b/arch/x86/realmode/rm/wakeup/Makefile
deleted file mode 100644
index 4c8533240cdd..000000000000
--- a/arch/x86/realmode/rm/wakeup/Makefile
+++ /dev/null
@@ -1,33 +0,0 @@
1#
2# arch/x86/kernel/acpi/realmode/Makefile
3#
4# This file is subject to the terms and conditions of the GNU General Public
5# License. See the file "COPYING" in the main directory of this archive
6# for more details.
7#
8
9always := wakeup.o
10
11wakeup-y += wakeup_asm.o wakemain.o video-mode.o
12wakeup-y += copy.o bioscall.o regs.o
13
14# The link order of the video-*.o modules can matter. In particular,
15# video-vga.o *must* be listed first, followed by video-vesa.o.
16# Hardware-specific drivers should follow in the order they should be
17# probed, and video-bios.o should typically be last.
18wakeup-y += video-vga.o
19wakeup-y += video-vesa.o
20wakeup-y += video-bios.o
21
22targets += $(wakeup-y)
23
24WAKEUP_OBJS = $(addprefix $(obj)/,$(wakeup-y))
25
26LDFLAGS_wakeup.o := -m elf_i386 -r
27$(obj)/wakeup.o: $(WAKEUP_OBJS) FORCE
28 $(call if_changed,ld)
29
30bootsrc := $(src)/../../../boot
31
32ccflags-y += -D_WAKEUP -I$(srctree)/$(bootsrc)
33asflags-y += -D_WAKEUP -I$(srctree)/$(bootsrc)
diff --git a/arch/x86/realmode/rm/wakeup/bioscall.S b/arch/x86/realmode/rm/wakeup/bioscall.S
deleted file mode 100644
index f51eb0bb56ce..000000000000
--- a/arch/x86/realmode/rm/wakeup/bioscall.S
+++ /dev/null
@@ -1 +0,0 @@
1#include "../../../boot/bioscall.S"
diff --git a/arch/x86/realmode/rm/wakeup/copy.S b/arch/x86/realmode/rm/wakeup/copy.S
deleted file mode 100644
index dc59ebee69d8..000000000000
--- a/arch/x86/realmode/rm/wakeup/copy.S
+++ /dev/null
@@ -1 +0,0 @@
1#include "../../../boot/copy.S"
diff --git a/arch/x86/realmode/rm/wakeup/regs.c b/arch/x86/realmode/rm/wakeup/regs.c
deleted file mode 100644
index 6206033ba202..000000000000
--- a/arch/x86/realmode/rm/wakeup/regs.c
+++ /dev/null
@@ -1 +0,0 @@
1#include "../../../boot/regs.c"
diff --git a/arch/x86/realmode/rm/wakeup/video-bios.c b/arch/x86/realmode/rm/wakeup/video-bios.c
deleted file mode 100644
index 7deabc144a27..000000000000
--- a/arch/x86/realmode/rm/wakeup/video-bios.c
+++ /dev/null
@@ -1 +0,0 @@
1#include "../../../boot/video-bios.c"
diff --git a/arch/x86/realmode/rm/wakeup/video-mode.c b/arch/x86/realmode/rm/wakeup/video-mode.c
deleted file mode 100644
index 328ad209f113..000000000000
--- a/arch/x86/realmode/rm/wakeup/video-mode.c
+++ /dev/null
@@ -1 +0,0 @@
1#include "../../../boot/video-mode.c"
diff --git a/arch/x86/realmode/rm/wakeup/video-vesa.c b/arch/x86/realmode/rm/wakeup/video-vesa.c
deleted file mode 100644
index 9dbb9672226a..000000000000
--- a/arch/x86/realmode/rm/wakeup/video-vesa.c
+++ /dev/null
@@ -1 +0,0 @@
1#include "../../../boot/video-vesa.c"
diff --git a/arch/x86/realmode/rm/wakeup/video-vga.c b/arch/x86/realmode/rm/wakeup/video-vga.c
deleted file mode 100644
index bcc81255f374..000000000000
--- a/arch/x86/realmode/rm/wakeup/video-vga.c
+++ /dev/null
@@ -1 +0,0 @@
1#include "../../../boot/video-vga.c"
diff --git a/arch/x86/realmode/rm/wakeup/wakeup_asm.S b/arch/x86/realmode/rm/wakeup_asm.S
index f81c1cd99eaf..8a57c5a05fbc 100644
--- a/arch/x86/realmode/rm/wakeup/wakeup_asm.S
+++ b/arch/x86/realmode/rm/wakeup_asm.S
@@ -7,7 +7,7 @@
7#include <asm/page_types.h> 7#include <asm/page_types.h>
8#include <asm/pgtable_types.h> 8#include <asm/pgtable_types.h>
9#include <asm/processor-flags.h> 9#include <asm/processor-flags.h>
10#include "../realmode.h" 10#include "realmode.h"
11#include "wakeup.h" 11#include "wakeup.h"
12 12
13 .code16 13 .code16