🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #1491

Device Driver gurus?? Info needed on RegisterStackUsage DevHlp call

#1491
From: 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
Technical Details
Message-ID: <1990Sep9.230723.188@ux1.cso.uiuc.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!telly!lethe!geac!torsqnt!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!wuarchive!julius.cs.uiuc.edu!ux1.cso.uiuc.edu!uxa.cso.uiuc.edu!csj06895

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!telly!lethe!geac!torsqnt!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!wuarchive!julius.cs.uiuc.edu!ux1.cso.uiuc.edu!uxa.cso.uiuc.edu!csj06895
From: csj06895@uxa.cso.uiuc.edu (Christopher S Jones)
Newsgroups: comp.os.os2.programmer
Subject: Device Driver gurus??  Info needed on RegisterStackUsage DevHlp call
Summary: RegisterStackUsage call always failing in my driver.
Keywords: DevHlp, device, IRQ
Message-ID: <1990Sep9.230723.188@ux1.cso.uiuc.edu>
Date: 9 Sep 90 23:07:23 GMT
Sender: news@ux1.cso.uiuc.edu (News)
Distribution: comp
Organization: University of Illinois at Urbana
Lines: 32