summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2011-03-18Fix obj directory probing to support cross compiling.Matthew Dempsky
"Go for it" deraadt@
2011-03-18Old-style MTRRs were never used on amd64, so remove the remaining tracesPhilip Guenthe
of them, as well as some other unused proc md_flags bits: MDP_COMPAT and MDP_SYSCALL. ok mikeb@
2011-03-17- recognize OMAP3630/DM3730, as found in the beagleboard xMJasper Lievisse Adriaanse
ok drahn@
2011-03-17Make the various findopenbsd() functions non-recursive, eliminatingKenneth R Westerback
a global, a couple of parameters, and opening up possibility of traversing much longer EBR lists without blowing the stack. Make seach algorithm the same as used in kern/subr_disk.c by checking all primary partitions in the MBR/EBR before moving to next EBR. This makes it more likely that everybody finds the same OpenBSD partition. Largely from a diff posted to tech@ by ucsavl.
2011-03-16Recognize LM6002 as prefix for earlier Fuloong designs, and also recognizeMiod Vallat
prefixless `1.2.*' version information as LM6002, with a warning message as their may be surprises if there are non-Fuloong prototypes in the wild ever with 1.2 PMON code. Per discussion with Roland Kammerer who is the happy owner of an LM6002.
2011-03-15unbreak tree for nested endian.h includesTheo de Raadt
2011-03-15Bunch of white space and style adjustments to make amd64 versionKenneth R Westerback
the same as i386 version. No change to .o file except for the one %lld -> %u format fix.
2011-03-14Clamp BIOS io attempts to < 2 ^28 - 1 sectors (a.k.a. 128GB forKenneth R Westerback
512-byte sectors) as some BIOSen get confused when we ask for sectors higher up. Uss u_int throughout the boot code to calculate sector addresses, since 32 bits is enough to do 28 ^ 1 - 1 arithmetic. Add checks for wraparound. I can now install and boot from the 7th extended partition below 128GB. Much feedback & guidance from deraadt@. Also from weingart@ on BIOS io. ok deraadt@ (less a couple of minor tweaks found in testing)
2011-03-14use DPLL5 as a 120MHz reference clock to be used by the usb subsystem whichJasper Lievisse Adriaanse
previously had no clue and would crash. feedback/ok drahn@
2011-03-14Support pieces for usb (not working just yet).Dale Rahn
2011-03-14- replace a magic number with an address define, as checked againstJasper Lievisse Adriaanse
the omap3530 and dm3730 datasheets. ok drahn@
2011-03-14Fix spelling in commentPhilip Guenthe
2011-03-13Disable write gathering on devio settings we inherit from ARCS.Miod Vallat
2011-03-13Change daddr_t to daddr32_t. The bootblocks on our architectures onlyTheo de Raadt
do 32-bit block spanning. If later on we get some that can/should do 64-bit, that can be done now using daddr64_t (but of course, we are taking this step to finalize the daddr_t 64-bit conversion). ok miod krw
2011-03-12Be more paranoid when attempting to parse an IA record, and make sure weMiod Vallat
won't try to read past the end of the record, no matter what kind of garbage it may contain. No functional change on IP35 systems with valid IA records.
2011-03-12Implement swap64 with the bswapq instruction. (Commit stolen from mikeb@)Philip Guenthe
Add missing __statement modifiers and correct %1 to %0 in the asm. ok mikeb@, pirofti@, drahn@
2011-03-12incorrect parameters to warn()Theo de Raadt
2011-03-12Add missing __statement modifiers in various endian.h files and correctPhilip Guenthe
%1 to %0 in the i386 asm. asm correction ok drahn@
2011-03-12Provide distinct segments for the %fs and %gs selectors to use byPhilip Guenthe
default, with per-rthread base offsets and with sysarch() functions, I386_{GET,SET}_{FS,GS}BASE, for fetching and setting those base offsets. This is necessary for both rthread and Linux compat support. suggestions from kettenis@, prodding from pirofti@ and deraadt@
2011-03-11Zap stack garbage before passing buffer to biosd_io(), which mayKenneth R Westerback
be lied to by the BIOS about successfully reading data. ok deraadt@ weingart@
2011-03-11Use _MACHINE_ENDIAN_H_ for this is The Right Thing To Do.Paul Irofti
Okay guenther@, millert@.
2011-03-08vrng should go onto the ramdisk.Theo de Raadt
ok kettenis
2011-03-08Fix extended partition searching so we don't get lost. The offsetKenneth R Westerback
of the next EBR is relative to the start of the extended partition described in the first MBR, not relative to the EBR specifying the offset in its extended partition entry. Clean up installboot -v output. Use daddr64_t for all sector numbers. Not a complete fix, but better than what we had. More tweaks to come. Inspired by a diff and cluebat from uscav on tech@ a few weeks ago. Feedback from matthew@, weingart@. ok deraadt@
2011-03-07noone will ever use NTFS on alphaTheo de Raadt
2011-03-06The global_int information acpi collects is not used by amd64.Theo de Raadt
ok ketttenis
2011-03-05since the bus_space_barrier function does the same membar operation forTheo de Raadt
all cases, it should not waste time doing extra if/else if/else if/else conditions. i wonder how much this is going to speed up sparc64... ok miod kettenis
2011-03-03Prevent division-by-zero when scaling down to the screen resolution. MakeMark Kettenis
the WSMOUSEIO_SCALIBCOORDS fail with EINVAL if the settings would cause a division-by-zero. ok deraadt@
2011-03-03Crank MAXDSIZ up to 2G on macppc and socppc.Antoine Jacoutot
ok miod@ drahn@ kettenis@
2011-03-03- remove unused devices for which we have no drivers (yet?)Jasper Lievisse Adriaanse
ok miod@
2011-03-02Change va_arg and va_end definitions from object-like macros toMatthew Dempsky
function-like macros. Allows (questionable but legal) use of "va_arg" as a local variable name in code that includes <stdarg.h>. "seems right" deraadt@
2011-03-02- change recieved -> received in comments, as well as two unused definesJasper Lievisse Adriaanse
in pxe.h. ok deraadt@ sthen@
2011-02-26Force the DUID cache used to generate hw.disknames to be updatedKenneth R Westerback
after every disklabel read or write. This keeps the DUID cache more in sync with the physical world. De-syncing noted by drahn@ while zapping disklabels with dd. ok jsing@ deraadt@
2011-02-21Remove redundant statement to keep this in line with radeonfb(4).Mark Kettenis
ok miod@
2011-02-21Re-initialize acceleration engine after leaving X.Mark Kettenis
ok miod@
2011-02-19Only attach if the "device_type" propery is "programmer-button". On the iMacMark Kettenis
G5 (PowerMac8,2) attaching pgs(4) makes the machine hang. This machine has the "device_type" property set to "gpio" attaching pgs(4), which is that case for newer machines that don't seem to have a real button anyway. ok miod@, jasper@
2011-02-17Disable sbt and ubt devices. The bluetooth code will sometimes sleep whileMiod Vallat
holding locks, this is not allowed, and nobody has stepped up to fix this, so better not lure people into using bluetooth devices.
2011-01-28you use ; to end a statement, not a :.David Gwynne
2011-01-27Atom uses the same value for bus clock 200 MHz as Core, thoughJonathan Gray
this is not documented by Intel. tested by henning on d525
2011-01-23Ansify function.Joel Sing
2011-01-23Add support to installboot(8) for installing biosboot(8) and boot(8) onJoel Sing
softraid volumes. If installboot is run on a softraid volume, a fake single inode FFS filesystem is constructed to contain boot(8). This is then installed onto the softraid volume via the BIOCINSTALLBOOT ioctl. biosboot(8) is then patched and installed onto each disk that is a member of the softraid volume. Joint work with otto@ who came up with the concept of constructing a fake FFS filesystem and wrote the code to do so. No objection from miod@
2011-01-23Ansify functions.Joel Sing
2011-01-23Spinning up secondary CPUs on an MP kernel results in PDC output on theJoel Sing
system LCD. Move LCD initialisation to a mountroot hook in order to avoid PDC output after initialisation. Committing on behalf of kettenis@
2011-01-15enable RDC Ethernet (vte/rdcphy)Kevin Lo
2011-01-14creator needs firmload. ok miod@Matthieu Herrb
2011-01-14- use nitems()Jasper Lievisse Adriaanse
"doesn't hurt" deraadt@
2011-01-14Halt secondary CPUs when shutting down or rebooting. This should preventJoel Sing
occasional hangs during reboot. ok kettenis@
2011-01-14Implement a function to broadcast IPIs to all running CPUs.Joel Sing
ok kettenis@ deraadt@ miod@
2011-01-14Provide an IPI to halt a CPU.Joel Sing
ok kettenis@ deraadt@ miod@
2011-01-13if the BIOS tells us to suspend at the same time that we notice a lidTheo de Raadt
event, don't suspend twice. ok jsg
2011-01-13move to 4.9-currentTheo de Raadt