summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2009-06-08must calculate iovlen or ktrace panics the machine; diff from blambertTheo de Raadt
and it is pretty critical so commiting it now. Any more fallout from the code 'simplication'?
2009-06-08If the machine only has one state enabling the EST driver is pointless,Gordon Willem Klok
this might need to be revisted later if its clear that there are machines which only come up with a single state but more may appear after a PPC change but for now we will just not initilize on systems with a single state a boot. Solves a divide by zero panic when using the PDC diff on broken hardware. ok marco@, krw@
2009-06-08remove stray * from comment, probably a rewrapping artefactStuart Henderson
2009-06-08fix non standard/valid usage of ? : operator on amd64Jonathan Gray
as well, reminded by miod@
2009-06-08fix non standard/valid usage of ? : operator.Jonathan Gray
ok oga@
2009-06-08in pf_print_state_parts, do not use skw->proto to print the protocolHenning Brauer
but our local copy proto that we very carefully set beforehands. skw being NULL is perfectly valid there.
2009-06-08bring back the fixed PF_AEQ/ANEQ/AZERO macros, the offending use has beenHenning Brauer
found by sthen and fixed, all other callers of these macros checked by both of us
2009-06-08"do not call PF_ANEQ with af=0, dragons". fixes a problem with skipStuart Henderson
steps found with the recent pfvar.h commit to check address families. from & commit req by henning.
2009-06-08gah. something is not quite right, sthen sees strange behaviour fixedHenning Brauer
by backing out the macro fix. something must rely on the broken behaviour
2009-06-08some vnodes have a NULL mountpoint, so strlcpy of the f_mntonname if not advisedTheo de Raadt
2009-06-08unfuck PF_AEQ PF_ANEQ PF_AZERO macos that got fucked when v6 supportHenning Brauer
was added in 2001. yes i got bitten by inet6 shit again. in the ANEQ case, if af == AF_INET, (a)->addr32[0] != (b)->addr32[0] is false when the adresses ARE equal. now it goes right in the intended-for-v6 case and starts to compare the other addr32 fields - in the v4 case I have garbage in them, so it reports all v4 as different when they are in fact the same. fix by adding explicit af == INET6 test before going on to compare the rest. found the really hard way (many hours wasted, thought the bug was in my new code) by me. ok sthen markus claudio
2009-06-07We weren't including isa.h and therefore missing the NISA #define. ThisMike Larkin
caused the PIC to not be initialized on resume, which caused much badness - things attached to the ISA bus weren't getting any interupts (for example, keyboards). Also move around some of the lapic reinit code to handle some clock initialization bits we weren't doing before. Worked out by deraadt and myself. ok deraadt@
2009-06-07Do not look at the avail_{start,end} members from vm_physmem[] anymore.Miod Vallat
These values were used to eventually pass ranges to uvm_pglistalloc(), which has been fixed to correctly skip no-memory ranges a lot of time ago; however mvme68k would still use the computed range and osiop would no longer attach; this repairs it.
2009-06-07don't prefix the usage of a define that has a - with a -Jonathan Gray
no binary change and consistent with other usage of the macro.
2009-06-07Shave surplus space from format string.Michael Knudsen
2009-06-07Add KERN_FILE2 sysctl analogous to KERN_PROC2 but for file structures,Todd C. Miller
along with vnode type-specific info to make it more useful for fstat(1). OK deraadt@
2009-06-07on amd64, store a pointer to the loaded data and the type. This willOwain Ainsworth
eventually be needed by bouncebuffers, and I need it for some of my evil graphics shitz. ok kettenis@ with some tweaks
2009-06-07fix uninitialized or undefined value returned to callerCharles Longeau
found by LLVM/Clang Static Analyzer. with a remind from oga@ about 80 cols wrap ok oga@
2009-06-07extend uvm_page_physload to have the ability to add "device" pages to theOwain Ainsworth
system. This is needed in the case where you need managed pages so you can handle faulting and pmap_page_protect() on said pages when you manage memory in such regions (i'm looking at you, graphics cards). these pages are flagged PG_DEV, and shall never be on the freelists, assert this. behaviour remains unchanged in the non-device case, specifically for all archs currently in the tree we panic if called after bootstrap. ok art@, kettenis@, ariane@, beck@.
2009-06-06Unrevert the curpmap change with the addition of correct %gs handlingPhilip Guenthe
in the IPI handler so that it works when it interrupts userspace, waiting for the droppmap IPI to complete when destroying it, and (most importantly) don't call pmap_tlb_droppmap() from cpu_exit(). Tested by myself and ckuethe, as our machines choked on the original. ok @art
2009-06-06Don't allocate an mbuf cluster without checking to see if it willBret Lambert
actually get us anything. ok thib@
2009-06-06Somehow I missed comitting this.Artur Grabowski
2009-06-06Update est.c, make it capable of using ACPI if the PSS is available butGordon Willem Klok
still support all different methods of getting states without e.g. (highest/lowest state), and on i386 use the tables. The only change should be the deletion of the mV from the printf at boot. ok jsg@
2009-06-06Consolidate error handling in read case.Bret Lambert
ok thib@
2009-06-06ipi_reloadcr3 uses CPUVAR, so it needs to set up %fs in order toPhilip Guenthe
work if it interrupts userspace ok kettenis@ "you haven't committed that yet?" art@
2009-06-06We need miod's no-coredumps-on-ramdisks diff, because we have grown theTheo de Raadt
media just a wee bit too much.
2009-06-06Disable interrupts durring the lock step frequency/voltage change. GenericGordon Willem Klok
IPIs are handled without blocking interrupts. This solves the random lockups people have been seeing with apmd -C, thanks to marco@ for showing me how to reliably recreate this hang, and claudio@ for telling me it was also affecting his Athlon64 machine so I stopped chasing bugs in est. ok oga@, weingart@
2009-06-06- don't mess with assert()/__assert(), use KASSERT() insteadJasper Lievisse Adriaanse
ok jsg@ thib@
2009-06-06When getting a fault in the kernel, we checked for biglock and failedArtur Grabowski
immediately when biglock wasn't held. But there is nothing inherently wrong with doing copyin/copyout faults without holding biglock, so just remove the check because it prevent us from doing copyin in syscall before we grab the biglock.
2009-06-06All caller of buf_acquire were doing bremfree before the call.Artur Grabowski
Just put it in the buf_acquire function. oga@ ok
2009-06-06Since all callers of uvm_pagedeactivate did pmap_page_protect(.., VM_PROT_NONE)Artur Grabowski
just move that into uvm_pagedeactivate. oga@ ok
2009-06-06regenYojiro Uo
2009-06-06add another UDL deviceYojiro Uo
- LCD-4300U (century corp.) ok mglocker@
2009-06-06remove unused variable prevlen and a second initialization of ifp.Stuart Henderson
adjusted from a diff from chl@; ok naddy, Brad agrees.
2009-06-06when xflags got changed, tell the userland by routing socketsRainer Giedat
ok henning@
2009-06-06- implement support for rtl8187bMartynas Venckus
- change state properly in urtw_stop. disable interrupts, rx, and tx. fixes scanning, ifconfig down, and some other issues - fix rxgain; for ver. 2 - remove delays; that have been removed 8185 -> 8187 new one tested by jsg@, a bunch of people on tech@, and myself old one tested by nick@
2009-06-06unfuck the rest of the way. when we bind the scribble pages to theOwain Ainsworth
aperture, skip over dcache on i810 chipsets and stolen memory on later chips. I didn't notice this before because I mostly used this code with GEM code, which doesn't use the stolen memory.
2009-06-06unfuck slightly, offset was wrong.Owain Ainsworth
2009-06-06In SIOCS80211SCAN, fail if the interface is not up *and* running.Damien Bergamini
There are cases where the interface can be up but not running, for instance if the driver's if_init routine fails halfway for whatever reason (firmware file not found, hardware switch turned off etc...) This is because in sys/net/if.c, the returned code of the driver is ignored for SIOCSIFFLAGS and the IFF_UP flags is left set. netintro(4) does not say anything about values returned by SIOCSIFFLAGS, so I don't know whether it is the expected behavior or not. pointed out by halex@ and jacekm@ who noticed it was possible to trigger a scan on wpi(4) even when the hardware switch was turned off.
2009-06-06mechanical rename of ``priv'' to ``file_priv'' in the one function whereOwain Ainsworth
it had to be fucking different. This has been irritating me.
2009-06-06use BUS_DMA_ZERO instead of alloc + bzero.Owain Ainsworth
2009-06-06bring back the indians for pirofti -- handle unaligned access and put aTheo de Raadt
good estimate at the required byte swapping, bit of help from drahn ok pirofti mlarkin
2009-06-06add an interface to agp to create a bus_dma_tag over a range of theOwain Ainsworth
aperture, which will take your memory, bind it to agp, and return you the aperture address. It's essentially the same as iommu on amd64 in the way it works. This will be used by the upcoming (works but is slow and will not be enabled at first) drm memory management code for intel igp chipsets. Right now the sync function for intagp is really slow (doing a wbinvd() on every sync), this is in the process of getting fixed, but the size of the diffs in my trees was getting silly.
2009-06-06It might be a good idea to commit all the diff. *sigh*.Owain Ainsworth
now this builds
2009-06-06We only really need to #define SYNCHRONIZE_CACHE 0x35 once.Kenneth R Westerback
2009-06-06add sg_dma.c on i386, soon to be used.Owain Ainsworth
2009-06-06instead of #ifndef SMALL_KERNELing the whole sg_dma.c file, just put theOwain Ainsworth
information in files.conf like it should be.
2009-06-06Remove the last VGA_POST defines with X86EMU. Okay deraadt@.Paul Irofti
2009-06-06Add uvm_objwire() and uvm_objunwire(), I need this for some of my crazyOwain Ainsworth
shitz. Code mostly from netbsd with some tweaks from me. The loaning case is specifcically if 0ed out right now because we do not do loaning. ok ariane@, art@.
2009-06-06Fix RCSIdsMatthieu Herrb