summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Change checkpath() to not exit on error. This is a prerequisite forjh2012-01-1615-20/+43
| | | | | | | fixing the mount(8) "failok" option. PR: 163668 Reviewed by: Garrett Cooper, delphij (previous version)
* Use the signal fence builtin in stdatomic.h when using the clang atomictheraven2012-01-161-4/+1
| | | | | | | | | | | builtins, rather than the __asm hack. Somehow I missed the existence of this builtin originally and only noticed that it was there when I went to implement it... Note: Trunk clang now has support for (most of) the C[++]11 atomics stuff. Please test! Approved by: brooks (mentor)
* Add a bit of verbosity to the comment.ivoras2012-01-161-1/+6
|
* Fix a style bugkevlo2012-01-161-1/+1
| | | | Spotted by: avg
* Make panic strings in m_gettype(), m_getzone(), m_cljset()glebius2012-01-161-3/+3
| | | | consistent.
* Add missing static.glebius2012-01-161-1/+1
|
* Remove some disabled NOTYET code. Probability of enabling it is low,glebius2012-01-161-78/+0
| | | | if anyone wants, he/she can take it from svn.
* sh: Fix execution of multiple statements in a trap when evalskip is setdumbbell2012-01-165-2/+48
| | | | | | | | | | | Before this fix, only the first statement of the trap was executed if evalskip was set. This is for example the case when: o "-e" is set for this shell o a trap is set on EXIT o a function returns 1 and causes the script to abort Reviewed by: jilles MFC after: 2 weeks
* sh: Test EXIT trap with multiple statements in itdumbbell2012-01-161-0/+3
| | | | | Reviewed by: jilles MFC after: 2 weeks
* m_getzone() should return only cluster zones.glebius2012-01-161-3/+0
|
* Export ttyname instead of ttyunit via the sysctl interface.hselasky2012-01-162-11/+18
| | | | | | Submitted by: Mykhaylo Yehorov PR: usb/164090 MFC after: 1 week
* Add nfs export support to tmpfs(5)kevlo2012-01-161-4/+2
| | | | Reviewed by: kib
* Drop support for SIOCSIFADDR, SIOCSIFNETMASK, SIOCSIFBRDADDR, SIOCSIFDSTADDRglebius2012-01-162-77/+7
| | | | | | | ioctl commands. PR: 163524 Reviewed by: net
* Export information about USB serial port unit and port numbershselasky2012-01-162-12/+42
| | | | | | | | directly via the sysctl interface. Submitted by: Mykhaylo Yehorov PR: usb/164090 MFC after: 1 week
* Insert read memory barriers.davidxu2012-01-162-1/+2
|
* Match surrounding style.delphij2012-01-161-1/+1
| | | | Noticed by: avg
* Remove a confused comment and fix some minor bugs.das2012-01-161-7/+6
|
* Fix the definition of FLT_EVAL_METHOD and some minor bugs.das2012-01-161-4/+6
|
* Stop overloading opt_global.h.adrian2012-01-163-4/+7
|
* Eliminate branch and insert an explicit reader memory barrier to ensuredavidxu2012-01-161-3/+2
| | | | that waiter bit is set before reading semaphore count.
* Computations on NaNs are supposed to return one of the input NaNs unchanged.das2012-01-162-4/+3
| | | | | | | Fix a few places in the sparc64 floating-point emulator where this wasn't being handled properly. Submitted by: bde
* Add an implementation of fenv.h intended for platforms that lack an FPU anddas2012-01-164-6/+205
| | | | | | | use softfloat. Thanks to Ian Lepore for testing and debugging this patch. The fenv regression tests pass (at least for Ian's arm chip) with this change.
* Implement FLT_ROUNDS for arm. Some (all?) arm FPUs lack support fordas2012-01-163-2/+69
| | | | | | | | dynamic rounding modes, but FPUless chips that use softfloat can support it because everything is emulated anyway. (We presently have incomplete support for hardware FPUs.) Submitted by: Ian Lepore
* Remove functions from softfloat's Symbol.map that don't need to be exported.das2012-01-162-20/+14
| | | | | | Also use the proper number of underscores for internal names. (Changing the names should be fine, since apparently the symbols are currently unused.)
* Convert softfloat to use the standard exception flag and rounding macrosdas2012-01-165-34/+34
| | | | | | in fenv.h instead of the non-standard and incomplete ones in ieeefp.h. Thanks to Ian Lepore for testing this patch.
* Correct some bugs that resulted from arm/_fpmath.h being blindly copieddas2012-01-161-1/+2
| | | | | | | from the x86 version, which has a completely different long double format. Submitted by: Maks Verver
* s/amd64/i386/ in comment.cperciva2012-01-161-1/+1
|
* Copy XENHVM config file from amd64, now that i386+XENHVM works.cperciva2012-01-161-0/+24
|
* Make XENHVM work on i386. The __ffs() function counts bits starting fromcperciva2012-01-161-1/+1
| | | | zero, unlike ffs(3), which starts counting from 1.
* Add check to avoid assertion panic on duplicate stop.mav2012-01-161-0/+2
| | | | | Reported by: Yuri Pankov <yuri.pankov@gmail.com> MFC after: 2 months
* When tmpfs_write() resets an extended file to its original size after analc2012-01-163-7/+12
| | | | | | | | error, we want tmpfs_reg_resize() to ignore I/O errors and unconditionally update the file's size. Reviewed by: kib MFC after: 3 weeks
* BeagleBone uses an FTDI chip withkientzle2012-01-152-0/+2
| | | | an altered Product ID.
* sh: Fix some bugs with exit status from case containing ;&.jilles2012-01-154-9/+41
| | | | | | | | | | | | | Also, rework evalcase() to not evaluate any tree. Instead, return the NCLISTFALLTHRU node and handle it in evaltree(). Fixed bugs: * If a ;& list with non-zero exit status is followed by an empty ;; or final list, the exit status of the case command should be equal to the exit status of the ;& list, not 0. * An empty ;& case should not reset $?.
* dadump: don't leak the periph lock on i/o erroravg2012-01-151-1/+1
| | | | | Reported by: az MFC after: 1 week
* xlocale.h: consistently use __va_listavg2012-01-151-2/+2
| | | | | | | | | Plain 'va_list' in this header seems to cause troubles with non-base GCC which creates and uses "tortured" versions of some sysem header files including stdio.h (installed in a private 'include-fixed' directory). Reviewed by: theraven X-MFC with: r227753
* Make man page wording more clear:eadler2012-01-151-1/+1
| | | | | | | PR: docs/164078 Submitted by: Taras <ds@ukrhub.net> Approved by: bcr MFC after: 3 days
* sh: Fix two bugs with case and exit status:jilles2012-01-154-1/+20
| | | | | | | * If no pattern is matched, POSIX says the exit status shall be 0 (even if there are command substitutions). * If a pattern is matched and there are no command substitutions, the first command should see the $? from before the case command, not always 0.
* Fix the situation where net80211 is built with IEEE80211_SUPPORT_TDMA but a ↵adrian2012-01-152-1/+6
| | | | | | | | | | | | | | module is used. Although the module _builds_, it fails to load because of a missing symbol from ieee80211_tdma.c. Specifics: * Always build ieee80211_tdma.c in the module; * only compile in the code if IEEE80211_SUPPORT_TDMA is defined.
* Build some more things (random, bridge/gif/gre, gpio, USB) as modules as welladrian2012-01-151-2/+3
| | | | | so some embedded platform builds can use these instead of a fully monolithic kernel.
* Begin breaking out the AR71xx specific functional drivers into modules.adrian2012-01-153-0/+116
| | | | | | | | | | | | | | | The USB code as it stands includes the bus glue along _with_ the controller code. So the ohci/ehci modules actually build the USB controller code and the PCI bus glue. It'd be nice to ship separate modules for the PCI glue and the USB controller (so for example if there were a USB controller hanging off the internal SoC bus as well as an external PCI device) it could be done. This is primarily done to save a few bytes here and there on embedded systems with limited flash space for kernels - a very limited (sub-1MB) space may be available for the kernel and may only support gzip encoding. The rootfs can be LZMA compressed.
* Allow building the GPIO bus and associated bits as modules.adrian2012-01-154-0/+150
| | | | | | | This is primarily done to save a few bytes here and there on embedded systems with limited flash space for kernels - a very limited (sub-1MB) space may be available for the kernel and may only support gzip encoding. The rootfs can be LZMA compressed.
* Add the new option introduced in the previous commit.adrian2012-01-151-0/+1
|
* Some of the atheros based embedded devices use one or more PCI NICsadrian2012-01-151-0/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | on-board, glued to the AR71xx CPU. These may forgo separate WMAC EEPROMs (which store configuration and calibration data) and instead store it in the main board SPI flash. Normally the NIC reads the EEPROM attached to it to setup various PCI configuration registers. If this isn't done, the device will probe as something different (eg 0x168c:abcd, or 0x168c:ff??.) Other setup registers are also written to which may control important functions. This introduces a new compile option, AR71XX_ATH_EEPROM, which enables the use of this particular code. The ART offset in the SPI flash can be specified as a hint against the relevant slot/device number, for example: hint.pcib.0.bus.0.17.0.ath_fixup_addr=0x1fff1000 hint.pcib.0.bus.0.18.0.ath_fixup_addr=0x1fff5000 TODO: * Think of a better name; * Make the PCIe version of this fixup code also use this option; * Maybe also check slot 19; * This has to happen _before_ the SPI flash is set from memory-mapped to SPI-IO - so document that somewhere.
* Break out the "memory" EEPROM data read method from being AR9130 specificadrian2012-01-156-31/+47
| | | | | | | | | | | | | | | | | | | to being more generic. Other embedded SoCs also throw the configuration/PCI register info into flash. For now I'm just hard-coding the AR9280 option (for on-board AR9220's on AP94 and commercial designs (eg D-Link DIR-825.)) TODO: * Figure out how to support it for all 11n SoC NICs by doing it in ar5416InitState(); * Don't hard-code the EEPROM size - add another field which is set by the relevant chip initialisation code. * 'owl_eep_start_loc' may need to be overridden in some cases to 0x0. I need to do some further digging.
* In kvm_argv(), the case when the supplied buffer was too short to hold thetrociny2012-01-151-23/+31
| | | | | | | | | | requested value was handled incorrectly, and the function retuned NULL instead of the truncated result. Fix this and also remove unnecessary check for buf != NULL, which alway retuns true. MFC after: 3 days
* Abrogate nchr argument in proc_getargv() and proc_getenvv(): we always wanttrociny2012-01-154-20/+17
| | | | | | | | | | | | | | | to read strings completely to know the actual size. As a side effect it fixes the issue with kern.proc.args and kern.proc.env sysctls, which didn't return the size of available data when calling sysctl(3) with the NULL argument for oldp. Note, in get_ps_strings(), which does actual work for proc_getargv() and proc_getenvv(), we still have a safety limit on the size of data read in case of a corrupted procces stack. Suggested by: kib MFC after: 3 days
* Pick a constant high IRQ value for the PS3 IPI, which lets PS3 devices benwhitehorn2012-01-151-6/+8
| | | | | | | usefully loaded and unloaded as modules. Submitted by: geoffrey dot levand at mail dot ru MFC after: 2 weeks
* Fix missing in r230129:mm2012-01-152-1/+2
| | | | | | | | kern_jail.c: initialize fullpath_disabled to zero vfs_cache.c: add missing dot in comment Reported by: kib MFC after: 1 month
* Remove duplicate line from usageeadler2012-01-151-1/+0
| | | | | | | PR: bin/164139 Submitted by: Yuri Pankov <yuri.pankov@gmail.com> Approved by: nwhitehorn MFC after: 3 days
* Fix some unreliability problems related to MSR bits inherited from kboot bynwhitehorn2012-01-151-1/+1
| | | | | setting an absolute MSR when during on the MMU. This prevents delay(), in particular, from intermittently malfunctioning.
OpenPOWER on IntegriCloud