Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!ucsd!sdd.hp.com!hplabs!hpfcso!hpldola!jg From: jg@hpldola.HP.COM (Joe Gilray) Newsgroups: comp.sys.atari.st.tech Subject: Micrortx call out functions? Message-ID: <16960001@hpldola.HP.COM> Date: 18 Jul 90 21:39:57 GMT Organization: HP Elec. Design Div. -ColoSpgs Lines: 22 I have gotten the shareware Micrortx kernel and have been playing with it. Everything seems to work quite well. It seems like a very powerful and complete kernel. Last night I tried to define a 'switch' call out function to simply count the number of process switches. First I tried to simply increment a global variable in a C function, but this gave quirky and often incorrect results. After reading through the Micrortx documentation, I thought the problem was that the C function was munging with the registers so I wrote an assembly program that saves the registers on the stack, increments the global variable, and restores the registers, but this seems to invariably lock up my system. Has anyone solved this problem? Or done anything with the call-out functions in Micrortx? I am using the MWC 3.0.6 development package. Thanks in advance Joe Gilray