On Fri, 07 Mar 2008 09:13:12 -0500
John Baldwin <[EMAIL PROTECTED]> wrote:

> Try this instead:
> 
> http://people.freebsd.org/~jhb/patches/btx_real.patch

On 7.0-stable:
[EMAIL PROTECTED] uname -a
FreeBSD kg-i82.kg4.no 7.0-STABLE FreeBSD 7.0-STABLE #1: Sun Mar  2
01:18:27 CET 2008     [EMAIL PROTECTED]:/usr/obj/usr/src/sys/I81K  i386

The first hunk fails, see attached file.
I have btx.S revision:
 * $FreeBSD: src/sys/boot/i386/btx/btx/btx.S,v 1.44 2006/12/06 17:45:35
jhb Exp $

Is the patch supposed to work on that one?
It fails when building:
[EMAIL PROTECTED] cd /usr/src/sys/boot/i386
[EMAIL PROTECTED] make
===> mbr (all)
===> pmbr (all)
===> boot0 (all)
===> boot0sio (all)
===> btx (all)
===> btx/btx (all)
cc -O -pipe  -DBTX_FLAGS=0x0 -ffreestanding -mpreferred-stack-boundary=2  
-mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3  -N -e start -Ttext 0x9000 
-Wl,-S,--oformat,binary -nostdlib -o btx btx.o 
btx.o(.text+0x5c8): In function `tss_desc':
: undefined reference to `MEM_DIR'
*** Error code 1

Stop in /usr/src/sys/boot/i386/btx/btx.
*** Error code 1

Stop in /usr/src/sys/boot/i386/btx.
*** Error code 1

Stop in /usr/src/sys/boot/i386.

Any hints on how to fix it?
-- 
Regards,
Torfinn Ingolfsen

***************
*** 21,31 ****
                .set MEM_BTX,0x1000             # Start of BTX memory
                .set MEM_ESP0,0x1800            # Supervisor stack
                .set MEM_BUF,0x1800             # Scratch buffer
-               .set MEM_ESP1,0x1e00            # Link stack
-               .set MEM_IDT,0x1e00             # IDT
-               .set MEM_TSS,0x1f98             # TSS
-               .set MEM_MAP,0x2000             # I/O bit map
-               .set MEM_TSS_END,0x3fff         # Page directory
                .set MEM_ORG,0x9000             # BTX code
                .set MEM_USR,0xa000             # Start of user memory
  /*
--- 21,31 ----
                .set MEM_BTX,0x1000             # Start of BTX memory
                .set MEM_ESP0,0x1800            # Supervisor stack
                .set MEM_BUF,0x1800             # Scratch buffer
+               .set MEM_ESPR,0x5e00            # Real mode stack
+               .set MEM_IDT,0x5e00             # IDT
+               .set MEM_TSS,0x5f98             # TSS
+               .set MEM_MAP,0x6000             # I/O bit map
+               .set MEM_TSS_END,0x7fff         # End of TSS
                .set MEM_ORG,0x9000             # BTX code
                .set MEM_USR,0xa000             # Start of user memory
  /*
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to