summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2015-01-17Delete an extra tab.Kenji Aoyama
2015-01-17Add an ascii bit/field diagram for armv7-a psr to match theJonathan Gray
existing one for earlier arm revisions.
2015-01-17More complete gpio reset sequences for SABRE Lite/Nitrogen6X.Jonathan Gray
From Patrick Wildt in Bitrig.
2015-01-16Revert forcing a rachitic `c' slice size when the drive geometry is not known,Miod Vallat
now that the disklabel code will reduce MAXDISKSIZE to the real size if a Sun label is found.
2015-01-16Don't bother to initialize %g1; we don't do this on sparc either.Mark Kettenis
ok miod@
2015-01-16disklabel_sun_to_bsd() will nicely set the disk size if it is zero, but it isMiod Vallat
usually invoked after initdisklabel() which proactively changes a zero disk size to MAXDISKSIZE, causing this test to fail. Allow for MAXDISKSIZE too in that test. This makes spoofed disklabels of SMD disks have a proper `c' slice size. luna88k disklabel_om_to_bsd() is modified accordingly, to keep diffability, even though luna88k can't - to the best of my knowledge - sport SMD disk controllers. ok deraadt@ krw@
2015-01-16Binary code patching on amd64Stefan Fritsch
This commit adds generic infrastructure to do binary code patching on amd64. The existing code patching for SMAP is converted to the new infrastruture. More consumers and support for i386 will follow later. This version of the diff has some simplifications in codepatch_fill_nop() compared to a version that was: OK @kettenis @mlarkin @jsg
2015-01-15Rework the disk label handling once again. Disk label is read at attach timeMiod Vallat
because it teaches us the drive geometry, but from then on there is no reason not to implement disklabel spoof support and a proper DIOCGPDINFO ioctl. As a result, this makes disklabel -A now work on SMD disks. The drawback of this, is that, since native labels do not have a pcylinders value, the code will now always assume pcylinders == ncylinders + acylinders. (this ought to be the case by default for labels produced by SunOS format(8).)
2015-01-15remove .Tn; from Jan Stary <hans at stare dot cz>Ingo Schwarze
2015-01-15Don't include i82489 headers in cpu.hStefan Fritsch
Only pmap.c was not including them explicitly. Fix that. "The direction is good" deraadt@
2015-01-15Define and print HV cpuid flag on i386.Stefan Fritsch
This is set by many hypervisors, including kvm, vmware, hyper-v.
2015-01-14Don't forget to register event counter for VME interrupts.Miod Vallat
2015-01-14When a read or write operation fails on a sector found on the bad block table,Miod Vallat
be sure to adjust the IOPB data pointer before redirecting the I/O for this particular sector to the replacement location. Otherwise, the data pointer still points to the first sector of the I/O, which may not necessarily be the one which failed. (This is yet another 19 years old bug, making your filesystems self-destruct even faster than intended)
2015-01-14When the outcome of the watchdog processing is a reset, do not bother checkingMiod Vallat
further pending requests, since they will be forcefully failed by the reset routine.
2015-01-14Make the special buffer used for the few sector I/O at attach time a per-softcMiod Vallat
member, rather than a global. No functional change.
2015-01-14Make x[dy]c_e2str return a const char *.Miod Vallat
Remove obsolete comments in x[dy]dump().
2015-01-14Remove pass-through ioctl for SMD disks (DIOSXDCMD). Nothing uses this, becauseMiod Vallat
noone wrote an equivalent of SunOS format(8) and noone ever will.
2015-01-13Initialize d_type to DTYPE_SMD in the default label to avoid disklabel(8)Miod Vallat
asking for the device type upon labeling a freshly formatted disk.
2015-01-13Add missing Utilite case in imx_platform_init_cons()Jonathan Gray
spotted by Patrick Wildt
2015-01-13for the install: target, use cmp as a rough attempt for avoiding repeatedTheo de Raadt
make install from Simon Nicolussi ok jsing tedu
2015-01-12include NFSCLIENT. ok deraadtTed Unangst
2015-01-12lager -> larger (no beer involved)Miod Vallat
2015-01-12Fix two 19 years old (since day one) bug in bad144 sector reassignment logic:Miod Vallat
- when entering bad144 mode, correctly compute the actual C/H/S values for the logical block number. - when leaving bad144 mode and resuming normal I/O operation, when computing back the C/H/S values for the next logical block number, compute the sector number correctly.
2015-01-12exphy and ciphy are not needed with this list of network devicesTheo de Raadt
thanks jsg
2015-01-12Due to recent savings with instbin, we can take i386 to one installTheo de Raadt
floppy. A few drivers are missing, but the world has moved on (the drivers included are always a work in progress) Speeds up make release substantially, of course.
2015-01-12Enable lid suspends by default in the kernel, and remove the question fromTheo de Raadt
the installer. We used a full release cycle to learn that suspend/resume is reliable enough for this default. Personal policy can disable this using machdep.lidsuspend=0 in /etc/sysctl.conf ok more people begging, and less people whining
2015-01-11Remove orphaned defines.Miod Vallat
2015-01-11LOCKDEBUG is dead; perform the funeral ritesPhilip Guenther
pointed out by Helg (xx404 (at) msn.com) ok deraadt@ miod@
2015-01-11switch prototype warnings to implicit-declaration warnings.Ted Unangst
This should catch all the same bad cases, but be a little less aggravating in circumstances where a prototype isn't necessary ok deraadt
2015-01-11When using sun4 PROM I/O routines, make sure we never attempt to transfer moreMiod Vallat
than the maximum DMA transfer size the PROM reports. Crank version to 2.9.
2015-01-11Use the softc-specific function pointers for bcopy() and bzero() in iestart(),Miod Vallat
instead of, well, bcopy and bzero. This lets ie@vme transmit packets instead of panicing due to memset() trying to use 32-bit stores on a device address.
2015-01-11Make sure to initialize nbpg to a sensible value in bootxx, when running onMiod Vallat
a sun4 system - the prom i/o routines depend on it.
2015-01-11Unbreak sun4Miod Vallat
2015-01-11armv6 introduced opcodes for reversing words in registers. we canDavid Gwynne
use these on armv7 as a backend for byteswapping things that endian.h provide. i dunno if its faster, but it makes smaller code. saves 30k on GENERIC-OMAP. ok jsing@ bmercer@ jsg@
2015-01-10Bye, bye simple_lock.Mark Kettenis
2015-01-10Enable nep(4).Mark Kettenis
2015-01-09Fix loading memory allocated with bus_dmamem_alloc(9). The old could wouldMark Kettenis
always load all allocated pages instead of the size specified in the bus_dmamap_load_raw(9) call. Also fixes the corner case where a specified boundary is less than the page size, which would always create multiple segments, even if the specified size was smaller than the boundary. Fixes xhci(4) on sparc64.
2015-01-09Cleanup some macros and #defines in i386 pmap. Previously committed andMike Larkin
backed out because of libkvm breakage, recommitting now with libkvm fix. ok deraadt@
2015-01-06when we're entering an interrupt handler, record its ipl so splassertDavid Gwynne
can check if we're entering code we think should only be used from lower ipls. modelled a bit on how sparc64 does things. with help from and ok kettenis@
2015-01-06implement atomic_swap_{uint,ulong,ptr) and some md variants. use theseDavid Gwynne
to replace x86_atomic_testset_{u32,u64}. help from guenther@ kettenis@ ok kettenis@
2015-01-04add new driver uslhcom(4) USB HID based UART.uaa
2015-01-04EV68CB pass 2.4 is numeric revision 5, as reported by SRM.Miod Vallat
2015-01-04Implement splassert(9) for powerpc.Martin Pieuchot
This changes the logic to prevent a recursion when processing soft interrupts. Previously a per-CPU flag was set before re-enabling interrupts. Now the IPL level is raised to SOFTTTY which makes splsoftassert() happy, greatly inspired by mips64. As a side effect, the ppc_intr_{disable,enable}() dance is now done only once instead of twice per splx(9). While here, make use of dosoftint() instead of having 3 different functions for dispatching soft interrupts. Tested by deraadt@ on G4 smp and by myself G5 smp, G3, G4 and socppc. No objection from the usual (and over busy) suspects.
2015-01-03add new driver uslhcom(4) USB HID based UART.uaa
2015-01-03add new driver uslhcom(4) USB HID based UART.uaa
2015-01-03Some bowels of the bus_dma code assume it is ok to perform bitwise operationsMiod Vallat
with the base address of the window, which only works if its size is smaller than the address it begins at. Until these assumptions are carefully fixed, revert r1.9, and go back to using only one direct map window.
2015-01-03add new driver uslhcom(4) USB HID based UART.uaa
2015-01-02Fix a few format string warnings, allow to build DEBUG kernel on sgiSebastian Reitenbach
OK miod@
2015-01-02Add some additional i.MX6 board types from Bitrig.Jonathan Gray
CompuLab Utilite, SolidRun HummingBoard/CuBox-i and UDOO.
2015-01-01move to 5.7-betaTheo de Raadt