Age | Commit message (Collapse) | Author | |
---|---|---|---|
2007-10-10 | malloc+bzero -> malloc+M_ZERO. Use 'malloc(sizeof(*p) ...' idiom. | Kenneth R Westerback | |
This completes my bzero/memset(,0,) -> M_ZERO sweep of the tree. ok kettenis@ | |||
2007-10-10 | Change argsize from size_t to short, since it only stores a short | Ray Lai | |
value. Fixes a format string error. Pointed out by deraadt, OK miod. | |||
2007-10-08 | Align the suspend saved data to a cache line boundary, apparently prevents | Miod Vallat | |
issues upon resume. | |||
2007-10-08 | A few trailing bzero/memset -> M_ZERO occurrences, cast removal and | Kenneth R Westerback | |
size(*p) usage. This should be the last of the simple malloc() changes. | |||
2007-10-08 | A few trailing bzero/memset -> M_ZERO occurrences, cast removal and | Kenneth R Westerback | |
size(*p) usage. | |||
2007-10-08 | isa0 at amdpcib? got skipped, sigh | Theo de Raadt | |
2007-10-08 | enable spdmem where it matters | Theo de Raadt | |
2007-10-08 | More simple memset(,0,) -> M_ZERO changes. In this batch move to | Kenneth R Westerback | |
size(*p) as the first malloc() parameter where p is declared locally and thus easy to check. Add M_ZERO to gpe_table allocation in acpi.c even though there is no obvious bzero or memset nearby. | |||
2007-10-08 | Don't skip EEPROMs in ofw i2c scan, | Jonathan Gray | |
match on sparc64 SPD name in spdmem. Tested on a V120. ok deraadt@ | |||
2007-10-07 | Add a driver, amdpcib(4), for the AMD 8111 series LPC bridge and HPET written | Marc Balmer | |
by mickey, man page by me. Help, suggestions by Theo and jmc. Enable this driver and glxpcib(4) in all RAMDISK kernel, but glxpcib(4) does not provide the watchdog timer in the RAMDISK kernels. Prodded by deraadt. E | |||
2007-10-07 | Add support for the PCI-ISA bridge, timecounter, and watchdog timer | Marc Balmer | |
found in the CS5536 companion chip to the AMD Geode LX-800 processor. glxpcib(4) driver written by mickey, with some tweaks by me. Manpage nits by jmc. Tested on the Soekris net5501 (by me) and the Alix 2a2 (by earxtacy@dixinet.com) ok kettenis | |||
2007-10-06 | Simpliest memset(,0,) -> M_ZERO changes. One (caddr *) cast removal, | Kenneth R Westerback | |
otherwise just adding M_ZERO to malloc() and removing the immediately adjacent memset(,0,). | |||
2007-10-06 | Some archs used memset() rather than bzero(). So duplicate diff | Kenneth R Westerback | |
previously applied to other archs deleting a memset() this time. e.g. - if ((mapstore = malloc(mapsize, M_DEVBUF, - (flags & BUS_DMA_NOWAIT) ? M_NOWAIT : M_WAITOK)) == NULL) + if ((mapstore = malloc(mapsize, M_DEVBUF, (flags & BUS_DMA_NOWAIT) ? + (M_NOWAIT | M_ZERO) : (M_WAITOK | M_ZERO))) == NULL) return (ENOMEM); - memset(mapstore, 0, mapsize); | |||
2007-10-06 | Provide <machine/lock.h> on hppa64 too. | Mark Kettenis | |
2007-10-06 | Simple single-processor only mutex implementation; cloned from hppa. | Mark Kettenis | |
2007-10-06 | Remove unused variable. | Mark Kettenis | |
2007-10-06 | Oops. Forgot to do FREE -> free when I did MALLOC -> malloc. | Kenneth R Westerback | |
2007-10-03 | MALLOC+bzero -> malloc+M_ZERO. | Kenneth R Westerback | |
In ip_esp.c all allocated memory is now zero'd in the "malloc(sizeof(*tc) + alen ..." case. The +alen memory was not initialized by the bzero() call. Noticed by chl@. "Looks good" art@ "seems ok" chl@ | |||
2007-10-03 | Add pcb_flags member to 'struct pcb', and set PCB_SAVECTX on contexts saved | Mark Kettenis | |
by savectx(). ok art@, miod@ | |||
2007-10-02 | Fiddle Sun traditional disklabel recognition to eliminate union and | Kenneth R Westerback | |
associated field access defines. This reverts most changes to dev/sun/disklabel.h without eliminating new functionality. Fix comments to line up and fit on 80 column line, making both tsi@ and I feel better. Simplify logic in disksubr.c. No semantic change. Tested & ok tsi@. | |||
2007-10-02 | Apply (with slight variants) this elimination of bzero() with M_ZERO: | Kenneth R Westerback | |
- if ((mapstore = malloc(mapsize, M_DEVBUF, - (flags & BUS_DMA_NOWAIT) ? M_NOWAIT : M_WAITOK)) == NULL) + if ((mapstore = malloc(mapsize, M_DEVBUF, (flags & BUS_DMA_NOWAIT) ? + (M_NOWAIT | M_ZERO) : (M_WAITOK | M_ZERO))) == NULL) return (ENOMEM); - bzero(mapstore, mapsize); | |||
2007-10-01 | More easy bzero() -> M_ZERO. Use 'p = malloc(sizeof(*p) ...' where | Kenneth R Westerback | |
obvious. | |||
2007-10-01 | more btoc -> atop | Martin Reindl | |
2007-09-30 | Move intrpending array into 'struct cpu_info'. | Mark Kettenis | |
2007-09-30 | On i386, only call amd64_errata() on amd64 processors (family 0xf), | Gordon Willem Klok | |
tested by krw@. This diff by itself is insufficient to ensure that we are only running on an amd64: todd@'s machine is a mobile Athlon XP that has a cpuid family of 0xf but is not an amd64 processor so more must be done but this should prevent the vast majority of cases. ok tom@ | |||
2007-09-30 | Enable Broadcom wireless, bwi(4). | Jonathan Gray | |
If people testing could send mail to mglocker and myself we'd appreciate it. ok mglocker@ | |||
2007-09-29 | At the requst of deraadt@, backpout the temporary hack for pcc. | Otto Moerbeek | |
Paraphrasing, "make it clear this should be fixed in pcc asap". | |||
2007-09-24 | Ooops, i386 entry was enabled by mistake. Disable it. Sorry. | Marcus Glocker | |
2007-09-24 | Add bwi PCI and Cardbus GENERIC entries for i386 and amd64, but still | Marcus Glocker | |
disabled for now. From brad@ | |||
2007-09-22 | Add kernel locking. | Mark Kettenis | |
2007-09-22 | cf_context_switch takes an u_int argument. | Mark Kettenis | |
ok drahn@ | |||
2007-09-22 | M_ZERO -> bzero. | Kenneth R Westerback | |
ok art@ | |||
2007-09-22 | replace even more ctob and btoc with ptoa and atop respectively plus | Martin Reindl | |
uvm_extern.h where needed | |||
2007-09-19 | On sparc & sparc64, change `mount -a` to recognise Linux ext2 partitions | Marc Aurele La France | |
by interpreting more fields out of a standard Sun disk label. ok krw@ | |||
2007-09-18 | arc4random_bytes() is the preferred interface for generating nonces; | Damien Miller | |
"looks ok" markus@ | |||
2007-09-18 | As a temporary workaround, implement va_start not using | Otto Moerbeek | |
__builtin_next_arg for !GCC until pcc supports it. ok kjell@ miod@ | |||
2007-09-18 | Fix typo (`Advancded'). | Michael Knudsen | |
2007-09-18 | Only the most obvious bzero() -> M_ZERO changes. No cast changes, no | Kenneth R Westerback | |
MALLOC/FREE, etc. Just adding M_ZERO to malloc() and deleting an immediately adjacent bzero(). | |||
2007-09-17 | MALLOC/FREE -> malloc/free and M_ZERO changes | Charles Longeau | |
ok krw@ | |||
2007-09-17 | Only the most obvious bzero() -> M_ZERO changes. No cast changes, no | Kenneth R Westerback | |
MALLOC/FREE, etc. Just adding M_ZERO to malloc() and deleting an immediately adjacent bzero(). | |||
2007-09-15 | realy -> really in comments. Most reported on tech@ by Jung. | Kenneth R Westerback | |
2007-09-15 | [fF]uther -> [fF]urther in comments and man page. First one spotted on | Kenneth R Westerback | |
tech@ by Jung. | |||
2007-09-15 | replace ctob and btoc with ptoa and atop respectively | Martin Reindl | |
help and ok miod@ thib@ | |||
2007-09-13 | Don't bother bitching if APM does not exist. Pleanty | Tobias Weingartner | |
enough systems today do not have apm. Also, the existance of apm is given on the probe line, absence means it ain't there. | |||
2007-09-12 | port of i386 pctr code to amd64; Mike Belopuhov | Theo de Raadt | |
2007-09-12 | s/atoin/ation/ typos | Charles Longeau | |
ok ray@ cnst@ moritz@ sobrado@ millert@ mbalmer@ | |||
2007-09-11 | henric, tsk tsk, you missed stuff related to cryptosoft | Theo de Raadt | |
2007-09-10 | Remove unused "extern" declaration. | Henric Jungheim | |
ok tom@ | |||
2007-09-10 | Missing $OpenBSD$ tag. | Mark Kettenis | |
2007-09-10 | IPI implementation. Bits and pieces from NetBSD, but the interface has been | Mark Kettenis | |
changed to free up another 64-bit word in the interrupt transaction. This means we have two 64-bit words available for arguments, which means we probably don't need to pass arguments through structures. |