[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [SeaBIOS] [PATCH] acpi: hide 64-bit PCI hole for Window
From: |
Kevin O'Connor |
Subject: |
Re: [Qemu-devel] [SeaBIOS] [PATCH] acpi: hide 64-bit PCI hole for Windows XP |
Date: |
Sat, 10 Aug 2013 11:50:37 -0400 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Fri, Aug 09, 2013 at 11:30:14PM -0400, Kevin O'Connor wrote:
> On Fri, Aug 09, 2013 at 11:45:59AM +0200, Gerd Hoffmann wrote:
> > Hi,
> >
> > > Converting src/smm.c to use a runtime value isn't hard - just change
> > > the assembler from: "mov $" __stringify(PORT_ACPI_PM_BASE) " + 0x04,
> > > %dx\n" to: "mov 4(my_acpi_base), %dx\n" and make sure to define the
> > > global variable my_acpi_base as VARFSEG.
> >
> > The apm fix brought a ctl register variable we can use directly, so I
> > tried the attached patch, then got this:
> >
> > Linking out/rom.o
> > out/code32flat.o: In function `smm_relocation_end':
> > (.text.asm./home/kraxel/projects/seabios/src/smm.c.72+0x37): relocation
> > truncated to fit: R_386_16 against symbol `acpi_pm1a_cnt' defined in
> > .data.varfseg./home/kraxel/projects/seabios/src/acpi.c.21 section in
> > out/code32flat.o
> > out/code32flat.o: In function `smm_relocation_end':
> > (.text.asm./home/kraxel/projects/seabios/src/smm.c.72+0x46): relocation
> > truncated to fit: R_386_16 against symbol `acpi_pm1a_cnt' defined in
> > .data.varfseg./home/kraxel/projects/seabios/src/acpi.c.21 section in
> > out/code32flat.o
> > make: *** [out/rom.o] Error 1
>
> Use "addr32 movw (acpi_pm1a_cnt), %dx" instead of "mov
> (acpi_pm1a_cnt), %dx".
I ran a quick test and the two attached patches seem to work okay.
-Kevin
0001-Minor-cleanups-to-smm-assembler.patch
Description: Text document
0002-make-pmbase-runtime.patch
Description: Text document
- Re: [Qemu-devel] [SeaBIOS] [PATCH] acpi: hide 64-bit PCI hole for Windows XP, (continued)
- Re: [Qemu-devel] [SeaBIOS] [PATCH] acpi: hide 64-bit PCI hole for Windows XP, Michael S. Tsirkin, 2013/08/08
- Re: [Qemu-devel] [SeaBIOS] [PATCH] acpi: hide 64-bit PCI hole for Windows XP, Gerd Hoffmann, 2013/08/08
- Re: [Qemu-devel] [SeaBIOS] [PATCH] acpi: hide 64-bit PCI hole for Windows XP, Michael S. Tsirkin, 2013/08/08
- Re: [Qemu-devel] [SeaBIOS] [PATCH] acpi: hide 64-bit PCI hole for Windows XP, Gerd Hoffmann, 2013/08/08
- Re: [Qemu-devel] [SeaBIOS] [PATCH] acpi: hide 64-bit PCI hole for Windows XP, Kevin O'Connor, 2013/08/09
- Re: [Qemu-devel] [SeaBIOS] [PATCH] acpi: hide 64-bit PCI hole for Windows XP, Gerd Hoffmann, 2013/08/09
- Re: [Qemu-devel] [SeaBIOS] [PATCH] acpi: hide 64-bit PCI hole for Windows XP, Kevin O'Connor, 2013/08/09
- Re: [Qemu-devel] [SeaBIOS] [PATCH] acpi: hide 64-bit PCI hole for Windows XP, Gerd Hoffmann, 2013/08/12
- Re: [Qemu-devel] [SeaBIOS] [PATCH] acpi: hide 64-bit PCI hole for Windows XP, Gerd Hoffmann, 2013/08/09
- Re: [Qemu-devel] [SeaBIOS] [PATCH] acpi: hide 64-bit PCI hole for Windows XP, Kevin O'Connor, 2013/08/09
- Re: [Qemu-devel] [SeaBIOS] [PATCH] acpi: hide 64-bit PCI hole for Windows XP,
Kevin O'Connor <=
- Re: [Qemu-devel] [SeaBIOS] [PATCH] acpi: hide 64-bit PCI hole for Windows XP, Michael S. Tsirkin, 2013/08/09
- Re: [Qemu-devel] [SeaBIOS] [PATCH] acpi: hide 64-bit PCI hole for Windows XP, Kevin O'Connor, 2013/08/09
- Re: [Qemu-devel] [SeaBIOS] [PATCH] acpi: hide 64-bit PCI hole for Windows XP, Gerd Hoffmann, 2013/08/12
- Re: [Qemu-devel] [SeaBIOS] [PATCH] acpi: hide 64-bit PCI hole for Windows XP, Michael S. Tsirkin, 2013/08/12
- Re: [Qemu-devel] [SeaBIOS] [PATCH] acpi: hide 64-bit PCI hole for Windows XP, Laszlo Ersek, 2013/08/12
Re: [Qemu-devel] [SeaBIOS] [PATCH] acpi: hide 64-bit PCI hole for Windows XP, Michael S. Tsirkin, 2013/08/08