358fef538f
instead of failing. When looking for a region to allocate, we used to check to see if the start address was < end. In the case where A..B is allocated already, and one wants to allocate A..C (B < C), then this test would improperly fail (which means we'd examine that region as a possible one), and we'd return the region B+1..C+(B-A+1) rather than NULL. Since C+(B-A+1) is necessarily larger than C (end argument), this is incorrect behavior for rman_reserve_resource_bound(). The fix is to exclude those regions where r->r_start + count - 1 > end rather than r->r_start > end. This bug has been in this code for a very long time. I believe that all other tests against end are correctly done. This is why sio0 generated a message about interrupts not being enabled properly for the device. When fdc had a bug that allocated from 0x3f7 to 0x3fb, sio0 was then given 0x3fc-0x404 rather than the 0x3f8-0x3ff that it wanted. Now when fdc has the same bug, sio0 fails to allocate its ports, which is the proper behavior. Since the probe failed, we never saw the messed up resources reported. I suspect that there are other places in the tree that have weird looping or other odd work arounds to try to cope with the observed weirdness this bug can introduce. These workarounds should be located and eliminated. Minor debug write fix to match the above test done as well. 'nice' by: mdodd Sponsored by: timing solutions (http://www.timing.com/) |
||
---|---|---|
.. | ||
bus_if.m | ||
clock_if.m | ||
cpufreq_if.m | ||
device_if.m | ||
genassym.sh | ||
imgact_aout.c | ||
imgact_elf32.c | ||
imgact_elf64.c | ||
imgact_elf.c | ||
imgact_gzip.c | ||
imgact_shell.c | ||
inflate.c | ||
init_main.c | ||
init_sysent.c | ||
kern_acct.c | ||
kern_acl.c | ||
kern_alq.c | ||
kern_clock.c | ||
kern_condvar.c | ||
kern_conf.c | ||
kern_context.c | ||
kern_cpu.c | ||
kern_descrip.c | ||
kern_environment.c | ||
kern_event.c | ||
kern_exec.c | ||
kern_exit.c | ||
kern_fork.c | ||
kern_idle.c | ||
kern_intr.c | ||
kern_jail.c | ||
kern_kse.c | ||
kern_kthread.c | ||
kern_ktr.c | ||
kern_ktrace.c | ||
kern_linker.c | ||
kern_lock.c | ||
kern_lockf.c | ||
kern_mac.c | ||
kern_malloc.c | ||
kern_mbuf.c | ||
kern_mib.c | ||
kern_module.c | ||
kern_mtxpool.c | ||
kern_mutex.c | ||
kern_ntptime.c | ||
kern_physio.c | ||
kern_poll.c | ||
kern_proc.c | ||
kern_prot.c | ||
kern_resource.c | ||
kern_sema.c | ||
kern_shutdown.c | ||
kern_sig.c | ||
kern_subr.c | ||
kern_switch.c | ||
kern_sx.c | ||
kern_synch.c | ||
kern_syscalls.c | ||
kern_sysctl.c | ||
kern_tc.c | ||
kern_thr.c | ||
kern_thread.c | ||
kern_time.c | ||
kern_timeout.c | ||
kern_umtx.c | ||
kern_uuid.c | ||
kern_xxx.c | ||
ksched.c | ||
link_elf_obj.c | ||
link_elf.c | ||
linker_if.m | ||
Make.tags.inc | ||
Makefile | ||
makesyscalls.sh | ||
md4c.c | ||
md5c.c | ||
p1003_1b.c | ||
posix4_mib.c | ||
sched_4bsd.c | ||
sched_ule.c | ||
subr_acl_posix1e.c | ||
subr_autoconf.c | ||
subr_blist.c | ||
subr_bus.c | ||
subr_clist.c | ||
subr_clock.c | ||
subr_devstat.c | ||
subr_disk.c | ||
subr_eventhandler.c | ||
subr_hints.c | ||
subr_kdb.c | ||
subr_kobj.c | ||
subr_log.c | ||
subr_mbpool.c | ||
subr_mchain.c | ||
subr_module.c | ||
subr_msgbuf.c | ||
subr_param.c | ||
subr_pcpu.c | ||
subr_power.c | ||
subr_prf.c | ||
subr_prof.c | ||
subr_rman.c | ||
subr_rtc.c | ||
subr_sbuf.c | ||
subr_scanf.c | ||
subr_sleepqueue.c | ||
subr_smp.c | ||
subr_taskqueue.c | ||
subr_trap.c | ||
subr_turnstile.c | ||
subr_unit.c | ||
subr_witness.c | ||
sys_generic.c | ||
sys_pipe.c | ||
sys_process.c | ||
sys_socket.c | ||
syscalls.c | ||
syscalls.master | ||
sysv_ipc.c | ||
sysv_msg.c | ||
sysv_sem.c | ||
sysv_shm.c | ||
tty_compat.c | ||
tty_conf.c | ||
tty_cons.c | ||
tty_pty.c | ||
tty_subr.c | ||
tty_tty.c | ||
tty.c | ||
uipc_accf.c | ||
uipc_cow.c | ||
uipc_domain.c | ||
uipc_mbuf2.c | ||
uipc_mbuf.c | ||
uipc_proto.c | ||
uipc_sem.c | ||
uipc_sockbuf.c | ||
uipc_socket2.c | ||
uipc_socket.c | ||
uipc_syscalls.c | ||
uipc_usrreq.c | ||
vfs_acl.c | ||
vfs_aio.c | ||
vfs_bio.c | ||
vfs_cache.c | ||
vfs_cluster.c | ||
vfs_default.c | ||
vfs_export.c | ||
vfs_extattr.c | ||
vfs_hash.c | ||
vfs_init.c | ||
vfs_lookup.c | ||
vfs_mount.c | ||
vfs_subr.c | ||
vfs_syscalls.c | ||
vfs_vnops.c | ||
vnode_if.src |