DS != SS in Turbo C 2.0
Robert Hartill
rhl at computing-maths.cardiff.ac.uk
Thu Feb 7 21:58:11 AEST 1991
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.
I tried compiling the ISRs using the medium memory model, that had the desired
affect, but gave the ISRs a different CS to the rest of the OS. This is
unacceptable since it means changing lots of code to account for it.
What I need is a compier option *SS!=DS*, which is found on other compilers...
Is there any other way ?
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Robert Hartill, Dept Of Computing Mathematics, UWCC, Cardiff, UK. ::
:: e-mail : rhl at cm.cf.ac.uk Fax : 0222 371921 ::
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
He who can, does. He who cannot teaches.
-George Bernard Shaw.
-------------------------------------------------------------------------------
More information about the Comp.lang.c
mailing list