summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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.
* Now that we can tolerate LPAR context switches on the PS3 hypervisor, goingnwhitehorn2012-01-151-10/+0
| | | | to hypervisor-idle on both threads will not hang the kernel.
* Small cleanup, no functional change.tuexen2012-01-151-1/+0
|
* Fix a few comment typos.joel2012-01-151-4/+4
|
* Two cleanups. No functional change.tuexen2012-01-152-3/+3
|
* Remove spurious 8bit chars, turning files into plain ASCII.uqs2012-01-156-16/+16
|
* Convert files to UTF-8uqs2012-01-156-108/+108
|
* Remove spurious 8bit chars, turning files into plain ASCII.uqs2012-01-158-10/+10
|
* Convert files to UTF-8uqs2012-01-15113-117/+117
|
* Reencode morse.c to UTF-8. This does not make it Unicode aware.uqs2012-01-151-85/+90
| | | | | | No changes in resulting object file. Moved user-visible symbols into comment table, so you can see all chars, not just the ones matching your (fallback) locale.
* Major snd_hda driver rewrite:mav2012-01-1514-7521/+8973
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Huge old hdac driver was split into three independent pieces: HDA controller driver (hdac), HDA CODEC driver (hdacc) and HDA sudio function driver (hdaa). - Support for multichannel recording was added. Now, as specification defines, driver checks input associations for pins with sequence numbers 14 and 15, and if found (usually) -- works as before, mixing signals together. If it doesn't, it configures input association as multichannel. - Signal tracer was improved to look for cases where several DACs/ADCs in CODEC can work with the same audio signal. If such case found, driver registers additional playback/record stream (channel) for the pcm device. - New controller streams reservation mechanism was implemented. That allows to have more pcm devices then streams supported by the controller (usually 4 in each direction). Now it limits only number of simultaneously transferred audio streams, that is rarely reachable and properly reported if happens. - Codec pins and GPIO signals configuration was exported via set of writable sysctls. Another sysctl dev.hdaa.X.reconfig allows to trigger driver reconfiguration in run-time. - Driver now decodes pins location and connector type names. In some cases it allows to hint user where on the system case connectors, related to the pcm device, are located. Number of channels supported by pcm device, reported now (if it is not 2), should also make search easier. - Added workaround for digital mic on some Asus laptops/netbooks. MFC after: 2 months Sponsored by: iXsystems, Inc.
* Introduce vn_path_to_global_path()mm2012-01-154-24/+131
| | | | | | | | | | | | | This function updates path string to vnode's full global path and checks the size of the new path string against the pathlen argument. In vfs_domount(), sys_unmount() and kern_jail_set() this new function is used to update the supplied path argument to the respective global path. Unbreaks jailed zfs(8) with enforce_statfs set to 1. Reviewed by: kib MFC after: 1 month
* Use getopts instead of getopt(1).glebius2012-01-151-12/+7
| | | | Suggested by: jilles
* Restore functionality to pack several kernels into release. Allglebius2012-01-152-2/+13
| | | | | | | | kernels specified by KERNCONF are built and packed into release. The first one is packed into kernel.txz, all others to kernel.CONFIG.txz. The first one is installed on bootables in /boot.
* - Fix undefined behavior when device_get_name is nulleadler2012-01-151-2/+8
| | | | | | | | | - Make error message more informative PR: kern/149800 Submitted by: olgeni Approved by: cperciva MFC after: 1 week
* Rework SLB trap handling so that double-faults into an SLB trap handler arenwhitehorn2012-01-156-58/+235
| | | | | | | | | | | | | | possible, and double faults within an SLB trap handler are not. The result is that it possible to take an SLB fault at any time, on any address, for any reason, at any point in the kernel. This lets us do two important things. First, it removes the (soft) 16 GB RAM ceiling on PPC64 as well as any architectural limitations on KVA space. Second, it lets the kernel tolerate poorly designed hypervisors that have a tendency to fail to restore the SLB properly after a hypervisor context switch. MFC after: 6 weeks
* For the mass rc.d changes, add a command line to make the update easierdougb2012-01-141-0/+3
|
* sh: Add testcases that should not be broken by future optimizations.jilles2012-01-142-0/+18
|
OpenPOWER on IntegriCloud