The dset program didn't set the "msize" (iosiz in userconfig).

Reviewed by:	davidg
This commit is contained in:
Poul-Henning Kamp 1995-05-22 01:37:24 +00:00
parent 61f5d51062
commit eb01b2314d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=8693

View File

@ -190,7 +190,7 @@ main(ac, av)
if (kvm_read(kd, pos_t, &buf1, sizeof(struct isa_device)) < 0)
fatal("kvmread", NULL);
if (buf1.id_id !=buf.id_id) {
if (buf1.id_id != buf.id_id) {
pos_t = (u_long)(buf1.id_next);
continue;
} else
@ -221,13 +221,17 @@ main(ac, av)
if (buf1.id_id != 0)
if (verbose)
printf("kernel: id=%u io=%X irq=%u drq=%X maddr=%X flags=%X enabled=%X \n", buf1.id_id, buf1.id_iobase, buf1.id_irq, buf1.id_drq,
buf1.id_maddr, buf1.id_flags, buf1.id_enabled);
printf(
"kernel: id=%u io=%X irq=%d drq=%d maddr=%X msize=%d flags=%X enabled=%X \n",
buf1.id_id, buf1.id_iobase, buf1.id_irq, buf1.id_drq,
buf1.id_maddr, buf1.id_msize, buf1.id_flags, buf1.id_enabled);
if (buf.id_id != 0)
if (verbose)
printf("file: id=%u io=%X irq=%u drq=%X maddr=%X flags=%X enabled=%X \n", buf.id_id, buf.id_iobase, buf.id_irq, buf.id_drq,
buf.id_maddr, buf.id_flags, buf.id_enabled);
printf(
"file: id=%u io=%X irq=%d drq=%d maddr=%X msize=%d flags=%X enabled=%X \n",
buf.id_id, buf.id_iobase, buf.id_irq, buf.id_drq,
buf.id_maddr, buf.id_msize, buf.id_flags, buf.id_enabled);
/*
@ -260,6 +264,12 @@ main(ac, av)
buf.id_maddr = buf1.id_maddr;
modified = TRUE;
}
if (buf.id_msize != buf1.id_msize) {
if (verbose)
printf("Setting msize\n");
buf.id_msize = buf1.id_msize;
modified = TRUE;
}
if (buf.id_flags != buf1.id_flags) {
if (verbose)
printf("Setting flags\n");