X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: "Rod Pemberton" Newsgroups: comp.os.msdos.djgpp References: <1137560452 DOT 398133 DOT 301490 AT g14g2000cwa DOT googlegroups DOT com> <200601180522 DOT k0I5MCVR031756 AT envy DOT delorie DOT com> <1137562915 DOT 964676 DOT 222680 AT f14g2000cwb DOT googlegroups DOT com> <0g31a3-vdi2 DOT ln1 AT news DOT infowest DOT com> <200601181556 DOT k0IFusZL016530 AT envy DOT delorie DOT com> <23f2a3-k8s2 DOT ln1 AT news DOT infowest DOT com> <200601181902 DOT k0IJ20Rj021390 AT envy DOT delorie DOT com> <200601182006 DOT k0IK6QbL023181 AT envy DOT delorie DOT com> Subject: Re: Adding 64-bit file support to DJGPP Lines: 37 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-IWN-Posted-By: [68.60.59.250] Wed Jan 18 14:01:02 2006 Message-ID: X-Complaints-To: abuse AT eli DOT net X-Trace: 52616e646f6d49564b835516cab6b1f728cd0aaad111e06a2859ca5fe614c2a3fdb4d17c804a296421caf04f2ab9f8218d182aa323fb730e758cae9a592f8a0a0a80f7e8fbf3a6bb72dd66085df44f128774aa1ad76ada347d49b8c5fc972e0136ca9bf9f8e40473cf02e7637be76e55a2e4f897f8ebe8e282499f0e75a6346250e575316b467d83aad80e6ee41dce47 X-Abuse-Info: Please be sure to forward ALL headers so that we may process your complaint properly. NNTP-Posting-Date: Wed, 18 Jan 2006 21:18:16 UTC Date: Wed, 18 Jan 2006 21:18:16 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "DJ Delorie" wrote in message news:200601182006 DOT k0IK6QbL023181 AT envy DOT delorie DOT com... > > under MS-DOS. Wow! I find it really interesting that with all the POSIX code you wrote, and the code for POSIX-on-DOS w/DPMI of the CMU MACH DOS, that a simple POSIX on DOS 32-bit OS couldn't be written... I'm currently working on a personal on-top-of DOS Ring 0 OS written almost entirely in C which (hey, there are CISC instructions...) : 1) compiles with DJGPP, and OW1.3, small amount of NASM 2) from RM, dumps the DJGPP DPMI host or the OW DPMI host/dos-extender and returns to PM ring 0 32-bit 4Gb base 0 3) setups a new GDT and IDT 4) reprograms PICs 5) setup IRQs (rough, but there, C stack frame getting in the way for some functions :( ) 6) implements ISRs (proto routines for 0x31,0x21,0x33,0x16) 7) (in progress) initializes keyboard and mouse routines (working on the buffers/queue) I'm hoping to finish the keyboard and mouse routines soon so I can move on to floppy/hard disk. I'll also need to get to the PITs sometime... With time, it could possibly exec all DJGPP or OW programs in an exclusively 32-bit environment... Multitasking should be possible for DJGPP applications due to the segment memory model. However, OW uses a single 4Gb segment. I'm not sure if I can get multi-tasking working for it. I was suprised at just how closely a large portion of my DPMI dumper code matches the requirements for a GRUB bootloader... Rod Pemberton