www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/08/05:05:30

From: Groman <groman AT thehelm DOT com>
Newsgroups: alt.os.development,alt.os.assembly,comp.lang.asm.x86,comp.os.msdos.djgpp,alt.lang.asm
Subject: ISR with DJGPP in a kernel.
Date: Sat, 08 Jan 2000 07:51:37 GMT
Organization: SBC Internet Services
Lines: 25
Approved: ccrayne AT pacific DOT net (comp.lang.asm.x86)
Message-ID: <s7dr49t5oj886@corp.supernews.com>
X-Complaints-To: newsabuse AT supernews DOT com
X-Apparently-To: clax86 AT yahoo DOT com via web1703.mail.yahoo.com
X-Track2: 2
X-Track: 1-1: 40
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-Newsreader: MR/2 Internet Cruiser Edition for OS/2 v2.02 c02
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I am writing a small kernel using DJGPP and NASM, and I bumped into several
problems(again).

Ok...here are my steps.

1) I create the IDT and load the register.
2) I reprogram the PIC to shift the IRQs so they do not overlap with the
exceptions.
3) I disable all IRQs beside 2 and 0.
Now I want to create a handler for 0(the timer) in C...
now, how exactly do I do that... I mean it jumps out of the code right in
the middle of the function...and starts another one?

that doesn't sound right...

shoud I do the handler in assembly that calls C functions then? or is there
a way to turn an ordinary DJGPP function
into a handler...

ok...thank you for your help in advance...

groman.
 

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019