summaryrefslogtreecommitdiff
path: root/sys/arch/vax
AgeCommit message (Collapse)Author
2014-04-18Have each thread keeps its own (counted!) reference to the process's ucredsPhilip Guenther
to avoid possible use-after-free references when swapping ids in threaded processes. "Do I have the right creds?" checks are always made with the threads creds. Inspired by FreeBSD and NetBSD "right time" deraadt@
2014-03-30Eliminates struct pcred by moving the real and saved ugids intoPhilip Guenther
struct ucred; struct process then directly links to the ucred Based on a discussion at c2k10 or so before noting that FreeBSD and NetBSD did this too. ok matthew@
2014-03-29It's been a quarter century: we can assume volatile is present with that name.Philip Guenther
ok dlg@ mpi@ deraadt@
2014-03-26Move p_emul and p_sigcode from proc to process.Philip Guenther
Tweak the handling of ktrace EMUL when changing ktracing: only generate one per process (not one per thread) and pass the correct proc pointer down to the VFS layer. Permit generating of NAMI and CSW records inside ktrace(2) itself. ok deraadt@ millert@
2014-03-22Move p_sigacts from struct proc to struct process.Philip Guenther
testing help mpi@
2014-03-19It's safe to assumed 'signed' existsPhilip Guenther
2014-03-18More a.out detritusPhilip Guenther
ok miod@
2014-03-16DDB supports ELF symbols are all archs, and it's always the same as thePhilip Guenther
native size, so eliminate the #defines. ok miod@
2014-03-13get rid of the assumption that the head of the alldevs list is theDavid Gwynne
"mainbus" device. this breaks when mpath is enabled because it attaches before mainbus and therefore takes the head position. have autoconf provide device_mainbus() which looks up mainbus_cd, and use that instead. discussed with deraadt who just wants mpath stuff to move forward despite there being many ways to shine this particular turd.
2014-03-11lint is gone, and the 'lint' conditional was never in the implementationPhilip Guenther
namespace, so stop changing behavior when it's #defined ok beck@ krw@
2014-02-19/etc/random.seed support (only loaded from disk devices).Miod Vallat
2014-02-13Checking if the per-interface address list is empty when configuringMartin Pieuchot
the chip is always false, so remove this no-op. In fact this list contains the link-layer address as soon as the device attachs. ok miod@
2014-02-09Fix copying of the previous pte entries in grow_p1(). Found the hard way byMiod Vallat
sebastia@, this would only affect processes using more than 512KB of stack.
2014-01-30Move declaration of struct vm_page_md from <machine/vmparam.h> toMiod Vallat
<machine/pmap.h> where it belongs, and compensate in <uvm/uvm_extern.h> by including <uvm/uvm_pmap.h> before <uvm/uvm_page.h>. Tested on all MACHINE_ARCH but amd64 and i386 (and hppa64).
2014-01-26Attempt to make user changes of keyboard layout a bit more `sticky' on wsmuxMiod Vallat
kernels: - keyboard drivers will now tell wskbd if the keyboard layout they ask for is a default value, or a value they are 100% sure of (either because your kernel has a XXXKBD_LAYOUT option, or because the driver can tell the keyboard layout, e.g. by the country code on USB keyboards which provide it, such as Sun's) - when attaching a keyboard with a non-default layout, the layout will become the default layout of the mux for new keyboard attachments if the mux doesn't have a layout set already. - when changing the keyboard layout of a particular keyboard with an ioctl (i.e. using kbd(8) or wsconsctl(8)), the layout will become the default layout of the mux for new keyboard attachments. ok mpi@
2014-01-23unifdef -D__HAVE_VM_PAGE_MD - no functional change.Miod Vallat
2014-01-21dtucker@ pointed out i suck at grep.David Gwynne
fix ncr53c9x fallout.
2014-01-04Add rnddata[] placeholders to make these boot blocks build again.Miod Vallat
2013-12-18Provide MI symbol _STACKALIGNBYTESTheo de Raadt
2013-12-08reflect reality, mark as NOOBJMarc Espie
"sure" deraadt@
2013-11-27Instead of comparing the lower and higher addresses of all the multicastMartin Pieuchot
entries to decide if the IFF_ALLMULTI flag should be set, check if there is at least one real range between them. This should not change the behavior of any driver but if you encounter any problem, feel free to revert the offending chunk and ping me about it. ok naddy@, dlg@
2013-11-24Increase NMBCLUSTERS a bit. Riding upon the kernel memory saved by the pmapMiod Vallat
changes.
2013-11-24Increase MAXDSIZ to 128MB, and BRKSIZ to 16MB, now that we can afford this.Miod Vallat
Also double DFLDSIZ.
2013-11-24Rework pmap to use dynamic P0 and P1 region allocation, instead of allocatingMiod Vallat
the largest possible page table for every pmap; from NetBSD. This allows the kernel to use much less memory for page tables. Significant differences against the NetBSD code are: - allocation of page table pages is done with a pool instead of allocating whole logical pages from uvm and managing the freelist within pmap, never releasing allocated pages. - try to use pt_entry_t * rather than int * whenever possible. - growth of P0 and P1 regions is allowed to fail, if invoked from pmap_enter with the PMAP_CANFAIL flag. This will stall processes until memory for the page tables can be obtained, rather than panicing, in most cases. - keep management of mappings for managed pages using pv lists tied to the vm_page (using __HAVE_VM_PAGE_MD), rather than a global pv_list head. - bound check against Sysmap[] in pmap_extract() when asked for a kernel address. As a result of this, bsd.rd can now install a working system on a 12MB machine without needing to enable swap.
2013-11-20Update comments mentioning `resource maps' to mention `extents' instead.Miod Vallat
Resource maps have been removed more than 10 years ago, it's about time to update comments to better match reality. No functional change.
2013-11-20replace bare use of disksort with bufqs.David Gwynne
go ahead miod@
2013-11-15Make vax stand build cross-build friendly.Masao Uebayashi
OK miod@
2013-11-13Honor RB_TIMEBAD on vax too as other ports.Masao Uebayashi
OK miod@
2013-11-01Use %lu to print u_long, not %lld.Kenneth R Westerback
2013-10-21Add load_font and list_font accessops to all rasops-based wsdisplay drivers.Miod Vallat
Trivial except for tga(4) and gpx(4/vax) which need a bit more care setting up a new font.
2013-10-20Use C99 named initializers for struct wsdisplay_accessops fields.Miod Vallat
No functional change.
2013-10-17Remove a.out leftovers now that libsa loadfile() will only boot ELF binaries.Miod Vallat
2013-10-17Remove support for a.out and ecoff. We only do elf now.Theo de Raadt
ok miod
2013-10-15We do not produce "core" files, so they do not need to be deleted. theyTheo de Raadt
have been *.core files for a very long time. That's a lot of unlink() calls saved.
2013-10-15Rewrite the awk script that generates the data for option DDB_STRUCT:Philip Guenther
- switch to perl for better data structures and (thus) speed - fix a couple glitches in the interpretation of the stabs output - compress the strings by putting them in one big array and overlaying suffixes - all sizes and offsets are <64k, so use u_short for them This results in ~60% reduction in the resulting text size and it now takes less than a second to create on fast platforms. ok miod@
2013-10-14XXsize() returns daddr_t, so calculate the return value in a daddr_tKenneth R Westerback
variable and not (usually) an int. ok miod@
2013-09-30Unbreak after am7990/lance split.Miod Vallat
2013-09-28In boot(), do not iterate over alldevs if it's empty (i.e. halting from ddbMiod Vallat
with ddb entered early with boot -d or from UKC).
2013-09-24Sync the MI LANCE code ( le(4) ) with NetBSD, except for the following:Miod Vallat
- the am7990_get() - now lance_get() - is unchanged. - the interrupt acknowledge logic is unchanged, and will disable interrupts, then acknowledge all interrupt conditions. Add ILACC (79900) support (from NetBSD). Both LANCE (am7990.c) and ILACC (am79900.c) code share as much common code (lance.c) as possible. This affects all le(4) attachments, but the changes are mostly mechanical, to split am7990-specific parts from lance-agnostic parts. Compile tested on all affected platforms. Tested on alpha, hp300, luna88k, mvme88k, sparc, sparc64 and vax.
2013-09-21Create process map holes with UVM_INH_SHARE so that they don't get lost inMiod Vallat
fork-without-exec situation (such as privsep'd binaries). Fixes occasional SIGSEGV in syslogd and pflogd on sun4/4c/4e.
2013-08-15fix getsecs() prototypes, vax still boots with 64-bit time_t; ok miod@Otto Moerbeek
2013-08-08Most network drivers include netinet/in_var.h, but apparently theyAlexander Bluhm
don't have to. Remove these include lines from vax drivers. test lteo@
2013-08-07We uniformly define size_t to be unsigned long and ssize_t to be long. MakeMark Kettenis
sure that SIZE_MAX and SSIZE_MAX are defined as constants with a matching type on all are architectures. ok millert@, matthew@
2013-07-13unify register_t to long on all platformsTheo de Raadt
ok miod kettenis
2013-07-13Rework multiline string literal to appease gcc3.Miod Vallat
2013-07-07Fix pmap_extract() to actually only return TRUE for mappings which have theMiod Vallat
valid bit set; can't believe this went unnoticed for so long. This fixes uvm_km_pgremove_intrsafe panics when pool_put()'ing items in pools for larger-than-a-page-items at shutdown time.
2013-07-06Forgot to commit this file during the a.out->ELF transition.Miod Vallat
2013-07-05VAX ELF boot block bits, and version crank.Miod Vallat
2013-07-05VAX ELF kernel bits.Miod Vallat
2013-07-05VAX ELF userland bits. Consists mostly of register prefix additions.Miod Vallat