projects
/
unix-history
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b45d602
)
CHanged MAXMEM to ISMAXMEM for safety
author
Paul Richards
<paul@isl.cf.ac.uk>
Wed, 15 Jun 1994 14:35:30 +0000
(14:35 +0000)
committer
Paul Richards
<paul@isl.cf.ac.uk>
Wed, 15 Jun 1994 14:35:30 +0000
(14:35 +0000)
sys/i386/isa/if_is.c
patch
|
blob
|
blame
|
history
diff --git
a/sys/i386/isa/if_is.c
b/sys/i386/isa/if_is.c
index
9f0e6ad
..
234a0d9
100644
(file)
--- a/
sys/i386/isa/if_is.c
+++ b/
sys/i386/isa/if_is.c
@@
-332,15
+332,15
@@
is_attach(isa_dev)
* are only 16 bits wide!
*/
* are only 16 bits wide!
*/
-#define MAXMEM ((NRBUF+NTBUF)*(BUFSIZE) + (NRBUF+NTBUF)*sizeof(struct mds) \
+#define
IS
MAXMEM ((NRBUF+NTBUF)*(BUFSIZE) + (NRBUF+NTBUF)*sizeof(struct mds) \
+ sizeof(struct init_block) + 8)
+ sizeof(struct init_block) + 8)
- is->init_block = (struct init_block *)malloc(MAXMEM,M_TEMP,M_NOWAIT);
+ is->init_block = (struct init_block *)malloc(
IS
MAXMEM,M_TEMP,M_NOWAIT);
if (!is->init_block) {
printf("is%d : Couldn't allocate memory for card\n",unit);
}
/*
* XXX -- should take corrective action if not
if (!is->init_block) {
printf("is%d : Couldn't allocate memory for card\n",unit);
}
/*
* XXX -- should take corrective action if not
- * quadword alilgned, the 8 byte slew factor in MAXMEM
+ * quadword alilgned, the 8 byte slew factor in
IS
MAXMEM
* allows for this.
*/
* allows for this.
*/