[odc] Daily src changes for 2007-05-04
ODC
auto at squish.net
Sat May 5 15:27:35 BST 2007
OpenBSD src changes summary for 2007-05-04
==========================================
distrib/notes distrib/sets
etc/Makefile share/man
sys/arch/alpha/alpha sys/arch/amd64/amd64
sys/arch/armish/armish sys/arch/aviion/aviion
sys/arch/cats/cats sys/arch/hp300/hp300
sys/arch/hppa/hppa sys/arch/hppa64/hppa64
sys/arch/i386/conf sys/arch/i386/i386
sys/arch/i386/include sys/arch/landisk/landisk
sys/arch/luna88k/luna88k sys/arch/mac68k/mac68k
sys/arch/macppc/macppc sys/arch/mvme68k/mvme68k
sys/arch/mvme88k/mvme88k sys/arch/mvmeppc/mvmeppc
sys/arch/sgi/sgi sys/arch/solbourne/solbourne
sys/arch/sparc/include sys/arch/sparc/sparc
sys/arch/sparc64/include sys/arch/sparc64/sparc64
sys/arch/vax/conf sys/arch/vax/vax
sys/arch/zaurus/conf sys/arch/zaurus/zaurus
sys/dev/isa sys/dev/pci
sys/kern sys/lib/libkern
sys/lib/libsa sys/netinet
sys/scsi sys/sys
usr.bin/calendar usr.sbin/kgmon
usr.sbin/pkg_add
== distrib =========================================================== 01/06 ==
http://www.openbsd.org/cgi-bin/cvsweb/src/distrib
notes
~ m4.common
> stop shipping CKSUM files; people can use the MD5 files
> (this decreases build time a bit too)
> ok todd (and i assume legacy-architecture-miod would not object either)
> (deraadt@)
sets
~ lists/base/md.hppa ~ lists/comp/md.hppa
> sync (deraadt@)
~ lists/base/md.sparc ~ lists/comp/md.sparc
> sync (deraadt@)
~ lists/base/md.sgi ~ lists/comp/md.sgi
> sync (deraadt@)
~ lists/base/md.vax ~ lists/comp/md.vax
> sync (deraadt@)
~ lists/comp/mi
> sync (deraadt@)
== etc =============================================================== 02/06 ==
http://www.openbsd.org/cgi-bin/cvsweb/src/etc
Makefile
~ Makefile
> stop shipping CKSUM files; people can use the MD5 files
> (this decreases build time a bit too)
> ok todd (and i assume legacy-architecture-miod would not object either)
> (deraadt@)
~ Makefile
> incompletely killed the cksum bits (deraadt@)
== share ============================================================= 03/06 ==
http://www.openbsd.org/cgi-bin/cvsweb/src/share
man
~ man4/umsm.4
> sort the hardware list; (jmc@)
~ man9/Makefile ~ man9/kern.9
> locc dies; spotted by miod (deraadt@)
== sys =============================================================== 04/06 ==
http://www.openbsd.org/cgi-bin/cvsweb/src/sys
arch/alpha/alpha
~ autoconf.c
> setroot() was a ugly mix of MI and MD code, with different bugs on
> different
> machines. Instead -- build one solid clean MI version, and thenchange all
> the architectures to use it. ok various people, tested on almost all
> cases.
> (it is a 10094 line diff..) (deraadt@)
~ autoconf.c
> make findblkmajor() and findblkname() MI; ok miod (deraadt@)
~ pmap.c
> Faster pmap_extract() code for pmap_kernel, from NetBSD. (miod@)
arch/amd64/amd64
~ autoconf.c
> setroot() was a ugly mix of MI and MD code, with different bugs on
> different
> machines. Instead -- build one solid clean MI version, and thenchange all
> the architectures to use it. ok various people, tested on almost all
> cases.
> (it is a 10094 line diff..) (deraadt@)
~ autoconf.c
> make findblkmajor() and findblkname() MI; ok miod (deraadt@)
arch/armish/armish
~ autoconf.c
> setroot() was a ugly mix of MI and MD code, with different bugs on
> different
> machines. Instead -- build one solid clean MI version, and thenchange all
> the architectures to use it. ok various people, tested on almost all
> cases.
> (it is a 10094 line diff..) (deraadt@)
~ autoconf.c
> make findblkmajor() and findblkname() MI; ok miod (deraadt@)
arch/aviion/aviion
~ autoconf.c
> setroot() was a ugly mix of MI and MD code, with different bugs on
> different
> machines. Instead -- build one solid clean MI version, and thenchange all
> the architectures to use it. ok various people, tested on almost all
> cases.
> (it is a 10094 line diff..) (deraadt@)
~ autoconf.c
> make findblkmajor() and findblkname() MI; ok miod (deraadt@)
arch/cats/cats
~ autoconf.c
> setroot() was a ugly mix of MI and MD code, with different bugs on
> different
> machines. Instead -- build one solid clean MI version, and thenchange all
> the architectures to use it. ok various people, tested on almost all
> cases.
> (it is a 10094 line diff..) (deraadt@)
~ autoconf.c
> make findblkmajor() and findblkname() MI; ok miod (deraadt@)
arch/hp300/hp300
~ autoconf.c
> setroot() was a ugly mix of MI and MD code, with different bugs on
> different
> machines. Instead -- build one solid clean MI version, and thenchange all
> the architectures to use it. ok various people, tested on almost all
> cases.
> (it is a 10094 line diff..) (deraadt@)
~ autoconf.c
> make findblkmajor() and findblkname() MI; ok miod (deraadt@)
arch/hppa/hppa
~ autoconf.c
> setroot() was a ugly mix of MI and MD code, with different bugs on
> different
> machines. Instead -- build one solid clean MI version, and thenchange all
> the architectures to use it. ok various people, tested on almost all
> cases.
> (it is a 10094 line diff..) (deraadt@)
~ autoconf.c
> make findblkmajor() and findblkname() MI; ok miod (deraadt@)
arch/hppa64/hppa64
~ autoconf.c
> setroot() was a ugly mix of MI and MD code, with different bugs on
> different
> machines. Instead -- build one solid clean MI version, and thenchange all
> the architectures to use it. ok various people, tested on almost all
> cases.
> (it is a 10094 line diff..) (deraadt@)
~ autoconf.c
> make findblkmajor() and findblkname() MI; ok miod (deraadt@)
arch/i386/conf
~ files.i386
> Oops. Forgot to commit this part.
> We need to include lock_machdep even on non-MP kernels now for
> rw_cas. (art@)
arch/i386/i386
~ autoconf.c
> setroot() was a ugly mix of MI and MD code, with different bugs on
> different
> machines. Instead -- build one solid clean MI version, and thenchange all
> the architectures to use it. ok various people, tested on almost all
> cases.
> (it is a 10094 line diff..) (deraadt@)
~ pmap.c
> Skip the kernel pmap when accounting for executability range changes.
> This could lead to some heavy problems if called from kernel threads
> (which is the only way to get past the next test with the kernel
> pmap).
> From mickey. art@ toby@ ok. (art@)
~ lock_machdep.c
> Implement rw_cas for i386.
> It uses a function pointer to choose between the 386 and 486 versions.
> The 386 version is not MP safe, but we're not expecting MP support
> for 386 cpus.
> miod@ ok (and prodding) (art@)
- microtime.s ~ machdep.c
> Remove dead code. (art@)
~ autoconf.c
> make findblkmajor() and findblkname() MI; ok miod (deraadt@)
arch/i386/include
~ lock.h
> Implement rw_cas for i386.
> It uses a function pointer to choose between the 386 and 486 versions.
> The 386 version is not MP safe, but we're not expecting MP support
> for 386 cpus.
> miod@ ok (and prodding) (art@)
arch/landisk/landisk
~ autoconf.c
> setroot() was a ugly mix of MI and MD code, with different bugs on
> different
> machines. Instead -- build one solid clean MI version, and thenchange all
> the architectures to use it. ok various people, tested on almost all
> cases.
> (it is a 10094 line diff..) (deraadt@)
~ autoconf.c
> make findblkmajor() and findblkname() MI; ok miod (deraadt@)
arch/luna88k/luna88k
~ autoconf.c
> setroot() was a ugly mix of MI and MD code, with different bugs on
> different
> machines. Instead -- build one solid clean MI version, and thenchange all
> the architectures to use it. ok various people, tested on almost all
> cases.
> (it is a 10094 line diff..) (deraadt@)
~ autoconf.c
> make findblkmajor() and findblkname() MI; ok miod (deraadt@)
arch/mac68k/mac68k
~ autoconf.c
> setroot() was a ugly mix of MI and MD code, with different bugs on
> different
> machines. Instead -- build one solid clean MI version, and thenchange all
> the architectures to use it. ok various people, tested on almost all
> cases.
> (it is a 10094 line diff..) (deraadt@)
~ autoconf.c
> make findblkmajor() and findblkname() MI; ok miod (deraadt@)
arch/macppc/macppc
~ autoconf.c
> setroot() was a ugly mix of MI and MD code, with different bugs on
> different
> machines. Instead -- build one solid clean MI version, and thenchange all
> the architectures to use it. ok various people, tested on almost all
> cases.
> (it is a 10094 line diff..) (deraadt@)
~ autoconf.c
> make findblkmajor() and findblkname() MI; ok miod (deraadt@)
arch/mvme68k/mvme68k
~ autoconf.c
> setroot() was a ugly mix of MI and MD code, with different bugs on
> different
> machines. Instead -- build one solid clean MI version, and thenchange all
> the architectures to use it. ok various people, tested on almost all
> cases.
> (it is a 10094 line diff..) (deraadt@)
~ autoconf.c
> make findblkmajor() and findblkname() MI; ok miod (deraadt@)
arch/mvme88k/mvme88k
~ autoconf.c
> setroot() was a ugly mix of MI and MD code, with different bugs on
> different
> machines. Instead -- build one solid clean MI version, and thenchange all
> the architectures to use it. ok various people, tested on almost all
> cases.
> (it is a 10094 line diff..) (deraadt@)
~ autoconf.c
> make findblkmajor() and findblkname() MI; ok miod (deraadt@)
arch/mvmeppc/mvmeppc
~ autoconf.c
> setroot() was a ugly mix of MI and MD code, with different bugs on
> different
> machines. Instead -- build one solid clean MI version, and thenchange all
> the architectures to use it. ok various people, tested on almost all
> cases.
> (it is a 10094 line diff..) (deraadt@)
~ autoconf.c
> make findblkmajor() and findblkname() MI; ok miod (deraadt@)
arch/sgi/sgi
~ autoconf.c
> setroot() was a ugly mix of MI and MD code, with different bugs on
> different
> machines. Instead -- build one solid clean MI version, and thenchange all
> the architectures to use it. ok various people, tested on almost all
> cases.
> (it is a 10094 line diff..) (deraadt@)
~ autoconf.c
> make findblkmajor() and findblkname() MI; ok miod (deraadt@)
arch/solbourne/solbourne
~ autoconf.c
> setroot() was a ugly mix of MI and MD code, with different bugs on
> different
> machines. Instead -- build one solid clean MI version, and thenchange all
> the architectures to use it. ok various people, tested on almost all
> cases.
> (it is a 10094 line diff..) (deraadt@)
~ autoconf.c
> make findblkmajor() and findblkname() MI; ok miod (deraadt@)
arch/sparc/include
~ autoconf.h
> setroot() was a ugly mix of MI and MD code, with different bugs on
> different
> machines. Instead -- build one solid clean MI version, and thenchange all
> the architectures to use it. ok various people, tested on almost all
> cases.
> (it is a 10094 line diff..) (deraadt@)
arch/sparc/sparc
~ autoconf.c
> setroot() was a ugly mix of MI and MD code, with different bugs on
> different
> machines. Instead -- build one solid clean MI version, and thenchange all
> the architectures to use it. ok various people, tested on almost all
> cases.
> (it is a 10094 line diff..) (deraadt@)
~ autoconf.c
> make findblkmajor() and findblkname() MI; ok miod (deraadt@)
arch/sparc64/include
~ autoconf.h
> setroot() was a ugly mix of MI and MD code, with different bugs on
> different
> machines. Instead -- build one solid clean MI version, and thenchange all
> the architectures to use it. ok various people, tested on almost all
> cases.
> (it is a 10094 line diff..) (deraadt@)
arch/sparc64/sparc64
~ autoconf.c
> setroot() was a ugly mix of MI and MD code, with different bugs on
> different
> machines. Instead -- build one solid clean MI version, and thenchange all
> the architectures to use it. ok various people, tested on almost all
> cases.
> (it is a 10094 line diff..) (deraadt@)
~ autoconf.c
> make findblkmajor() and findblkname() MI; ok miod (deraadt@)
arch/vax/conf
~ files.vax
> setroot() was a ugly mix of MI and MD code, with different bugs on
> different
> machines. Instead -- build one solid clean MI version, and thenchange all
> the architectures to use it. ok various people, tested on almost all
> cases.
> (it is a 10094 line diff..) (deraadt@)
arch/vax/vax
- rootfil.c ~ autoconf.c
> setroot() was a ugly mix of MI and MD code, with different bugs on
> different
> machines. Instead -- build one solid clean MI version, and thenchange all
> the architectures to use it. ok various people, tested on almost all
> cases.
> (it is a 10094 line diff..) (deraadt@)
~ autoconf.c
> make findblkmajor() and findblkname() MI; ok miod (deraadt@)
arch/zaurus/conf
~ GENERIC
> setroot() was a ugly mix of MI and MD code, with different bugs on
> different
> machines. Instead -- build one solid clean MI version, and thenchange all
> the architectures to use it. ok various people, tested on almost all
> cases.
> (it is a 10094 line diff..) (deraadt@)
arch/zaurus/zaurus
~ autoconf.c
> setroot() was a ugly mix of MI and MD code, with different bugs on
> different
> machines. Instead -- build one solid clean MI version, and thenchange all
> the architectures to use it. ok various people, tested on almost all
> cases.
> (it is a 10094 line diff..) (deraadt@)
~ autoconf.c
> make findblkmajor() and findblkname() MI; ok miod (deraadt@)
dev/isa
~ mcd.c
> move bcd tables to the only place that uses them (the unused mcd driver);
> ok miod (deraadt@)
dev/pci
~ if_vic.c
> do not call vic_init() on ENETRESET in the ioctl handler, use
> vic_iff() instead. vic_init() calls vic_init_data() which sets up the
> rings and allocates the dma maps. it could happen that vic_init() was
> called for multiple times without releasing them first by calling
> vic_uninit_data(). ouch! this may have caused some problems related to
> dmamap corruption but we'll do further investigation.
> ok dlg@ (reyk@)
~ if_nx.c ~ if_nxreg.h
> swap the port register table arrays to make it better readble and fix some
> register typos... on init, wait for the receive engine to be ready before
> setting up the descriptor rings. (reyk@)
~ if_vic.c
> when it does not compile we KNOW it was not tested. come on (deraadt@)
~ if_sis.c
> Initialize the sis_timeout early in attach instead of sis_init.
> Sometimes we can can call timeout_del on it before we call sis_init.
> From mickey. art@ ok. (art@)
~ files.pci
> bnx requires firmload (jsg@)
~ files.pci
> firmload for nx as well (jsg@)
~ if_tht.c
> wrap the wptr round when we hit the end of the fifo. (dlg@)
~ if_tht.c
> put more rx descriptors back on the chip straight after we've taken some
> off. (dlg@)
~ if_tht.c
> disable debugging output (dlg@)
~ if_tht.c
> call the right function to fill the rxf fifo after rxd (dlg@)
~ if_tht.c
> increase the number of tx and rx descriptors from 64 to 128 each (dlg@)
~ if_tht.c
> advertise tx checksumming to the network stack, and tell the hardware to
> do it. (dlg@)
~ if_tht.c
> the hardware does checksumming on rx as well. mark the mbufs with what the
> hw says. (dlg@)
kern
~ subr_disk.c
> setroot() was a ugly mix of MI and MD code, with different bugs on
> different
> machines. Instead -- build one solid clean MI version, and thenchange all
> the architectures to use it. ok various people, tested on almost all
> cases.
> (it is a 10094 line diff..) (deraadt@)
~ kern_rwlock.c
> - Rename rw_test_and_set to rw_cas, since most litterature uses the
> test_and_set name for some other operation, while cas is generally
> used for compare and set (cmpxchg in intel land, cas in sparc land).
> - Make rw locks properly MP safe (provided that rw_cas is implemented
> in MD code). Most operations were MP safe except the sleep where we
> could have set the "I'm sleeping" flag before actually going to sleep
> so that the wakeup could miss us. Now, using the split tsleep,
> we first setup the sleep (put us on the sleep queues), then set
> the flag aborting the sleep if the lock has changed and then finally
> go to sleep.
> miod@ ok (and he's been prodding me for days to get this in) (art@)
~ kern_rwlock.c
> Kill a dead variable.
> Pointed out by thib@ (art@)
~ subr_disk.c
> make findblkmajor() and findblkname() MI; ok miod (deraadt@)
~ subr_disk.c
> when we are in ramdisk mode, we must also disable any previous mountroot
> setting that pre-setroot() code did (for instance a network boot)
> found by phessler, tested by reyk (deraadt@)
lib/libkern
- arch/amd64/strcat.S - arch/amd64/strcpy.S
- arch/i386/strcat.S - arch/i386/strcpy.S
- arch/m68k/strcat.S - arch/m68k/strcpy.S
- strcat.c - strcpy.c
~ arch/amd64/Makefile.inc
> remove strcpy and strcat from the kernel; they are dead and unused code.
> (OpenBSD does not use strcat/strcpy in the kernel, if people do it in
> external modules they should update their code)
> ok deraadt@ (reyk@)
- bcd.c ~ Makefile
~ libkern.h
> move bcd tables to the only place that uses them (the unused mcd driver);
> ok miod (deraadt@)
- locc.c ~ libkern.h
> locc() is dead, spotted by miod (deraadt@)
- arch/i386/locc.S - arch/m68k/locc.S
~ arch/i386/Makefile.inc ~ arch/m68k/Makefile.inc
~ arch/powerpc/Makefile.inc
> more locc() dies (deraadt@)
lib/libsa
~ stand.h
> remove strcpy and strcat from the kernel; they are dead and unused code.
> (OpenBSD does not use strcat/strcpy in the kernel, if people do it in
> external modules they should update their code)
> ok deraadt@ (reyk@)
netinet
~ ip_carp.c
> make carp's routing table modification attempts (imho broken by design)
> at least exhibit routing messages so it does not confuse the userland
> routing daemons by routing table changes not reflected by messages on the
> routing socket. effect would be bgpd using wrong nexthops for example, in
> the worst case (that i actually ran into) blackholing traffic.
> ok reyk claudio "looks correct" miod (henning@)
scsi
~ ses.c
> lockmgr -> rwlock.
> "reads good" art@ ok marco@ (krw@)
sys
~ device.h
> setroot() was a ugly mix of MI and MD code, with different bugs on
> different
> machines. Instead -- build one solid clean MI version, and thenchange all
> the architectures to use it. ok various people, tested on almost all
> cases.
> (it is a 10094 line diff..) (deraadt@)
~ rwlock.h
> - Rename rw_test_and_set to rw_cas, since most litterature uses the
> test_and_set name for some other operation, while cas is generally
> used for compare and set (cmpxchg in intel land, cas in sparc land).
> - Make rw locks properly MP safe (provided that rw_cas is implemented
> in MD code). Most operations were MP safe except the sleep where we
> could have set the "I'm sleeping" flag before actually going to sleep
> so that the wakeup could miss us. Now, using the split tsleep,
> we first setup the sleep (put us on the sleep queues), then set
> the flag aborting the sleep if the lock has changed and then finally
> go to sleep.
> miod@ ok (and he's been prodding me for days to get this in) (art@)
~ device.h
> make findblkmajor() and findblkname() MI; ok miod (deraadt@)
== usr.bin =========================================================== 05/06 ==
http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin
calendar
~ calendars/calendar.music
> warren zevon's death
> from Matthew Clarke <clamat at telus.net> (jasper@)
== usr.sbin ========================================================== 06/06 ==
http://www.openbsd.org/cgi-bin/cvsweb/src/usr.sbin
kgmon
~ kgmon.c
> From dhill@ last year:
> - rename system to sys to stop shadowing the system() call.
> - remove variable names in function declarations
> - remove extern optarg and optind since it's defined in unistd.h
> - use %zu instead of %d to print size_t's
> OK jaredy@ (ray@)
pkg_add
~ pkg_create
> move some checks after -q/-Q so that plists can still be printed.
> problem noticed by Bernd. (espie@)
===============================================================================
More information about the odc
mailing list