Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!shelby!agate!pasteur!johnm@cory.Berkeley.EDU From: johnm@cory.Berkeley.EDU (John D. Mitchell) Newsgroups: comp.lang.c Subject: Re: DS != SS in Turbo C 2.0 Summary: Upgrade! Message-ID: <10875@pasteur.Berkeley.EDU> Date: 7 Feb 91 15:10:47 GMT References: <1991Feb7.105811.17817@computing-maths.cardiff.ac.uk> Sender: news@pasteur.Berkeley.EDU Reply-To: johnm@cory.Berkeley.EDU Lines: 19 In article <1991Feb7.105811.17817@computing-maths.cardiff.ac.uk> rhl@computing-maths.cardiff.ac.uk (Robert Hartill) writes: >I want to use Turbo C's small memory model to write Interrupt Service Routines >for an operating system.. >Since the ISRs are to use tasks stack space, their DS and SS are going to be > different, but TC assumes their the same. I want the ISRs to access kernel > data via DS (which never changes), so changing DS to SS inside the ISR isn't > good enough. [...deleted...] >What I need is a compier option *SS!=DS*, which is found on other compilers... Upgrade to TC++ v1.0x (current version, akz TC v3.0x). The compiler now supports some switches so you can expressly request SS == or != DS. Since you can do this on a module by module basis none of you other code need be screwed (oops sorry about that technical terminology :-). Good luck, John johnm@cory.Berkeley.EDU