From: "Tobias Skytte" Newsgroups: comp.os.msdos.djgpp Subject: Re: How do I customize libc for custom OS? Date: Tue, 22 Aug 2000 15:01:53 +0200 Lines: 33 Message-ID: <8nu3ij$9ev2v$2@ID-33463.news.cis.dfn.de> References: <8nqvcn$9a10a$1 AT ID-33463 DOT news DOT cis DOT dfn DOT de> <4331-Mon21Aug2000144127+0300-eliz AT is DOT elta DOT co DOT il> NNTP-Posting-Host: 195.8.4.68 X-Trace: fu-berlin.de 966955416 9927775 195.8.4.68 (16 [33463]) X-Newsreader: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com >I don't know anything about FPK; what's below relates to DJGPP only. > >You need to replace the low-level library functions which interface >with the OS. Basically, search for all the occurences of __dpmi_int >and int86, and you will find these functions. ok. whew, looks like alot of work! maybe I could merely change the __dpmi_int and int86 functions? > >The library startup code (crt0.S) will have to be rewritten as well, >since it is tailored to the DPMI environment. Exception-handling >code, which is also the basis for signal support, will also need to be >reviewed. the crt0.S scares me, as I am not that good with assembler (especially not att syntax). Is there any documentation available that explains what this code does? I have no idea what exactly it does... Maybe most of it can just be taken out since its mostly for dpmi? what would happen if crt0.S contains nothing? I'm sure others must have changed this libc to work with their custom OS's. If you know of any links or documentation regarding this I would be most greatfull if you could post them. thanks! Tobias Skytte