Commit Graph

123418 Commits

Author SHA1 Message Date
tsutsui 857033a6e9 Appease gcc48 -Wunused-but-set-variable warnings. 2014-06-21 02:02:40 +00:00
tsutsui 224acff119 Properly use an unused-but-set-variable. Also replace a magic number. 2014-06-21 02:01:21 +00:00
ozaki-r 5efefa8603 Remove unnecessary sc_softintr 2014-06-20 14:22:48 +00:00
joerg f800359619 intrcnt and _intrnames are unused. 2014-06-20 13:17:59 +00:00
joerg 823ebfdc82 Don't provide intrnames or intrcnt, GC intrcnt.h. IA64 has evcnt(9)
support hooked up, so no need for the legacy interface.
2014-06-20 12:41:34 +00:00
pooka d6f42aa6f0 document RUMP_SYM_NORENAME 2014-06-20 12:36:31 +00:00
joerg b7d8de5d33 evcnt is done. 2014-06-20 12:31:55 +00:00
pooka 795967533e Some rump kernel components for interfacing with the environment need
to access both NetBSD kernel facilities and facilities provided by the
environment.

Where the environment's headers can be #included without namespace
conflict (which can be done - with care - for some Xen mini-os
headers), it is convenient to simply allow the rump kernel code to
call directly into the environment.

This also requires not mangling the symbol names.

So provide a variable RUMP_SYM_NORENAME which can be set by a component
namefile to a series of symbols or symbol prefixes (in makefile-quoted
awk regexp syntax).  For example, in the rumpuser-xen xenbus driver:
 RUMP_SYM_NORENAME=xenbus_|HYPERVISOR_|wake$$|block$$|schedule$$|force_evtchn

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
(proposed on rumpkernel-users; very minor modification by myself)
2014-06-20 11:57:56 +00:00
pooka 4799824b3f Fix error return for rump_vfs_makeonedevnode()
from Ian Jackson <Ian.Jackson@eu.citrix.com>
2014-06-20 11:27:25 +00:00
phx d08eccdb32 mc146818's sc_flag indicates the time is stored in binary format, not BCD.
So we should configure the chip's REGB for binary format as well.
This makes the BeBox RTC finally work reliable for me.
2014-06-20 09:47:15 +00:00
msaitoh a563525659 fix -Werror=unused-but-set-variable compile error 2014-06-19 18:01:18 +00:00
ws c05596e905 Enqueue the mbuf with the start of the packet,
not some intermediate one (hi, rmind!).
2014-06-19 16:54:40 +00:00
msaitoh 62b0bd5096 Fix compile error of -Werror=unused-but-set-variable. 2014-06-19 15:09:50 +00:00
hikaru 2943d72a5a Use 64-bit DMA, if it is available.
This fixes null packet handling on guest which have memory over than 3GB.
2014-06-19 13:20:28 +00:00
msaitoh a1b50cf1b2 Fix "error: variable 's' set but not used [-Werror=unused-but-set-variable]" 2014-06-19 13:20:13 +00:00
hikaru f589d3a6c3 Make it be able to down I/F. This fixes panic when removing IFF_UP flag. 2014-06-19 13:16:29 +00:00
alnsn 9fc0501842 Revert last change. This is not the right place for rumpuser_sync_icache(). 2014-06-18 19:50:32 +00:00
ozaki-r 10c5c9874c Restructure bridge_input and bridge_broadcast
There are two changes:
- Assemble the places calling pktq_enqueue (bridge_forward)
  for unicast and {b,m}cast frames into one
- Receive {b,m}cast frames in bridge_broadcast, not in
  bridge_input

The changes make the code clear and readable. bridge_input
now doesn't need to take care of {b,m}cast frames;
bridge_forward and bridge_broadcast have the responsibility.

The changes are based on a patch of Lloyd Parkes submitted
in PR 48104, but don't fix its issue yet.
2014-06-18 10:51:03 +00:00
ozaki-r 8f92986dca Tidy up bridge_input
No functional change.
2014-06-18 09:20:46 +00:00
msaitoh c9913bb206 Fix uninitiazed variable problem found on zaurus. I don't know why
only zaurus found it.
2014-06-18 06:35:19 +00:00
macallan 7d15c9f3dc 8bit tcx doesn't implement a hardware cursor, so don't pretend it does.
Also, avoid poking the hw cursor registers in that case. Real hardware doesn't
care but qemu does.
2014-06-18 04:54:09 +00:00
ozaki-r 75ca0bace9 Make local functions static
This change unveiled some functions are unused. Remove some and
comment out the others.

No functional change.
2014-06-18 01:19:19 +00:00
msaitoh adbffa02af Add BGEPHYF_NO_WIRESPEED flag for fiber devices. 2014-06-17 22:29:13 +00:00
msaitoh e0d6a5e056 - Fix detection of BGEPHYF_FIBER_{MII|TBI}
- Add BCM5708S support in brgphy(4). The auto negotiation may have some bugs.
- Add 2500SX support (not tested).
- Fix bit definition of BRGPHY_MRBE_MSG_PG5_NP_T2 from FreeBSD.
2014-06-17 21:37:20 +00:00
alnsn 61fe521674 Add $NetBSD$. 2014-06-17 19:33:20 +00:00
msaitoh e65ce2179d Fix a variable name in last commit. 2014-06-17 18:18:51 +00:00
msaitoh 04840bd861 - Print yet another hardware config word in SRAM(BGE_SRAM_DATA_CFG_5) for
BCM5717 and newer devices.
- Fix a trivial bug in #ifdef NOTYET.
2014-06-17 17:37:08 +00:00
alnsn 176098a445 Don't redefine SLJIT_HALT_PROCESS(). 2014-06-17 17:30:48 +00:00
alnsn 33abe179f5 Update code to the latest sljit version. 2014-06-17 16:52:33 +00:00
alnsn c3ff03ecd4 New sljit version is r257. 2014-06-17 16:49:11 +00:00
alnsn 60a3e989c5 Resolve conflicts. 2014-06-17 16:48:24 +00:00
alnsn e5292e6b87 Import sljit 0.91 (svn r257).
The changes since the last import are:

r257: Add missing ADJUST_LOCAL_OFFSET for ARM64.
r256: Move incorrectly placed array definitions.
r255: More work on testing environment.
r254: Refactor test default output.
r253: Pass entry adress in r12 on PPC-LE.
r252: Optimize calls on MIPS-64.
r251: Several minor fixes.
r250: Add missing SLJIT_IS_FPU_AVAILABLE checks and reorder U and S flags.
r249: Optimize jumps on ARM-64.
r248: Optimize jumps on PowerPC.
r247: MIPS64 support is mostly finished.
r246: MIPS arithmetic.
r245: Start working on MIPS64.
r244: Uniform names for TILE-Gx.
r243: Uniform the names of ARM compilers.
r242: Change ll to l on x86 and rename some instructions on ARM-64.
r241: Improved memory access in PPC and reordering the parameter type flags.
r240: Prepare for more registers on ARM-Thumb2 and renaming TMP_REGISTER to TMP_REG1 on x86.
r239: Prepare for more registers on ARMv5.
r238: Prepare for more registers on TILE-Gx.
r237: Prepare for more registers on MIPS and SPARC.
r236: Prepare for more registers on PPC.
r235: Prepare for more registers on x86.
r234: Most tests are pass on ARM-64 now.
r233: Around 25 test cases are now pass on ARM-64.
r232: More progress on ARM-64 and Thumb2 refactoring.
r231: Some progress an ARM-64 and ARM-T2 refactoring.
r230: Thumb2 code refactoring.
r229: Start working on ARM-64.
r228: Little endian PowerPC systems are supported now by the JIT compiler.
r227: TileGX architecture is now supported. Patch made by Jiong Wang.
r226: Cache flush for android. Patch by  Giuseppe D'Angelo.
r225: Add support for forcibly freeing unused executable memory. Inspired by Carsten Klein.
r224: Few typo fixes.
r223: Reorder madvise and posix_madvise.
r222: The missing sljit_get_float_register_index function is added.
r221: Remove an invalid shift on ARM.
r220: JIT compiler now supports 32 bit Macs thanks to Lawrence Velazquez.
r219: Better code size statistics.
r218: Improvements for x86 and LIR dump.
r217: ICC and SunPro C fixes
r216: A new file for tracking internal changes are added.
r215: Less GNU dependnet Makefile and Intel style assemby for x86-64 systems.
r214: Switch from stdcall to cdecl in x86-32.
r213: Upstreaming minor fixes. Thanks for Daniel Richard G.
r212: Documentation update and a fix for a locking issue.
r211: Renaming temporaries to scratches to match the new name of the register. Does not affect compatibility.
r210: Improving assertions.
r209: Port sljit to SunPro C compiler. Patch by Daniel Richard G.
r208: SLJIT_TEMPORARY_REGx registers are renamed to SLJIT_SCRATCH_REGx.
r207: Removing unused checks.
r206: Optimizations for arm.
r205: Some optimizations on powerpc, mips and sparc.
r204: Rename sljit_emit_cond_value to sljit_emit_op_flags.
r203: Small x86 optimization.
r202: Finish cond_value with AND and INT_OP.
r201: More x86 fixes and improvements.
r200: Rename buf and code to inst.
r199: Replacing constants with instruction names in x86. Greatly improves maintainability.
r198: Only xmm0-xmm5 is volatile on Win64, so xmm6 must be saved.
r197: PowerPC shift right always modifies the carry flag. We may need to restore it.
r196: Rename SLJIT_F* functions to SLJIT_*D
r195: SLJIT_INT_OP works in the same way as SLJIT_SINGLE_OP: the input register arguments must be generated by the output of another instruction with SLJIT_INT_OP flag
r194: Renaming sljit_w to sljit_sw, sljit_i to sljit_si, sljit_h to sljit_sh, and sljit_b to sljit_sb.
r193: ARM single precision support.
r192: Single precision support added for ppc, mips and sparc.
r191: Add single precision support. Only works on x86 now.
r190: Relace C types with sljit types. No functionality change.
r189: Change 0 to NULL for mmap.
r188: Support environments where MAP_ANON is not available.
r187: Adding type descriptors for pointers and doubles (preparing for x32 ABIs and single precision support).
2014-06-17 15:37:40 +00:00
macallan 875518eacc fix a few 8bit tcx issues:
- set ROP when clearing the screen, tcx actually uses it
- deal with possible 2MB VRAM tcx
while there, consistently use aprint_* in tcxattach()
2014-06-17 14:25:17 +00:00
hannken 11b42c4183 Unlock directory vnode after VOP_CREATE. 2014-06-17 12:38:12 +00:00
macallan 5cd3bfb4d1 remove last remnants of CG8 emulation 2014-06-17 10:47:27 +00:00
ozaki-r cb4cb63151 Restructure ether_input and bridge_input
The network stack of NetBSD is well organized and
layered. A packet reception is processed from a
lower layer to an upper layer one by one. However,
ether_input and bridge_input are not structured so.
bridge_input is called inside ether_input.

The new structure replaces ifnet#if_input of a bridge
member with bridge_input when the member is attached.
So a packet goes straight on a packet reception via
a bridge, bridge_input => ether_input => ip_input.

The change is part of a patch of Lloyd Parkes submitted
in PR 48104. Unlike the patch, the change doesn't
intend to change the behavior of the packet processing.
Another patch will fix PR 48104.
2014-06-17 10:39:46 +00:00
skrll 20f8d0eef9 PR/48908: Cannot open /dev/uhid? when another report id at the same uhidev
was already opened.

Restore the sc reference counting lost in usbmp merge.
2014-06-17 09:35:46 +00:00
alnsn f6181a22c5 Antti objected to including rumpuser_sync_icache. Exclude it from the build. 2014-06-17 08:42:35 +00:00
alnsn be10a58478 Add sljit support to arm. 2014-06-17 06:36:39 +00:00
alnsn bb8c3186cb Implement rumpuser_sync_icache hypercall. 2014-06-17 06:31:47 +00:00
jakllsch 369c9ae716 wpi(4): mostly cosmetic changes to source, also a little bit of diff
reduction relative to OpenBSD as of late 2007.
2014-06-16 22:38:27 +00:00
dsl 3396d1716a Comment out the xhci entries.
The driver really doesn't work well enough to be generally useful.
2014-06-16 19:08:17 +00:00
msaitoh b211437b51 IFM_FDX and IFM_HDX use different bit, so set IFM_HDX bit if it's not full
duplex. For many drivers, it recognize half duplex if IFM_FDX isn't set,
but not for others. Same as {Free|Open}BSD.
2014-06-16 16:48:16 +00:00
msaitoh 0be714dc99 No functional change:
- Fix typo.
- Remove trailing white spaces.
- Capitalize comments.
- Tabify.
- KNF.
2014-06-16 14:43:22 +00:00
christos 16bf2a1c98 Darren Reed: #550 filter rule list corrupted with inserted rules 2014-06-16 12:38:32 +00:00
msaitoh a93dfad09c Fix a bug that atphy doesn't set the capability of pause function correctly.
This bug was added in "mii.h" rev. 1.17.
2014-06-16 12:36:41 +00:00
joerg f3c5663df0 Require the actual namecache_look around cache_lookup_entry.
Add one last case of missing stat locking.
2014-06-16 12:28:10 +00:00
hannken 69110c4ec6 Change cd9660 from hashlist to vcache. 2014-06-16 09:55:49 +00:00
ozaki-r 8743b7c5c8 Include pktqueue.h only if _KERNEL 2014-06-16 03:43:10 +00:00
christos bdca82a2cd cleanup debugging printfs and fix port endianness printing issue. 2014-06-16 03:34:45 +00:00