On 12/08/2010 10:43 PM, Stefano Bonifazi wrote:
I've linked qemu-malloc.o and cutils.o together with qruncom.c and I
managed to succesfully make it!
here the make line:
#$(MAKE) -C ../i386-linux-user libqemu.a
$(CC) $(CFLAGS) -fomit-frame-pointer $(LDFLAGS) -I../target-i386 -I..
-I../linux-user -I../i386-linux-user -I../fpu \
-o $@ ../qemu-malloc.o ../cutils.o $(filter %.c, $^)
-L../i386-linux-user -lqemu -lm

Anyway running it with a com file as argument gave the error:
mmap: Operation not permitted
I think the problem is with "MAP_FIXED" parameter in mmap
(http://opengroup.org/onlinepubs/007908799/xsh/mmap.html) having chosen
0x00000000 as starting address.. but it is pretty difficult for me atm
to understand it, I've never used this function before and I am a
beginner in these topics
Removing that parameter mmap succeeds, but then I get "segmentation
fault" in cpu_init

You have to run it as root I think.

Paolo

Reply via email to