summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2015-08-15typoMiod Vallat
2015-08-15Remove orphaned debug code.Miod Vallat
2015-08-15If the SRM has explicitely set up some ISA interrupts level-triggered,Miod Vallat
honour this setting and consider them level-triggered instead of `polarity decided by the first driver to use it'. Add explicit code to turn registration of edge-triggered interrupts 3 and 4 into level-triggered, if they were set up a level-triggered by the SRM. Based upon a NetBSD diff which eventually got reverted in NetBSD. However, it turns out this is necessary for the kernel to correctly run with serial console on my Multia.
2015-08-15Store the {e,}isa_chipset_t in the softc, rather than on sio_bridge_callback()'sMiod Vallat
stack, for {e,}isa drivers might have a need for them way after autoconf - at least pcic@isa does.
2015-08-15No need to cargo-cult include <alpha/pci/sioreg.h> here.Miod Vallat
2015-08-15Fix isa_chipset_t ic_intr_{alloc,check} prototype: these take anMiod Vallat
isa_chipset_tag_t, not an isa_chipset_tag_t *, as isa_chipset_tag_t is already a pointer.
2015-08-15Enable AlphaBook 1 support in bsd.rd tooMiod Vallat
2015-08-15When resetting the hwrpb after a succesfull secondary processor spinup,Miod Vallat
make its start routine point to cpu_halt, just in case.
2015-08-15Increase the size of the masks used in i386 ldscript to account for largerMike Larkin
sections that may be encountered when using larger than normal ramdisks. No binary change. Requested by and diff provided by Nathanael Rensen <nathanael at list.polymorpheus.com>
2015-08-14replace the asm mutexes with a c implementation.David Gwynne
there's no real functional advantage to this, except that it will make it easier to add deadlock detection to the code. this is modelled on the c mutex implementation thats on alpha, mips64, and hppa. ok mpi@ kettenis@
2015-08-12Use a linker script when building i386 kernels to allow section padding onMike Larkin
PAGE_SIZE boundaries. This is required to enforce proper separation of sections when adding page protections (coming shortly). This was in snaps before release with no reported side effects. ok deraadt@
2015-08-12Fix a free of an uninitialized variable in an error path.Mike Larkin
ok miod@ found by Maxime Villard / Brainy Code Scanner. thanks.
2015-08-12Incorrect comparison when accessing cpuid extended function 0x80000007.Mike Larkin
ok kettenis@, guenther@
2015-08-11Remove unnecessary pmap == NULL checks in mips64 pmap.Visa Hankala
ok miod@
2015-08-10Explicitly NULL-terminate mpbios_icu_table as required by the code whichTheo de Raadt
uses it. On ramdisk kernels built with -Os, (accidental termination) did not occur, leading to heisenbug occurances.... Found by Mike Larkin, ok kettenis
2015-08-10Explicitly NULL-terminate mpbios_icu_table as required by the code whichTheo de Raadt
uses it. On ramdisk kernels built with -Os, (accidental termination) did not occur, leading to heisenbug occurances....
2015-08-05Add octrtc(4) to RAMDISK.Paul Irofti
Okay deraadt@, jasper@.
2015-08-04Remove some ancient code in PAE mode that was part of supporting > 4GBMike Larkin
physmem on i386, which we don't support anymore. And since we removed the physmem ranges above 4GB in machdep.c, this code did nothing anyway. ok beck@, deraadt@
2015-08-03On mips64, enable IPIs before calling refreshcreds() in trap(), toVisa Hankala
avoid a potential deadlock. ok miod@, deraadt@
2015-08-03add amdcf(4) here too; unbreaks RAMDISKJasper Lievisse Adriaanse
ok pirofti@
2015-07-30Make mips64 pmap prepared for the unlocked reaper.Visa Hankala
ok miod@, deraadt@
2015-07-2917 years ago, setfault() was modified to save the status register in theMiod Vallat
faultbuf. But 1/ sr was only restored for machine check exceptions, and 2/ the way it was saved was unsafe if interrupts were enabled, and could cause %r2 to be lost. Discussing this with deraadt@ at the end of c2k15, this was probably needed for the old VI boards which were the target of the original powerpc port, came with a worse-than-Genesi openfirmware. Since then, machine check exceptions have been unheard of; or, if they happen, they do not need the status register to be restored. ok mpi@ deraadt@
2015-07-29Acquire the kernel lock in pmap_remove(). The reasons for this can't beMiod Vallat
stated here as I have been asked to be polite in this commit message. ok deraadt@
2015-07-27Allow coalescing of IPI requests on mips64, to make IPI sendingVisa Hankala
non-blocking. This improves performance on systems that have more than a few cores and where there is a heavy IPI load. Currently the only place where coalescing must not happen is rendezvous processing, but there invocations are serialized by the rendezvous mutex. ok miod@
2015-07-27Always #include <sys/mutex.h>: need struct mutex for struct vm_page_mdPhilip Guenther
problem noted by landry@ ok dlg@
2015-07-26Make sure pci_intr_map() will perform proper interrupt swizzling for devicesMiod Vallat
behind a bridge, if the SRM didn't pick an interrupt line for them.
2015-07-25Only store mod/ref flags in the vm_page_md struct, not in every pv_entry.Miod Vallat
2015-07-23Revert attempted GPT code cleanup. Too much code, too little testing.Kenneth R Westerback
Requested by deraadt@
2015-07-23Missed file in *_data_offset -> *_data_blkno switch.Kenneth R Westerback
Found the hardway by benoit@.
2015-07-23Attach pvbus(4) later just before pci(4). Same change was done for amd64.Reyk Floeter
Tested on VMware-GENERIC-i386. OK mlarkin@
2015-07-23GPT appears to create broken spoofed labels for empty disks (at least vnd,Theo de Raadt
maybe related to the small size of such media)
2015-07-21pvbus(4) was attaching too early, it has to wait for identifycpu.Reyk Floeter
Problem found on GENERIC by mlarkin. OK mlarkin@
2015-07-21Let octeon kernel compile again with the MP_LOCKDEBUG option.Visa Hankala
ok miod@
2015-07-21Sync with amd64; add LAPIC timer definitions.Masao Uebayashi
2015-07-21add braces to avoid an uninitialised variable useJonathan Gray
ok mpi@ looks correct miod@
2015-07-21Define some LAPIC timer register values.Masao Uebayashi
2015-07-21Add pvbus(4), a pseudo-bus to attach non-PCI paravirtual devices and buses.Reyk Floeter
vmt(4) is moved from mainbus0 to pvbus0, more devices will follow. OK sf@ deraadt@
2015-07-21A few more daddr_t fixes. Rename 'phys_off' variables to 'offset'Kenneth R Westerback
since they are now relative to chunks. Use 'blkno' as normal variable name for daddr_t items rather than mix of 'blkno, blk, offset. Change field name ssd_data_offset to ssd_data_blkno since it is a block and not byte quantity. No intentional functional change.
2015-07-20Add a new flash driver for Octeon that allows access to the internalPaul Irofti
memory on (at least) D-Link DSR500 machines. This follows the CFI specification with code borrowed from zrouter (FreeBSD). The idea, once the current driver is thoroughly tested, would be to move it to MI land. The prerequisites to MI are width, shift and row detection and handling. In the long run I hope to be able to also add wdc support. For now write support is disabled. Okay miod@, deraadt@.
2015-07-20go a bit further with miods last change to copy{in,out}{,str} andDavid Gwynne
stash the address of the user structure to avoid having to always follow two pointers to get to the address of the onfault handler. this lets the code shrink and avoids some register use. while here, move the range checking of the arguments before saving the callers args onto the stack so we can ret faster on error. ok miod@
2015-07-20it's unlikely we'll run on physical octeon hardware that's little endian;Jasper Lievisse Adriaanse
therefore remove unneeded ifdef blocks. ok miod@ pirofti@
2015-07-20Make pmap_remove() grab the kernel lock. This is a big hammer but makes MPMark Kettenis
machines work again with the unlocked reaper. ok mpi@, deraadt@ no objection from miod@
2015-07-19rework how iobus(4) finds and attaches devices.Jasper Lievisse Adriaanse
this allows us to get rid of the static list of children devices, using only a lookup table for address hints where needed. as a bonus this removes the 'octcf0: [..] not configured' mesage on machines w/o octcf(4). tested by pirofti@ on DSR-500 and ERL by me ok miod@
2015-07-19don't check for the name in attach_args being NULL; nothing should callJasper Lievisse Adriaanse
their match functions with (g)aa_name not set. ok miod@
2015-07-19Make i386_send_ipi() return voidStefan Fritsch
Nobody uses its return value.
2015-07-19Make x86_send_ipi() return voidStefan Fritsch
Nobody uses its return value. This fixes it returning an undefined value since the previous commit.
2015-07-19Enable GPT kernel support. Discussed with a few. OK miod@Brandon Mercer
2015-07-19Add proper kernel locking in the fpe_branch_emulate() function, tovisa
prevent race conditions that could corrupt amap entries, among other things. ok miod@ pirofti@
2015-07-19Register the IPI handler early enough for the correct idle_mask tovisa
propagate to all threads. Otherwise early-started kernel threads run IPIs disabled, which will lead to a deadlock soon after other cores have started. ok miod@ pirofti@
2015-07-19Use DEV_BSIZE instead of 512 where appropriate. Use DL_SECTOBLK()Kenneth R Westerback
where appropriate. Noop for disks with 512-byte sectors. i.e. the only kind currently allowed in softraid volumes. But starts laying the groundwork to allow disks with other sector sizes. ok jsing@