summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2010-05-26Trying this again. Mixing anoncvs with cvs is _not_ a good idea.Thordur I. Bjornsson
Reintroduce bufqs. A few changes since it was backed out after some good comments from dlg@. No need for a separate bufq.h, keep all of in buf.h; As requested by kittens and deraadt. Only sd(4) and wd(4) for now. The rest of the drivers will be converted soon, also other goodies like heuristics for sd(4) for selecting the bufq type and the death of disksort() are forthcoming. Tested on: i386, amd64, sparc64, macppc, loongson and alpha by myself and phessler. OK art@, beck@, kettenis@, oga@
2010-05-26rename intvec.s to locore.S, and add the guts of locore.C to machdep.cTheo de Raadt
ok miod ragge We cannot yet get at vax/subr.s via files.vax because rdsetroot doesn't like it when the "start" symbol isn't in the first page of the executable. subr.s will have to be merged into locore.S later on, when other problems with ENTRY() are solved (says Miod)
2010-05-26Reintroduce bufqs. A few changes since it was backed out after some goodThordur I. Bjornsson
comments from dlg@. No need for a separate bufq.h, keep all of in buf.h; As requested by kittens and deraadt. Only sd(4) and wd(4) for now. The rest of the drivers will be converted soon, also other goodies like heuristics for sd(4) for selecting the bufq type and the death of disksort() are forthcoming. Tested on: i386, amd64, sparc64, macppc, loongson and alpha by myself and phessler. OK art@, beck@, kettenis@, oga@
2010-05-26Fallout from the proc.h include cleanup: proc.h must be included beforePhilip Guenthe
user.h ok deraadt@
2010-05-26Bad tedu, no cookie.Owain Ainsworth
Don't set SDEAD on the process in exit1 untile we have grabbed the allproclk. allproclk is a rwlock and thus we may sleep to grab hold of it. This is a big of a bugger when we just set a flag that means we panic if we sleep. ok art@. turns Tom Murphy's fstat panic into a deadlock instead *sigh*, this is being looked into.
2010-05-26the addr field in read cap 16 is 8 bytes, not 4. pity, i had really bigDavid Gwynne
disks for a few minutes there.
2010-05-26PAGEFASTRECYCLE does not exist as an option after uvm_pmemrange; it isTheo de Raadt
implied.
2010-05-25eh.S includes eh_common.S to make eh.o; fix this dependencyTheo de Raadt
2010-05-25Actively remove processes from the runqueues of a CPU when we stop it.Mark Kettenis
Also make sure not to take the scheduler lock once we have stopped a CPU such that we can safely take it away without having to worry about deadlock because it happened to own the scheduler lock. Fixes issues with suspen on SMP machines. ok mlarkin@, marco@, art@, deraadt@
2010-05-25The logic in this function is a little tricky (though correct).Owain Ainsworth
Explain how an invaviant is satisfied and add an assertion to check (never hit that one). As a side benefit clang doesn't bitch about a possible NULL deref now.
2010-05-25Having just calculated which sequence number we wish to wait for (soOwain Ainsworth
that in the reading-only case we need only wait for all gpu writes to be done and flushed), don't then wait for the full seqno anyway. Found by Clang's static analyser where it flagged a dead store to the seqno variable.
2010-05-25The _arch and _mach variables now come from config(8), decreasing even furtherTheo de Raadt
the differences between these files. You will need a newer config(8) binary to be able to build kernels. ok kettenis miod
2010-05-25rename struct drm_i915_private to struct inteldrm_softc, to be more inOwain Ainsworth
line with everything in the tree. No functional change. I have wanted to do this for ages! More cleanup will be forthcoming.
2010-05-25Remove the DRI1 code paths from inteldrm as promised two weeks ago.Owain Ainsworth
We no longer support these paths, only memory managed mode is now allowed.
2010-05-25Fix previous. s/sfs->f_typename/bfs->fs_typename andThordur I. Bjornsson
add a missing ')'. i386 can now build kernels.
2010-05-25Use token paste operator to avoid nested __CONCAT() macros. This allowsJoel Sing
the code to compile without -traditional-cpp. ok kettenis@
2010-05-25Zero out svr4_statvfs and svr4_statvfs64 before using and copy theTodd C. Miller
correct number of bytes into f_fstr. OK kettenis@ deraadt@ nicm@
2010-05-25Hand-list the two-step assym.h -> .[Ss] -> .o dependencies. TheTheo de Raadt
result: kernels built without 'make depend'-provided information (ie. the .depend file) are more likely to have their *.[Ss] file compilations track changes to *.h files. The "*.o: assym.h" dependencies listed are gotten from reading the .depend output --- from the biggest kernel possible (ie. GENERIC.MP). When an architecture changes in a substantial way (new .[sS] files), the list should be updated in the prettiest way possible. This is not encouraging people to skip 'make depend'; other issues are not resolved and may be solved later with a change guenther is working on. You can still screwed really easily, so continue running make depend as config tells you. Idea from a discussion with drahn ok drahn, kettenis likes the idea too
2010-05-25got the arch wrongTheo de Raadt
2010-05-25${SRCS} is only used once, and fits onto the line where it is usedTheo de Raadt
idea that came out of discussion with drahn
2010-05-25fix includes; fallout from the proc.h changesTheo de Raadt
2010-05-24give up on -Wvariable-declTheo de Raadt
delete the archaic links: target which is easily misused handle special .[sS] files in a portable way
2010-05-24"scsi_ioh_add:" -> "scsi_ioh_del:" in scsi_ioh_del() panic msg.Kenneth R Westerback
Spotted by Matthew Dempsky. Thanks!
2010-05-24Remove PHYs which don't have an associated driverJonathan Gray
on the ramdisks. ok deraadt@
2010-05-24Support fibre PHY on BCM5709S. From FreeBSD via Brad.Stuart Henderson
Tested by Brad on: BCM5706, BCM5708C Tested by me on: BCM5716 (BCM5709 PHY)
2010-05-24regenJonathan Gray
2010-05-24shrinkJonathan Gray
2010-05-24use the same idiom for stripping gdb kernels. This relies on strip -oTheo de Raadt
support for the non-binutils architectures (and that diff is coming..)
2010-05-24Unify the dependency time check for whether an architecture has SFILESTheo de Raadt
2010-05-24stupid typo snuck inTheo de Raadt
2010-05-24CPP and TOUCH are not usedTheo de Raadt
2010-05-24typo regarding __mach__Theo de Raadt
2010-05-24Correctly recognise extended partitions created prior to the addition ofJoel Sing
sl_uid. Fix tested by okan@. ok deraadt@
2010-05-24sync to hppa: Add missing prototypesTheo de Raadt
ok kettenis
2010-05-24Add missing prototypesTheo de Raadt
ok jsing kettenis
2010-05-24Reduce differences between the Makefile.* files for all architectures.Theo de Raadt
ok various people, tested by fewer people, tested by me on 15.
2010-05-24We sometimes compile kernels with -Wvariable-decl because it makes usTheo de Raadt
happier regarding potential kernel stack overflows, so just use the (small) maximum buffer size in one case. ok marco
2010-05-24Flush cache before suspend.Mark Kettenis
ok krw@, marco@
2010-05-24removed prototypes for functions that were removed.David Gwynne
patch from matthew dempsky
2010-05-24atascsi may (will) reuse ata_xfers, meaning the xa state thatDavid Gwynne
ahci_ata_cmd is called with might be the state of the xfer that ahci set previously. this stops ahci_ata_cmd from checking the state of ata_xfers its given, and instead trusts that atascsi is doing the right thing. reported and fix tested by matthew dempsky, who also did an awesome job of tracing the problem.
2010-05-24remove bpfdetach() here, because it is called correctly in if_detach()David Gwynne
afterwards diff from gleydson soares ok claudio@
2010-05-24there is no reason for one MAXPHYS definition to be different from all the ↵Theo de Raadt
others
2010-05-24Remove the drm drivers that are not enabled (and have never been so).Owain Ainsworth
For now they are unmaintained, and work on kernel modesetting has very large inferface changes needing to be made. Also, when the radeon driver has been converted over, we will no longer support X with the DRI1 protocol, only DRI2. When the upheaval has finished, these drivers may be brought back after work to switch them to DRI2 style memory management and kernel modesetting has been done, but until then they are unsupported and probably broken (i know at least two of them have been reported broken before now). ragedrm will likely come back as a component of radeon (their interfaces are still fairly similar). The other drivers require rewriting. I have been threatening to do this for over a year. Discussed with deraadt@ and matthieu@ at various points since then.
2010-05-23seteconf() died years agoTheo de Raadt
2010-05-23#ifdef arc is just too common, but I don't know how to extract this correctlyTheo de Raadt
so make that __arc__ for now, to avoid collisions ok miod
2010-05-23Does not need -Dloongson, and instead, but -D__loongson__ is nice since that isTheo de Raadt
the mach (arch is mips64). Also move towards passing $PARAM around in CPPFLAGS, instead of compiling param.c in a special way, as discussed with miod
2010-05-23Does not need -Dlandisk, and instead, but -Dlandisk is nice since that isTheo de Raadt
the mach (arch is sh). Also move towards passing $PARAM around in CPPFLAGS, instead of compiling param.c in a special way, as discussed with miod
2010-05-23Move towards passing $PARAM around in CPPFLAGS, instead of compiling param.cTheo de Raadt
in a special way, as discussed with miod
2010-05-23no need for -Dhppa or -Dhppa64 on these architecturesTheo de Raadt
2010-05-23Move towards passing $PARAM around in CPPFLAGS, instead of compiling param.cTheo de Raadt
in a special way, as discussed with miod