summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2008-08-09Do not forget to set the ``specific EOI'' bit when sending a... specific EOI;Miod Vallat
from NetBSD.
2008-08-08Admit b_blkno means block number; a block is DEV_BSIZE (a.k.a.Kenneth R Westerback
512) bytes; ffs is inextricably tied to using b_blkno and disklabel always uses sectorsize units. Thus use DEV_BSIZE units for all fields describing ffs filesystems and convert to/from sectors where required. This enables the creation and use of ffs filesystems on non-512 byte sectorsize devices. This diff allows i386 and sgi (the two test platforms) to find disklabels that are not on a sectorsize boundary. Same change to further archs coming. This is a no-op on 512-byte sectorsize devices. This work triggered by jsing@'s need to create ffs filesystems on sgi cdroms so we can create cdrom install media for sgi. sgi testing by jsing@ ok jsing@ pedro@ "looks sane" beck@ weingart@
2008-08-08Wrap long lines and remove useless comment.Joel Sing
2008-08-08Make sgivol use the sgilabel struct from machine/disklabel.h, rather thanJoel Sing
declaring another. ok miod@
2008-08-07Use %sys_tick to generate clock interrupts on systems that have it.Mark Kettenis
2008-08-07Give each CPU its own `struct intrhand' for %tick interrupts. Fixes aMark Kettenis
problem where the clock would stop ticking on some CPUs because of lost ticks.
2008-08-07- Enable ALTQ support.Brad Smith
- Let the VLAN driver know that the hw can send and receive full size VLAN tagged packets. Tested by maja@
2008-08-06Backout the acpicpu_setpdc code and the code to allow est to use acpicpuGordon Willem Klok
on amd64. Evaluating the _PDC seems to lead to instability (PR5878 and a report by jmc@) on lower end machines its too close to release and I don't have enough nickels. ok deraadt@
2008-08-05One last duplicate scsi initiator report in dmesg.Miod Vallat
2008-08-04fix extended partition support by handling chained EBRs correctlyReyk Floeter
(using a recursion limit). now OpenBSD can be installed in a subsequent DOS/Linux-compatible extended partition. ok krw@ deraadt@
2008-08-02compile inteldrm and radeondrm in GENERIC by default, but disabled.Owain Ainsworth
This will let them get some more testing. Re-order things a little while i'm here. prompted by and ok deraadt@.
2008-08-02Ignore the ata channel on 164SX when controller is the built-in one, whenMiod Vallat
looking for the boot device; PR #5895
2008-07-30Add ath(4).Brad Smith
ok deraadt@
2008-07-30Do not print adapter target id on the attachment line, now that scsibus(4)Miod Vallat
prints it. These should be the last offenders.
2008-07-30wi@pci now works.Miod Vallat
2008-07-30Implement bus_space_{read,write}_raw_mult_[248] correctly, it needsMiod Vallat
endianness conversion on pci bridges. ok deraadt@ jsing@
2008-07-30Proper interrupt values for pci interrupt pins B to D, found in some IRIXMiod Vallat
developer documentation some time ago.
2008-07-30enable ix(4) on amd64Reyk Floeter
ok deraadt@
2008-07-29Give the eisa device a valid bus_dma_tag_t.Miod Vallat
2008-07-29Fix range check in sio_intr_establish().Miod Vallat
2008-07-29Reenable the AUXWRITE dance to try and find the aux port in pckbc(4), basedMiod Vallat
on an attachment dependent flag; the Tadople SPARCLE needs it. ok kettenis@ deraadt@
2008-07-28No longer clear ci_want_resched within cpu_switchto(), now that it's doneMiod Vallat
in the MI code.
2008-07-28regenMiod Vallat
2008-07-28Put XBOW in the generated constants, not PCI...Miod Vallat
2008-07-28In addition to cop0 sr, prevent cop0 ic from being modified inMiod Vallat
process_write_regs().
2008-07-28Remove dead code.Miod Vallat
2008-07-28In process_write_regs() and sigreturn(), be more strict about the bitsMiod Vallat
userland is allowed to change in psr.
2008-07-28According to the manual, delay slot kill the benefits of being superscalar,Miod Vallat
so don't use any in the 88110-specific parts of locore.
2008-07-27Increase the size of the TSB on large memory machines. This make buildingMark Kettenis
a kernel 10-15% faster on the t1k. Don't do this for SMALL_KERNEL though, otherwise the 4MB locked mapping for the data segment will be too small to include a ramdisk.
2008-07-25phyio -> physioMiod Vallat
2008-07-25Improve eisa bus probe by deciding the number of logical eisa slots fromMiod Vallat
the motherboard eisa id, instead of using a ``one size fits all'' value which is too large on more than half the eisa-capable alpha designs. The id -> slot # logic is based on the alpha ECU configuration files, so we should not perform worse than ECU itself (and see all slots ECU sees too).
2008-07-25The PIE address range defaults are too big for alpha and can land on orKurt Miller
above the stack. Fix by mapping PIE into the first quarter of the address space before stack. "will do for now" miod@
2008-07-25Work around a problem on the t5120 where top(1) would lock up the system forMark Kettenis
several minutes by making pmap_resident_count() return 0 for the kernel pmap. discussed with miod@
2008-07-25In gdt_grow, always map the gdt on the secondary cpus too. This farArtur Grabowski
we depended on the pageability of the kernel_map to map them which worked most of the time, until we hit the most improbable case - when cpu_switchto wanted to fault in the missing gdt page, which at this moment is Verboten. kettenis@ ok
2008-07-25Switch to a temporary stack early on such that we don't lose if the stackMark Kettenis
provided by the PROM gets flushed out of the TLB before we install our own trap table. Makes RAMDISK kernels work on T2 systems.
2008-07-24sng_exponent should be sng_exp (MI code now cares); ok martynasTheo de Raadt
2008-07-24Add code to decode machine checks on Avanti, providing a description of theMiod Vallat
problem and lots of register dumps to help the skilled user to fix the hardware. Not compiled if option SMALL_KERNEL. From NetBSD.
2008-07-24Do not define vax-inspired LOWPAGES and HIGHPAGES anymore, they make noMiod Vallat
sense on m68k. Give USRSTACK its real (HP-UX compatible) value instead of computing it from HIGHPAGES. No functional change.
2008-07-23Do not rely on an <ichc>invisible cast</ichc> to return failure inMiod Vallat
dino_intr_map(); rather than adding the missing cast, make the intent of the code clearer by explicitenly testing for PCI_INTERRUPT_LINE being ff. While there, enable the out-of-extent-range checks in dino_memmap() and dino_memalloc() even if no option DEBUG, but return failure instead of panicing. discussed with and ok kettenis@ marco@
2008-07-23So it turns outthe HP engineers changed the PA-RISC 2.0 architectureMark Kettenis
after it was published. In particular, they changed the maximum cache aliasing boundary from 1MB to 16MB. It turns that on the PA-8700 the aliasing boundary is actually 4MB (reported as such by the firmware at least). There are some comments in the Linux code that suggest that HP never actually built PA-RISC CPUs with an 8MB or 16MB aliasing boundary. So raise the aliasing boundary to 4MB. This fixes the weird ps(1) problem where it didn't print its own arguments correctly.
2008-07-23Correct cases of mishandling of pending reads and writes to preventBob Beck
them going negative - this consists of identifying a number of cases of IO not going through the buffer cache and marking those buffers with B_RAW - as well as fixing nfs_bio to show pending writes and reads through the buffer cache via NFS still has a problem with mishandling the counters I believe in the async/sync fallback case where counters stay positive which will be addressed seperately. ok tedu@ deraadt@
2008-07-23Clear correctable errors after handling them. From Bjorn Andersson.Mark Kettenis
2008-07-22None of the pceb EISA alpha designs has more than 8 physical slots, so don'tMiod Vallat
bother trying to probe more.
2008-07-22Proper interrupt swizzling for devices behind bridges; matches what SRMMiod Vallat
configures when it can. ok kettenis@
2008-07-22Modify pci_intr_map() implementation to pass the pci_attach_args to theMiod Vallat
per-platform implementation, instead of selected members of it; this allows us to get rid of some globals, and paves the way for better bridge support on some models.
2008-07-22Do not define VM_MIN_ADDRESS as __LDPGSZ, but provide its value, to preventMiod Vallat
uvm_map.c from requiring <machine/exec.h>.
2008-07-21vaxfp.h is VAX pendant of ieee.h. it defines VAX f fp, and VAX dMartynas Venckus
fp; from NetBSD ok millert@
2008-07-21- add proper double_t and float_t definitions for each archMartynas Venckus
- math.h shouldn't define FLT_EVAL_METHOD, but float.h should (per C99). remove from math.h, and add proper definitions in float.h ok millert@
2008-07-21Implement the cpu_yield hypervisor call. Use it in the idle loop forArtur Grabowski
SUN4V to let it suspend strands (why does everyone invent own words for hyperthreads?). This gives a huge performance boost when most of the cpus are idle. kettenis@ ok
2008-07-21IPL_NONE doesn't really exist. The corresponding bit in theMark Kettenis
per-processor soft interrupt register is used for hardware clock-tick counter interrupts. So make smp_signotify() use IPL_SOFTINT instead such that we don't unintentionally trigger a spurious clock interrupt. This seems to fix the timekeeping anomalies on the t1k. tested by art@