🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.os.os2.programmer
1 messages
1 total messages Started by Christopher S Jones Sun, 09 Sep 1990 23:07
Device Driver gurus?? Info needed on RegisterStackUsage DevHlp call
#1491
Author: Christopher S Jones
Date: Sun, 09 Sep 1990 23:07
32 lines
1954 bytes
Help!  I've been digging through manuals and debugging byte by byte, but I
still can't get the DevHlp call to RegisterStackUsage (RSU) to complete
successfully.

Summary:  My device (CSM SCSI card for MCA) uses IRQ 5 as an interrupt level.
My driver, therefore, needs to use that interrupt.  However, any time I call
RSU to register it, the carry bit always comes back set.  My Stack Usage
structure looks like this.

DS:BX ->
 length    000Eh
 int_en    0001h    I've also tried 0 here.
 IRQ_num   0005h
 nbytes1   }
 nbytes2   }        I've tried values from 10 to 200 for these.
 nbytes3   }
 max_nest  0001h    I've also tried 0 here.

I've tried calling this both before and after my call to SetIRQ (which seems to
complete fine, btw).  Should it be called before or after?

I've been debugging with OSTECH's device driver debugger line by line.  Every-
thing looks normal up to the call of DevHlp.  Then the Carry bit comes back
set.  No other error codes are available as far as I know.

Anybody have any insight.  I can't be maxing out the stack with only a ten
byte requirement can I?

Thanks for any responses.
-----------------------------------------------------------------------------
Chris S Jones      csj06895@uxa.cso.uiuc.edu
University of Illinois at Urbana-Champaign
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads