summaryrefslogtreecommitdiff
path: root/sys/arch/vax
AgeCommit message (Collapse)Author
2015-09-13Locators are long now.Miod Vallat
2015-09-13Needs <sys/systm.h> before <sys/syscall_mi.h> now.Miod Vallat
2015-08-30Provide remaining arch with END() macro for setting calculated size onPhilip Guenther
symbols in ASM ok deraadt@ mpi@
2015-08-29_NLIST_DO_ELF is no longer needed: it's the only optionPhilip Guenther
ok deraadt@
2015-07-17remove obsolete INET kernel optionTed Unangst
2015-07-04Fix misleading indentMiod Vallat
2015-07-04get rid of some if 0 code that refers to b_actf.David Gwynne
ok miod@
2015-07-04replace the manual buf list management with a fifo bufq. it simplifiesDavid Gwynne
the code in some cases and makes it generally more readable. this has been tested in simh, real hardware may or may not work anyway. ok miod@
2015-07-04count outgoing packets like every other driver.David Gwynne
ok miod@
2015-06-27Pass bus_space tag and handles to the QE_{WR,RD}CR macros, instead of assumingMiod Vallat
there's an `sc' local variable. This allows us to no longer have to fake a softc at match time.
2015-06-27Memory leak in attach if uballoc() fails; Brainy/Maxime VillardMiod Vallat
2015-06-24Increment if_ipackets in if_input().Martin Pieuchot
Note that pseudo-drivers not using if_input() are not affected by this conversion. ok mikeb@, kettenis@, claudio@, dlg@
2015-06-17Make kernel text read-only and unreadable from userland, and remove the bogusMiod Vallat
comment about the emulation code requiring kernel text to be readable from userland. Add a few DIAGNOSTIC checks for rogue ptes passed to rmpage(). Make sure the pte extent operations and update_pcbs() run at >= IPL_SCHED.
2015-05-13test mbuf pointers against NULL not 0Jonathan Gray
ok krw@ miod@
2015-05-13Remove useless "bridge.h" include.Martin Pieuchot
ok miod@
2015-05-11Remove all audio format conversion code from the kernel (btw holdingAlexandre Ratchov
the kernel_lock), as we already do better conversions in user-mode. Yet, no need for every single driver to fiddle with the conversion code as they are done transparently by common MI code. With help from armani and miod, support from mpi ok armani@
2015-05-07fix indentationJonathan Gray
ok miod@
2015-05-05emul_native is only used for kernel threads which can't dump core, soPhilip Guenther
delete coredump_trad(), uvm_coredump(), cpu_coredump(), struct md_coredump, and various #includes that are superfluous. This leaves compat_linux processes without a coredump callback. If that ability is desired, someone should update it to use coredump_elf32() and verify the results... ok kettenis@
2015-05-02add missing splx callsJonathan Gray
ok miod@
2015-04-30Remove SIZE_MAX from limits.h. It was added years ago before weTodd C. Miller
had a proper stdint.h. No ports fallout. OK guenther@ miod@
2015-04-07Convert to if_input().Martin Pieuchot
Tested with simh using a floppy image built by miod@
2015-03-28Convert to if_input(), tested by miod@Martin Pieuchot
2015-02-15Change pmap_remove_holes() to take a vmspace instead of a map as its argument.Miod Vallat
Use this on vax to correctly pick the end of the stack area now that the stackgap adjustment code will no longer guarantee it is a fixed location.
2015-02-10Convert to uiomove().Miod Vallat
ok guenther@
2015-02-10First step towards making uiomove() take a size_t size argument:Miod Vallat
- rename uiomove() to uiomovei() and update all its users. - introduce uiomove(), which is similar to uiomovei() but with a size_t. - rewrite uiomovei() as an uiomove() wrapper. ok kettenis@
2015-02-09Move consistency check within #ifdef DIAGNOSTICMiod Vallat
2015-02-07typosMiod Vallat
2015-02-07Shrink the I/O map from 64KB to 16KB. This map is only used forMiod Vallat
smaller-than-a-logical-page allocations, while logical page size and larger are passed to uvm. So in the worst case, the kernel will end up needing about 20 vax pages out of it: 1 for non-console serial chips, up to 2 per Ethernet controller, 1 per SCSI controller, up to 3 for the clock or SSC chip, 1 for the cpmbox, up to 3 for model-specific mappings (VS_REGS, KA650 stuff), 1 for the leds, and up to 3 for frame buffer registers. Thus shrinking from 128 pages to 32 is still large enough.
2015-02-07Provide symbolic defines for the ICCS register magic bits, and use themMiod Vallat
rather than hardcoded values.
2015-02-01Gather the scattered (and sometimes duplicated) qbus address and size definesMiod Vallat
to a single place. Get rid of the unused defines pertaining to older vax models we dropped support for years ago.
2015-02-01Do not write to the doorbell register at uba attach time - this causes aMiod Vallat
bus error which triggers a machine check, but this was not detected when KA60 support was written, because machine checks were silently ignored if (cold) back then.
2015-02-01Pass the correct machine check frame to the machine check handler.Miod Vallat
This bug was 12 days away from having lived for 20 years.
2015-01-20Move ps_strings "after" the random stackgap. This makes its location aMark Kettenis
per-process value, and therefpore turns the VM_PSSTRINGS sysctl into a per-process one as well. This gets rid of a pointer to the bottom of the stack at a fixed location. Also clears the road for unmapping the stackgap. ok deraadt@
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-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
2014-12-23Pass real sizes to free()Miod Vallat
2014-12-23Fix an obvious free() argument misuse which has been there since r1.1.Miod Vallat
2014-12-22unifdef INETTed Unangst
2014-12-17Prefer MADV_* over POSIX_MADV_* in kernel for consistency: the latterPhilip Guenther
doesn't have all the values and therefore can't be used everywhere. ok deraadt@ kettenis@
2014-12-15Use MAP_INHERIT_* for the 'inh' argument to the UMV_MAPFLAG() macro,Philip Guenther
eliminating the must-be-kept-in-sync UVM_INH_* macros ok deraadt@ tedu@
2014-12-10retire shutdown hooks; ok deraadt, krwMike Belopuhov
2014-11-25A few reliability fixes:Miod Vallat
- protect pv lists with splvm. - try to return as soon as possible from pmap_rmproc(). - correctly maintain wired pages statistics. - invoke pmap_remove_pcb() at splsched to avoid racing the scheduler.
2014-11-18Nuke some obvious #include duplications.Kenneth R Westerback
ok espie@ deraadt@ millert@ tedu@
2014-11-17Two additional POSIX_MADV_RANDOM conversionsTheo de Raadt
2014-11-16Replace a plethora of historical protection options with justTheo de Raadt
PROT_NONE, PROT_READ, PROT_WRITE, and PROT_EXEC from mman.h. PROT_MASK is introduced as the one true way of extracting those bits. Remove UVM_ADV_* wrapper, using the standard names. ok doug guenther kettenis
2014-11-05remove uneeded bpf includesJonathan Gray
ok miod@
2014-10-31The config logic with "rl needs-flag" gotJonathan Gray
removed back in 2011. Remove code under #if NRL > 0. ok miod@
2014-10-18Remove even more unnecessary `needs-flag' attributes from config machinery,Miod Vallat
as well as useless include of the generated flag files.
2014-10-12remove some unused filesJonathan Gray
ok miod@
2014-10-10Significant unification of RAMDISK* config files, making them diffable.Theo de Raadt
This makes it easier to remove components not required to do an install, and subsequently add other desireable components ... In snapshots (in various forks) for about a week. Do some upgrades and installs, please.