Date: Sat, 08 Mar 2008 13:16:10 +0100 From: Torfinn Ingolfsen <torfinn.ingolfsen@broadpark.no> To: freebsd-stable@freebsd.org Subject: Re: BTX on USB pen drive Message-ID: <20080308131610.43b57ee6.torfinn.ingolfsen@broadpark.no> In-Reply-To: <200803070913.12978.jhb@freebsd.org> References: <200803061742.34291.vincent@netaktiv.com> <200803071059.48837.doconnor@gsoft.com.au> <200803070913.12978.jhb@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --Boundary_(ID_xW0d9yy6ZzhecUbokUq/ow) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT On Fri, 07 Mar 2008 09:13:12 -0500 John Baldwin <jhb@freebsd.org> wrote: > Try this instead: > > http://people.freebsd.org/~jhb/patches/btx_real.patch On 7.0-stable: root@kg-i82# uname -a FreeBSD kg-i82.kg4.no 7.0-STABLE FreeBSD 7.0-STABLE #1: Sun Mar 2 01:18:27 CET 2008 root@kg-i82.kg4.no:/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: root@kg-i82# cd /usr/src/sys/boot/i386 root@kg-i82# 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 --Boundary_(ID_xW0d9yy6ZzhecUbokUq/ow) Content-type: text/plain; name=btx.S.rej Content-transfer-encoding: 7BIT Content-disposition: attachment; filename=btx.S.rej *************** *** 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 /* --Boundary_(ID_xW0d9yy6ZzhecUbokUq/ow)--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080308131610.43b57ee6.torfinn.ingolfsen>