summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2007-10-10malloc+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-10Change argsize from size_t to short, since it only stores a shortRay Lai
value. Fixes a format string error. Pointed out by deraadt, OK miod.
2007-10-08Align the suspend saved data to a cache line boundary, apparently preventsMiod Vallat
issues upon resume.
2007-10-08A few trailing bzero/memset -> M_ZERO occurrences, cast removal andKenneth R Westerback
size(*p) usage. This should be the last of the simple malloc() changes.
2007-10-08A few trailing bzero/memset -> M_ZERO occurrences, cast removal andKenneth R Westerback
size(*p) usage.
2007-10-08isa0 at amdpcib? got skipped, sighTheo de Raadt
2007-10-08enable spdmem where it mattersTheo de Raadt
2007-10-08More simple memset(,0,) -> M_ZERO changes. In this batch move toKenneth 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-08Don't skip EEPROMs in ofw i2c scan,Jonathan Gray
match on sparc64 SPD name in spdmem. Tested on a V120. ok deraadt@
2007-10-07Add a driver, amdpcib(4), for the AMD 8111 series LPC bridge and HPET writtenMarc 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-07Add support for the PCI-ISA bridge, timecounter, and watchdog timerMarc 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-06Simpliest 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-06Some archs used memset() rather than bzero(). So duplicate diffKenneth 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-06Provide <machine/lock.h> on hppa64 too.Mark Kettenis
2007-10-06Simple single-processor only mutex implementation; cloned from hppa.Mark Kettenis
2007-10-06Remove unused variable.Mark Kettenis
2007-10-06Oops. Forgot to do FREE -> free when I did MALLOC -> malloc.Kenneth R Westerback
2007-10-03MALLOC+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-03Add pcb_flags member to 'struct pcb', and set PCB_SAVECTX on contexts savedMark Kettenis
by savectx(). ok art@, miod@
2007-10-02Fiddle Sun traditional disklabel recognition to eliminate union andKenneth 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-02Apply (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-01More easy bzero() -> M_ZERO. Use 'p = malloc(sizeof(*p) ...' whereKenneth R Westerback
obvious.
2007-10-01more btoc -> atopMartin Reindl
2007-09-30Move intrpending array into 'struct cpu_info'.Mark Kettenis
2007-09-30On 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-30Enable Broadcom wireless, bwi(4).Jonathan Gray
If people testing could send mail to mglocker and myself we'd appreciate it. ok mglocker@
2007-09-29At 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-24Ooops, i386 entry was enabled by mistake. Disable it. Sorry.Marcus Glocker
2007-09-24Add bwi PCI and Cardbus GENERIC entries for i386 and amd64, but stillMarcus Glocker
disabled for now. From brad@
2007-09-22Add kernel locking.Mark Kettenis
2007-09-22cf_context_switch takes an u_int argument.Mark Kettenis
ok drahn@
2007-09-22M_ZERO -> bzero.Kenneth R Westerback
ok art@
2007-09-22replace even more ctob and btoc with ptoa and atop respectively plusMartin Reindl
uvm_extern.h where needed
2007-09-19On sparc & sparc64, change `mount -a` to recognise Linux ext2 partitionsMarc Aurele La France
by interpreting more fields out of a standard Sun disk label. ok krw@
2007-09-18arc4random_bytes() is the preferred interface for generating nonces;Damien Miller
"looks ok" markus@
2007-09-18As a temporary workaround, implement va_start not usingOtto Moerbeek
__builtin_next_arg for !GCC until pcc supports it. ok kjell@ miod@
2007-09-18Fix typo (`Advancded').Michael Knudsen
2007-09-18Only the most obvious bzero() -> M_ZERO changes. No cast changes, noKenneth R Westerback
MALLOC/FREE, etc. Just adding M_ZERO to malloc() and deleting an immediately adjacent bzero().
2007-09-17MALLOC/FREE -> malloc/free and M_ZERO changesCharles Longeau
ok krw@
2007-09-17Only the most obvious bzero() -> M_ZERO changes. No cast changes, noKenneth R Westerback
MALLOC/FREE, etc. Just adding M_ZERO to malloc() and deleting an immediately adjacent bzero().
2007-09-15realy -> 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 onKenneth R Westerback
tech@ by Jung.
2007-09-15replace ctob and btoc with ptoa and atop respectivelyMartin Reindl
help and ok miod@ thib@
2007-09-13Don't bother bitching if APM does not exist. PleantyTobias 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-12port of i386 pctr code to amd64; Mike BelopuhovTheo de Raadt
2007-09-12s/atoin/ation/ typosCharles Longeau
ok ray@ cnst@ moritz@ sobrado@ millert@ mbalmer@
2007-09-11henric, tsk tsk, you missed stuff related to cryptosoftTheo de Raadt
2007-09-10Remove unused "extern" declaration.Henric Jungheim
ok tom@
2007-09-10Missing $OpenBSD$ tag.Mark Kettenis
2007-09-10IPI implementation. Bits and pieces from NetBSD, but the interface has beenMark 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.