From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EdmWE-0004j8-Ux for qemu-devel@nongnu.org; Sun, 20 Nov 2005 05:34:00 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EdmJY-0003yA-KT for qemu-devel@nongnu.org; Sun, 20 Nov 2005 05:21:05 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EdmAT-0003Gy-Ly for qemu-devel@nongnu.org; Sun, 20 Nov 2005 05:11:32 -0500 Received: from [207.115.57.43] (helo=ylpvm12.prodigy.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EdmAS-0007VU-JM for qemu-devel@nongnu.org; Sun, 20 Nov 2005 05:11:28 -0500 Received: from ylpvm01.prodigy.net (ylpvm01-int.prodigy.net [207.115.5.207]) by ylpvm12.prodigy.net (8.12.10 outbound/8.12.10) with ESMTP id jAKABnin006113 for ; Sun, 20 Nov 2005 05:11:49 -0500 Message-ID: <43804BD3.90500@ucsc.edu> Date: Sun, 20 Nov 2005 02:11:31 -0800 From: Doug Gray MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: Accessing the serial port from proll Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl , qemu-devel@nongnu.org Hi, Thanks for the help. I've actually tried using the function you suggest, but gotten the following error: sparc-elf-gcc -O1 -W -Wall -DPROLBASE=0xffd00000 -DPROLDATA=0xffd0b000 -DPROLRODATA=0xffd08000 -D__ANSI__=1 -I../src -mcpu=hypersparc -Wa,-xarch=v8 -g -DQEMU -m32 -fno-builtin -c main.c sparc-elf-ld -N -Ttext 0xffd00000 --section-start .rodata=0xffd08000 -Tdata 0xffd0b000 -Tbss 0xffd0b000 -o proll.elf head.o wuf.o wof.o main.o printf.o le.o system_qemu.o iommu.o arp.o netinit.o bootp.o packet.o tftp.o udp.o sched_4m.o openprom.o vconsole.o hconsole.o rconsole.o vcons_zs.o esp.o sparc-elf-ld: section .rodata [00000000ffd08000 -> 00000000ffd0a129] overlaps section .text [00000000ffd00000 -> 00000000ffd08077] sparc-elf-ld: proll.elf: section .rodata lma 0xffd08000 overlaps previous sections make: *** [proll.elf] Error 1 However when I tried your code snippet it works fine. It seems that it only works if I call that function from an infinite loop (big loop or loops with a break statement don't compile either), which is driving me nuts. Do you know why this is? Also, some additional background info. I am actually using the -nographic option. This project is for a grad class on computer architecture. The prof. says he has a sparc processor implemented on an fpga and wants to load linux on it, but it doesn't have a hard drive or network connection, so that is why I'm writing a serial loader. -Doug