summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2011-07-08Unbreak macppc bootloader due to libz changes.Dale Rahn
2011-07-08Remove spurious prototype.Mark Kettenis
ok guenther@, deraadt@, oga@
2011-07-08When reading dos labels use DOS_LABELSECTOR and don't use LABELOFFSET. For ↵Kenneth R Westerback
all these arch's LABELSECTOR == DOS_LABELSECTOR == 1, and LABELOFFSET == 0. Thus, to quote bob, "This is a no-op". Makes the expression used when writing label the same as the one used in readdoslabel().
2011-07-07deraadt says disable bluetooth everywhere else tooTed Unangst
2011-07-07We cannot allow the past to impede future progress. So disable bluetoothTed Unangst
to free up some more room for isadma. ok deraadt
2011-07-07Add missing bits to the syscall entry path. Not perfect yet, but it worksMark Kettenis
for at least the open(2), write(2) and exit(2) system calls. Map the syscall entry page publically. For now the physical address is hardcoded because of toolchain problems. It is somewhat likely to say the same as long as we don't add stuff to the start of locore.S.
2011-07-07Take more care to write 'dos' labels in the same place readdoslabel()Kenneth R Westerback
will look for them. Without changing native label handling. Compile tested on hppa by kettenis@. "I see no issues" deraadt@
2011-07-07shrink the kernel by zapping old mms and lms driver. i'll come back for theTed Unangst
files in a bit. ok deraadt
2011-07-07Stuff arg0-arg7 in the right slots of the trap frame.Mark Kettenis
2011-07-07The drahn memorial bad kernel build fix: prevent blood pressurePhilip Guenthe
spikes in other developers by making it so that removal of a .d file without removing the corresponding object will result in the latter being treated as out of date. ok beck@ art@ drahn@
2011-07-07remove mvmeppc; it is really rough shape. ok drahn miodTheo de Raadt
2011-07-07Raise the cache aliasing boundary to 4MB like we did on hppa a couple of yearsMark Kettenis
ago.
2011-07-07Bring over a few more cache flushing and TLB purging fixes from hppa.Mark Kettenis
2011-07-07Don't panic if uvm_fault fails, but enter ddb such that we can inspect theMark Kettenis
state that caused the fault.
2011-07-07Set PSL_W bit for forked processes such that they execute in 64-bit modeMark Kettenis
instead of 32-bit mode.
2011-07-07There is a bunch of places in the kernel entry points where we don'tArtur Grabowski
hold the kernel lock, but still need call one function that needs it. Instead of grabbing the lock all over the place, move the locks into the affected functions: trapsignal, scdebug*, ktrsyscall, ktrsysret, systrace_redirect and ADDUPROF. In the cases we already hold the biglock we'll just recurse. kettenis@, beck@ ok
2011-07-07Return retcode in correct register. 'better commit that' kettenis@Dale Rahn
2011-07-07Replace the cruddy old sys/net/zlib.[ch]. We now use the sys/lib/libzTheo de Raadt
code. Missing chunks of the API are imported from the libc version, with a few #ifdef's to port it into the kernel environment. The bootblocks already used the newer code, and should encounter no surprises since there are so few changes to the existing files. In the kernel, ipcomp and kernel ppp are changed to the new API. ipcomp has been tested. ok tedu the brave
2011-07-06Handle pci_conf_read() faults on reading non-existent registers that resultMark Kettenis
in master aborts. Return 0xffffffff to emulate what happens on non-perfect architectures in that case. ok deraadt@
2011-07-06Handle pci_conf_read() faults on reading non-existent registers that resultMark Kettenis
in master aborts. Return 0xffffffff to emulate what happens on non-perfect architectures in that case. ok deraadt@
2011-07-06Clean up after P_BIGLOCK removal.Artur Grabowski
KERNEL_PROC_LOCK -> KERNEL_LOCK KERNEL_PROC_UNLOCK -> KERNEL_UNLOCK oga@ ok
2011-07-06Renumber root busses symbolic values, and drop more fields from struct bp_conf,Miod Vallat
soon to become struct generic_attach_args.
2011-07-06These files no longer need to include <machine/nexus.h>Miod Vallat
2011-07-06Drop cpu_dep.cpu_subconf routine, which is no longer used after KA820 supportMiod Vallat
removal.
2011-07-06Cleanup presto(4) like other disk drivers.Matthew Dempsky
meh deraadt@, miod@; "haha, you're fixing presto!?" tedu@
2011-07-06Remove support for non-microVAX, non-VAXstation, non-VXT hardware in theMiod Vallat
VAX port. This means, 11/7xx, VAX6000 and VAX8x00 systems, as well as SBI, CMI, BI, XMI and MASSBUS drivers. Most of these files were not being compiled or kept in compilable state over the years anyway.
2011-07-06Ooops. Missed one 'readdoslabel() only' arch. Do the block <-> sector dance forKenneth R Westerback
write label location here too.
2011-07-06On those archs that read their disk (vs iso/udf) disklabels exclusivelyKenneth R Westerback
via readdoslabel(), tweak writedisklabel() to write disklabels at the same place readdoslabel() reads them from. Irregardless of the physical disk sector size. As is done in i386/amd64 already. No change in behaviour for the 'normal' 512-byte sector case. ok deraadt@
2011-07-06Add MSI support to pyro(4). Tested on a v215 with the on-board mpi(4).Mark Kettenis
2011-07-06Split some generic MSI code out into its own file.Mark Kettenis
2011-07-06Move pci_msi_enable() out of the vpci(4) driver into the MD pci(4) code.Mark Kettenis
Soon to be used by pyro(4) as well.
2011-07-06Eliminate redundant buf validation checks in xxstrategy() methods nowMatthew Dempsky
that they're implemented consistently in bounds_check_with_label(). Also, per krw's request, change bounds_check_with_label() to return 0 if the checks succeed, and change the drivers to test == -1 instead of <= 0. (Man page update to follow; intentionally omitting arch/vax/mba/hp.c from this commit because it doesn't even build currently and miod@ promises to kill it soon.) ok krw@
2011-07-06That file is supposed to have been removed ages ago.Miod Vallat
2011-07-06make clean should clean .d files, so as to leave a fresh canvas.Ted Unangst
ok beck deraadt
2011-07-06Oops. I did an oga. Put back important line (set b_bcount) I didn't mean to ↵Kenneth R Westerback
delete.
2011-07-06Make alpha consistent with our other architectures by using "longMatthew Dempsky
long" for __off_t. This is a C++ ABI bump, but martynas@ already bumped libstdc++. Discussed and requested by many on icb.
2011-07-05Add DIOCGPDINFO to rxioctl(), as a synonym for DIOCGDINFO, the lastKenneth R Westerback
place it was missing. Delete now redundant calls to DIOCGDINFO when getting physical disk info in disklabel(8) and fdisk(8). Reminded by a fdisk discussion with Andres Perera on tech@. ok deraadt@
2011-07-05Replace last remaining users of link->scsibus withMatthew Dempsky
link->bus->sc_dev.dv_unit.
2011-07-05Don't write /boot to sector 0 on non-floppy devices. Non-floppyKenneth R Westerback
devices must have an OpenBSD MBR partition to install /boot into. But search anything except floppy devices (e.g. vnd) for such a partition. Feedback & ok deraadt@
2011-07-05More non-512-byte sector groundwork. Don't let disklabel hint thatKenneth R Westerback
a ffs frag size can be less than the d_secsize of the disk. Make sure amd64 writedisklabel() puts the disklabel where readdoslabel() will read it. Tweak i386/amd64 installboot/biosboot so sectors are indeed used where sectors are claimed. Lets me fdisk, newfs, mount and installboot onto 2048 and 4096 byte sector devices. Other filesystem utilites will still hold surprises. Note that actually booting from such devices will await BIOSen that acknowledge such devices as bootable. ok guenther@
2011-07-05N: Thou shalt not call hardclock() with biglock held.Owain Ainsworth
i386 disobeys the Nth commandment. Fix this. While here, make i386 and amd64 definitions of iplclock and statclock match. ok art@, kettenis@
2011-07-05remove comment: yes, they should be independentTheo de Raadt
2011-07-05Add disklabel defines for ia64. Okay krw@.Paul Irofti
2011-07-05Recommit the reverted sigacts change now that the NFS use-after-freePhilip Guenthe
problem has been tracked down. This fixes the sharing of the signal handling state: shared bits go in sigacts, per-rthread bits goes in struct proc. ok deraadt@
2011-07-05disable COMPAT_AOUT, it's useless now, but leave the code in the treeTed Unangst
to encourage someone to convert remaining a.out archs to elf. :) ok deraadt
2011-07-05Remove the osyscall() kernel-entry; we do not use it anymore.Theo de Raadt
ok kettenis guenther tedu
2011-07-04In fact using our own limits.h is the way to go. Okay kettenis@.Paul Irofti
2011-07-04Clean-up NETBSD specific defines. Prodded by kettenis@.Paul Irofti
2011-07-04Add ia64 kernel include files needed for userland.Paul Irofti
Okay deraadt@, drahn@, kettenis@.
2011-07-04remove all the compat svr4 filesTed Unangst