[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] Integrating applications into Mini-OS
On 11 May 2006 12:34:49 -0400, John D. Ramsdell <ramsdell@xxxxxxxxx> wrote: I'd like to make it so that there is no need to modify any Mini-OS source files when extending it with an application. All that is required is a change to Makefile, and a small change to kernel.c, printf.c, and string.c. I have enclosed the patch. With this patch, one could write an application in a file called, say, app.c, and add it to the Mini-OS directory along with newlib.c and setjmp_x86_32.S, the two files I use to adapt newlib to the Mini-OS environment. One would compile and link it with newlib, with the command: hi, I think it would be more elegant to link the mini-os C files as a 'libminios.a' lib, and then you can replace main() with your own by linking libminios.a from a separate Makefile somewhere else in you tree. I have attached a small patch to mini-os which changes the mini-os Makefile and adds a dummy main function which you can override by linking with your own main() first, as in: OBJS := mymain.o myapp: $(OBJS) $(LD) -N -T myapp.lds ../mini-os/x86_32.o $(OBJS) -o myapp.elf -lminios -L../mini-os regards, Jacob Attachment:
miniosappsupport _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |