Skip to content

Commit

Permalink
x86, realmode: flattened rm hierachy
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jarkko Sakkinen authored and H. Peter Anvin committed May 8, 2012
1 parent b429dbf commit c484547
Show file tree
Hide file tree
Showing 21 changed files with 22 additions and 52 deletions.
2 changes: 1 addition & 1 deletion arch/x86/kernel/acpi/sleep.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <asm/cacheflush.h>
#include <asm/realmode.h>

#include "../../realmode/rm/wakeup/wakeup.h"
#include "../../realmode/rm/wakeup.h"
#include "sleep.h"

unsigned long acpi_realmode_flags;
Expand Down
20 changes: 13 additions & 7 deletions arch/x86/realmode/rm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,26 @@
#
#

subdir- := wakeup

always := realmode.bin

realmode-y += header.o
realmode-y += trampoline_$(BITS).o
realmode-y += stack.o
realmode-$(CONFIG_X86_32) += reboot_32.o
realmode-$(CONFIG_ACPI_SLEEP) += wakeup/wakeup.o
realmode-$(CONFIG_ACPI_SLEEP) += $(wakeup-objs)

wakeup-objs := wakeup_asm.o wakemain.o video-mode.o
wakeup-objs += copy.o bioscall.o regs.o
# The link order of the video-*.o modules can matter. In particular,
# video-vga.o *must* be listed first, followed by video-vesa.o.
# Hardware-specific drivers should follow in the order they should be
# probed, and video-bios.o should typically be last.
wakeup-objs += video-vga.o
wakeup-objs += video-vesa.o
wakeup-objs += video-bios.o

targets += $(realmode-y)

$(obj)/wakeup/wakeup.o: FORCE
$(Q)$(MAKE) $(build)=$(obj)/wakeup $@

REALMODE_OBJS = $(addprefix $(obj)/,$(realmode-y))

sed-pasyms := -n -r -e 's/^([0-9a-fA-F]+) [ABCDGRSTVW] (.+)$$/pa_\2 = \2;/p'
Expand Down Expand Up @@ -55,7 +60,8 @@ $(obj)/realmode.relocs: $(obj)/realmode.elf FORCE

# How to compile the 16-bit code. Note we always compile for -march=i386,
# that way we can complain to the user if the CPU is insufficient.
KBUILD_CFLAGS := $(LINUXINCLUDE) -m32 -g -Os -D_SETUP -D__KERNEL__ \
KBUILD_CFLAGS := $(LINUXINCLUDE) -m32 -g -Os -D_SETUP -D__KERNEL__ -D_WAKEUP \
-I$(srctree)/arch/x86/boot \
-DDISABLE_BRANCH_PROFILING \
-Wall -Wstrict-prototypes \
-march=i386 -mregparm=3 \
Expand Down
1 change: 1 addition & 0 deletions arch/x86/realmode/rm/bioscall.S
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "../../boot/bioscall.S"
1 change: 1 addition & 0 deletions arch/x86/realmode/rm/copy.S
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "../../boot/copy.S"
1 change: 1 addition & 0 deletions arch/x86/realmode/rm/regs.c
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "../../boot/regs.c"
1 change: 1 addition & 0 deletions arch/x86/realmode/rm/video-bios.c
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "../../boot/video-bios.c"
1 change: 1 addition & 0 deletions arch/x86/realmode/rm/video-mode.c
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "../../boot/video-mode.c"
1 change: 1 addition & 0 deletions arch/x86/realmode/rm/video-vesa.c
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "../../boot/video-vesa.c"
1 change: 1 addition & 0 deletions arch/x86/realmode/rm/video-vga.c
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "../../boot/video-vga.c"
File renamed without changes.
File renamed without changes.
3 changes: 0 additions & 3 deletions arch/x86/realmode/rm/wakeup/.gitignore

This file was deleted.

33 changes: 0 additions & 33 deletions arch/x86/realmode/rm/wakeup/Makefile

This file was deleted.

1 change: 0 additions & 1 deletion arch/x86/realmode/rm/wakeup/bioscall.S

This file was deleted.

1 change: 0 additions & 1 deletion arch/x86/realmode/rm/wakeup/copy.S

This file was deleted.

1 change: 0 additions & 1 deletion arch/x86/realmode/rm/wakeup/regs.c

This file was deleted.

1 change: 0 additions & 1 deletion arch/x86/realmode/rm/wakeup/video-bios.c

This file was deleted.

1 change: 0 additions & 1 deletion arch/x86/realmode/rm/wakeup/video-mode.c

This file was deleted.

1 change: 0 additions & 1 deletion arch/x86/realmode/rm/wakeup/video-vesa.c

This file was deleted.

1 change: 0 additions & 1 deletion arch/x86/realmode/rm/wakeup/video-vga.c

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <asm/page_types.h>
#include <asm/pgtable_types.h>
#include <asm/processor-flags.h>
#include "../realmode.h"
#include "realmode.h"
#include "wakeup.h"

.code16
Expand Down

0 comments on commit c484547

Please sign in to comment.