[LinksOS CVS Commit]kernel/boot/x86 Makefile,1.8,1.9 multiboot.S,1.4,1.5
Status: Inactive
Brought to you by:
terencevs
|
From: <ke...@to...> - 2003-01-12 18:51:12
|
Update of /cvsroot/linksos/kernel/boot/x86 In directory router-internal.tossell.net:/tmp/cvs-serv31339/boot/x86 Modified Files: Makefile multiboot.S Log Message: Title: C++ Support Changes: Changed symbol names, command lines, definitions to support c++ building. All g++ calls now include arguments not to include stdlib symbols. Calls to c++ routines in asm call the mangled c++ names, such as _Z7kprintfPc instead of kprintf. io.c's contents are moved into io.h, as inlines are not exported by g++. (Why should they be?) This change breaks portability, which I'll fix next. Effects: LinksOS can now be compiled as c++ code, with the g++ compiler and the gnu as assembler. a=kennyt b=19 Index: Makefile =================================================================== RCS file: /cvsroot/linksos/kernel/boot/x86/Makefile,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** Makefile 4 Jan 2003 09:36:41 -0000 1.8 --- Makefile 12 Jan 2003 18:51:05 -0000 1.9 *************** *** 26,28 **** .S.o: ! $(CC) $(CFLAGS) $@ $< \ No newline at end of file --- 26,28 ---- .S.o: ! $(CXX) $(CFLAGS) $@ $< Index: multiboot.S =================================================================== RCS file: /cvsroot/linksos/kernel/boot/x86/multiboot.S,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** multiboot.S 4 Jan 2003 00:35:12 -0000 1.4 --- multiboot.S 12 Jan 2003 18:51:05 -0000 1.5 *************** *** 47,55 **** /* Now enter the C main function... */ ! call EXT_C(cmain) /* Halt. */ pushl $halt_message ! call EXT_C(kprintf) loop: hlt --- 47,55 ---- /* Now enter the C main function... */ ! call EXT_C(_Z5cmainm14multiboot_info) /* Halt. */ pushl $halt_message ! call EXT_C(_Z7kprintfPc) loop: hlt |