summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
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
2011-07-04remove compat_svr4 support. ok deraadtTed Unangst
2011-07-04Finish ansification.Mark Kettenis
2011-07-04Give each pmap its own space ID. The current algorithm is silly, as we'll wrapMark Kettenis
and might end up with duplicates, but that's not an issue until we're multi-user. Change the TLB miss code to enter mappings with the right protection ID. Properly switch pmaps on context switches. This makes the copyins we do before starting init actually work instead of failing with EFAULT.
2011-07-04Nuke the useless D_KQFILTER flag and just check that d_kqfilter isNicholas Marriott
filled in. Move D_CLONE down to 0x0001 as suggested by thib. ok deraadt thib
2011-07-04Force the sigreturn syscall to return to userspace via iretq by settingPhilip Guenthe
the MDP_IRET flag in md_proc, then switch sigcode to enter the kernel via syscall instead of int$80. Rearrange the return paths in both the sysretq and iretq paths to reduce how long interrupts are blocked and shave instructions. ok kettenis@, extra testing krw@
2011-07-04Fix typo; ok ariane@Philip Guenthe
2011-07-04Let custom nlist.c check ELF, but use the i386 values EM_I386 andKenneth R Westerback
ELFCLASS32 since we are building a 32-bit executable. Which is why we have a custom nlist.c here. Suggested by drahn@. ok drahn@ "looks good" deraadt@
2011-07-03Tweak the dmesg output a bit. From brad@YASUOKA Masahiko
ok yasuoka@
2011-07-03Enable nvt(4).Mark Kettenis
2011-07-03Bring in millert@ thinko fix for '_' handling from r1.47 ofKenneth R Westerback
libc/gen/nlist.c.
2011-07-03a_sym is an integer not a pointer so check == 0, not == NULL. SomeKenneth R Westerback
off_t casts to parameters for pread(). Whitespace and comment sync. All changes made long ago in libc/gen/nlist.c. More delta reduction.
2011-07-03Add blank line to keep consistent spacing. From brad@YASUOKA Masahiko
2011-07-03Rewrite the multicast handling for OpenBSD. From brad@YASUOKA Masahiko
ok and tested yasuoka@
2011-07-03- add missing #include "bpfilter.h" on if_cnmac.YASUOKA Masahiko
- delete #include <sys/cdefs.h> because it's unnecessary. ok brad@
2011-07-03Fix boot dump on bigmem machines.Owain Ainsworth
Allocate a bouncebuffer at boot time and bounce all pages over 0xffffffff through it. ``looks right but not tested'' miod@, ok krw (who watched me test it on his monster laptop.