time@ice.com (02/15/91)
In article <1991Feb14.140439.4452@jarvis.csri.toronto.edu>, tracyn@dgp.toronto.edu (Tracy Narine) writes: > [...] How can I expand the > system heap to that I will have enough memory for my driver to work? > > I have noticed in technotes that there is a size resource for setting > program sizes. Will this also work for a init starting a driver? Please refer to page 352 of Vol V concerning 'sysz' resources. It says little, and I do not remember where they are documented more. Basically, you put a 'sysz' resource ID 0 in your INIT file. The resource is four bytes representing a long which is the amount of memory to insure is available in the System Heap when the INIT runs. tim. ------------------------------------------------------------- Tim Endres | time@ice.com ICE Engineering | uupsi!ice.com!time 8840 Main Street | Voice FAX Whitmore Lake MI. 48189 | (313) 449 8288 (313) 449 9208
tracyn@dgp.toronto.edu (Tracy Narine) (02/15/91)
I have written an init that installs a device driver. A problem that sometimes occurs at startup time is the device driver will not execute since there is insufficient memory in the system heap. How can I expand the system heap to that I will have enough memory for my driver to work? I have noticed in technotes that there is a size resource for setting program sizes. Will this also work for a init starting a driver? tracy
resnick@cogsci.uiuc.edu (Pete Resnick) (02/15/91)
tracyn@dgp.toronto.edu (Tracy Narine) writes: >I have written an init that installs a device driver. A problem that >sometimes occurs at startup time is the device driver will not execute since >there is insufficient memory in the system heap. How can I expand the >system heap to that I will have enough memory for my driver to work? >I have noticed in technotes that there is a size resource for setting >program sizes. Will this also work for a init starting a driver? Inside Mac V, p. 352 says that for an INIT, create a 'sysz' resource, which should contain the number of bytes needed in the system heap as it's first long word. You get 16K by default. This includes the heap space for the INIT code and resources as well as the driver and its resources. pr -- Pete Resnick (...so what is a mojo, and why would one be rising?) Graduate assistant - Philosophy Department, Gregory Hall, UIUC System manager - Cognitive Science Group, Beckman Institute, UIUC Internet/ARPAnet/EDUnet : resnick@cogsci.uiuc.edu BITNET (if no other way) : FREE0285@UIUCVMD
Chris.Gehlker@p12.f56.n114.z1.fidonet.org (Chris Gehlker) (02/24/91)
TN> I have noticed in technotes that there is a size resource for TN> setting program sizes. Will this also work for a init starting TN> a driver? No Tracy, INITS use a 'sysz' resource. Include a 'sysz' with ID 0. Its first long word should be the amount by which you want to expand the system heap. -- Uucp: ...{gatech,ames,rutgers}!ncar!asuvax!stjhmc!56.12!Chris.Gehlker Internet: Chris.Gehlker@p12.f56.n114.z1.fidonet.org