Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1AyEKg-0001Vy-2w for qemu-devel@nongnu.org; Tue, 02 Mar 2004 13:09:30 -0500 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1AyEK7-0001Lu-27 for qemu-devel@nongnu.org; Tue, 02 Mar 2004 13:09:26 -0500 Received: from [212.78.33.20] (helo=gordon.av7.net) by monty-python.gnu.org with esmtp (Exim 4.30) id 1AyEAh-0007uS-St for qemu-devel@nongnu.org; Tue, 02 Mar 2004 12:59:12 -0500 Received: from eureka.av7.net ([62.4.18.164] helo=allhosts) by gordon.av7.net with asmtp (Exim 3.35 #1 (Debian)) id 1AyEAU-000698-00 for ; Tue, 02 Mar 2004 18:58:59 +0100 From: Sebastien Bechet In-Reply-To: <200403020117.15120.ge@gabrielebner.at> References: <200403011830.08859.cyb.org@gmx.net> <200403020117.15120.ge@gabrielebner.at> Content-Type: multipart/mixed; boundary="=-9XVrnMQYJR9/8OYFclQv" Message-Id: <1078250306.594.61.camel@espiron.av7.local> Mime-Version: 1.0 Date: Tue, 02 Mar 2004 18:58:26 +0100 Subject: [Qemu-devel] [patch] linux 2.6 support Reply-To: qemu-devel@nongnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --=-9XVrnMQYJR9/8OYFclQv Content-Type: text/plain Content-Transfer-Encoding: 7bit kernel 2.6 support Change struct name in asm/ldt.h --=-9XVrnMQYJR9/8OYFclQv Content-Disposition: attachment; filename=configure.diff Content-Type: text/x-patch; name=configure.diff; charset=iso-8859-1 Content-Transfer-Encoding: 7bit --- configure.orig 2004-03-02 18:54:31.000000000 +0100 +++ configure 2004-03-02 18:40:50.000000000 +0100 @@ -68,8 +68,12 @@ # OS specific targetos=`uname -s` +targetversion= case $targetos in -*) ;; + Linux) + targetver=`uname -r | sed 's/\(.\)\.\(.\)\../\1\2/'` + ;; + *) ;; esac ########################################## @@ -225,7 +229,7 @@ echo "static build $static" echo "SDL support $sdl" if test $sdl_too_old = "yes"; then -echo "-> Your SDL version is too old - please upgrade to have FFplay/SDL support" +echo "-> Your SDL version is too old - please upgrade to have SDL support" fi config_mak="config-host.mak" @@ -297,6 +301,9 @@ echo "CONFIG_STATIC=yes" >> $config_mak echo "#define CONFIG_STATIC 1" >> $config_h fi +if test "$targetos" = "Linux" ; then + echo "#define QEMU_LINUX_KERNEL_VERSION $targetver" >> $config_h +fi if test "$sdl" = "yes" ; then echo "CONFIG_SDL=yes" >> $config_mak echo "#define CONFIG_SDL 1" >> $config_h --=-9XVrnMQYJR9/8OYFclQv Content-Disposition: attachment; filename=helper2.c.diff Content-Type: text/x-patch; name=helper2.c.diff; charset=iso-8859-1 Content-Transfer-Encoding: 7bit --- helper2.c.orig 2004-03-02 18:54:31.000000000 +0100 +++ helper2.c 2004-03-02 18:50:48.000000000 +0100 @@ -94,7 +94,11 @@ #ifdef USE_CODE_COPY /* testing code for code copy case */ { +#if (QEMU_LINUX_KERNEL_VERSION==26) + struct user_desc ldt; +#else struct modify_ldt_ldt_s ldt; +#endif ldt.entry_number = 1; ldt.base_addr = (unsigned long)env; --=-9XVrnMQYJR9/8OYFclQv--