mirror of
https://github.com/simh/simh.git
synced 2026-01-11 23:52:58 +00:00
3B2: Don't clobber number of serial lines
Serial line setup was inadvertantly clobbering the number of lines on initial setup, leading to potential invalid configuration.
This commit is contained in:
parent
ab48f31317
commit
9bf37d3d6b
@ -626,7 +626,6 @@ t_stat ports_reset(DEVICE *dptr)
|
||||
ports_conf = TRUE;
|
||||
|
||||
if (ports_ldsc == NULL) {
|
||||
ports_desc.lines = DEF_PORTS_CARDS * PORTS_LINES;
|
||||
ports_desc.ldsc = ports_ldsc =
|
||||
(TMLN *)calloc(ports_desc.lines, sizeof(*ports_ldsc));
|
||||
}
|
||||
|
||||
@ -51,7 +51,6 @@
|
||||
#define PORTS_IPL 10
|
||||
#define PORTS_VERSION 1
|
||||
|
||||
#define DEF_PORTS_CARDS 1
|
||||
#define MAX_PORTS_CARDS 12
|
||||
#define PORTS_LINES 4
|
||||
#define PORTS_RCV_QUEUE 5
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user