Newsgroups: comp.os.xinu Path: utzoo!utgpu!watserv1!sunee!erick From: erick@sunee.waterloo.edu (Erick Engelke) Subject: Re: XINU on 80286 in protected mode Message-ID: <1991May13.171051.11053@sunee.waterloo.edu> Organization: University of Waterloo References: Date: Mon, 13 May 1991 17:10:51 GMT Lines: 37 In article csgr@alpha.cs.ru.ac.za (Geoff Rehmet) writes: >I am at the moment looking into porting the PX-XINU sources to the >80286 running in protected mode, with the intention of making use >of the 286's hardware task management and memory protection features. > >A major problem which I forsee is in compiling the XINU C sources, as >I do not have a C compiler available for the 80286. (The main problem >is that existing C compilers generate code which will run fine in real mode >but which does not handle the 286's memory management features - resulting >in problems with segment references.) > >(I have thought of tricks such as modifying the objects and executables >generated by existing DOS C compilers, such as Turbo C, but I would like >to try and find a cleaner method.) > >I was wandering if anybody else had looked into the idea of porting XINU >to the 80286, and if so, if they have any suggestions on how I could get >around the problem of compiling the C sources. (I do not have a problem >of getting into protected mode as such, as I have the beginnings of a >protected mode bios under development.) > >Cheers, Geoff. > Try the Lattice C 286 compiler. I believe it does exactly what you are asking. It generates code which can access full 286 memory, and is not just the word alignment and enter/leave calls enhacement of other C compilers. I have not used it, I'm mentioning this on memory of a much relieved friend. Erick -- ---------------------------------------------------------------------------- Erick Engelke Watstar Computer Network Watstar Network Guy University of Waterloo Erick@Development.Watstar.UWaterloo.ca (519) 885-1211 Ext. 2965