Commit Graph

228045 Commits

Author SHA1 Message Date
darrenr
e3b9d7cc54 #536 ipnat can try to print rule as dstlist incorrectly 2014-06-29 08:51:01 +00:00
tsutsui
9118f0148c Use "-O2 -fno-reorder-blocks" instead of "-Os" for m68k default optimization.
"-Os" was specfied when gcc 4.5.x was imported and the commit log says
"-O2 produces much bigger code with gcc 4.5 than it did with gcc 4.1"
but "-Os" disables most inline declarations and makes some applications
much slower.  "-O2 -fno-reorder-blocks" seems enough to reduce sizes
and disabling -freorder-blocks wouldn't cause particular performance
impact on ancient m68k machines with small cache memories.
See my post on port-m68k@ for more details:
http://mail-index.NetBSD.org/port-m68k/2014/06/22/msg000488.html

No objection in the thread and "seems fine to me" from mrg@.
2014-06-29 05:20:15 +00:00
darrenr
032564a48d 3561690 ipv6 address for test.hosts.dots in wrong byte order 2014-06-29 05:06:46 +00:00
tsutsui
c86d3c2853 Pull the simliar workaround from gcc 4.5.4:
http://mail-index.NetBSD.org/source-changes/2014/06/29/msg055885.html
---
Tweak LIB1ASMFUNCS order to avoid linker warnings on libgcc_s build with -O2.

Without this change, ld complains as the following:
>> libgcc_s_pic.a(_float.pico):(.text+0x8): relocation truncated to fit:
>> R_68K_PC16 against symbol `$_exception_handler' defined in .text section in
>> libgcc_s_pic.a(_floatex.pico)

_float.S and _double.S refer `$_exception_handler' declared in _floatex.S
and linking the _floatex.S first seems to work around these warnings
(probably caused by pic relative jump addresses).
See port-m68k@ posts for more details:
http://mail-index.NetBSD.org/port-m68k/2014/06/22/msg000488.html
---

Note m68k/defs.mk is manually edited to avoid extra diffs.
2014-06-29 05:02:15 +00:00
tsutsui
f140ce152e Tweak LIB1ASMFUNCS order to avoid linker warnings on libgcc_s build with -O2.
Without this change, ld complains as the following:
>> libgcc_s_pic.a(_float.pico):(.text+0x8): relocation truncated to fit:
>> R_68K_PC16 against symbol `$_exception_handler' defined in .text section in
>> libgcc_s_pic.a(_floatex.pico)

_float.S and _double.S refer `$_exception_handler' declared in _floatex.S
and linking the _floatex.S first seems to work around these warnings
(probably caused by pic relative jump addresses).
See port-m68k@ posts for more details:
http://mail-index.NetBSD.org/port-m68k/2014/06/22/msg000488.html

Note m68k.mk is manually edited to avoid extra diffs.
2014-06-29 04:55:44 +00:00
tsutsui
b0be3f23bf Export accessops functions to allow overriding them in MD attachment. 2014-06-29 04:08:43 +00:00
tsutsui
2136ca1e28 Use todr_[gs]ettime_ymdhms functions that handle ymdhms format properly.
Compile test only.
2014-06-29 04:04:02 +00:00
darrenr
1afe7e56bc in2 is no longer a broken test case 2014-06-29 04:00:59 +00:00
tsutsui
8b7b39a86f Add a newline at end of file. 2014-06-29 03:57:10 +00:00
tsutsui
694848a27b Add gffb(4) at pci. 2014-06-29 03:44:33 +00:00
tsutsui
f4e97c38e7 Appease a printf format warning on LP64 machines. 2014-06-29 03:43:06 +00:00
rmind
9c7a886e44 NPF:
- Populate the BPF external memory store with L3 information.
- Eliminate NPF_COP_L3 call and just use the data in the memstore.
- Bump NPF_VERSION.
2014-06-29 00:05:24 +00:00
dholland
01e782f371 Revert the following changes:
src/sys/sys/quotactl.h 1.37
   src/sys/compat/netbsd32/netbsd32.h 1.101
   src/sys/compat/netbsd32/netbsd32_netbsd.c 1.188, 1.189
   src/sys/kern/vfs_quotactl.c 1.39
   src/sys/kern/vfs_syscalls.c 1.483
   src/sys/ufs/lfs/ulfs_quota.c 1.11
   src/sys/ufs/ufs/ufs_quota.c 1.116
   src/lib/libquota/quota_kernel.c 1.5

and do them correctly.

If you're going to change the name of something, you need to change
the name of *all* the things with the same name, not just a handful,
and you should change it to something similar so it still matches the
rest of the system rather than just picking an arbitrarily different
name.

Hi, Joerg.

To wit, rename the quotactl "delete" operation to "del", because
"delete" is a reserved word in C++ and for some reason Joerg wants to
run internal interfaces used only by C code through his C++ compiler.
Do not rename it to "remove" instead, because this doesn't match
libquota or the rest of the usage throughout the system; and rename
all the related identifiers, not just the ones that blew the mind of
Joerg's C++ compiler.

Because this is not a user-facing API (the only userland consumer
sys/quotactl.h is libquota) it is sort of ok to make arbitrary
source-incompatible changes; however, by the same token it's completely
unnecessary. If it *were* a user-facing API that someone might have a
semi-rational reason to want to run a C++ compiler on, it would be
incorrect to change it at this point.
2014-06-28 22:27:50 +00:00
dholland
c53acaa3d4 If we're going to use just the name of the dying function as a panic
string, it should at least be the name of the *right* function. ish.
2014-06-28 21:13:12 +00:00
joerg
bd7dee058c Add aliases for the C11/C++11 spelling of the CAS primitives. 2014-06-28 20:18:55 +00:00
joerg
182cb3ee17 .fpu is not handled correctly by LLVM's assembler parser, so use GAS for
now.
2014-06-28 20:18:15 +00:00
dholland
f86ebf3938 Don't print junk errnos. Avoids:
% ps -tfoo
  ps: /dev/ttyfoo: Undefined error: 0
  Exit 1
2014-06-28 17:32:27 +00:00
maxv
87145c7a28 This KASSERT can trigger a panic too easily, if SCARG(uap, cmd)=SWAP_OFF and
SCARG(uap, arg)=NULL. The same KASSERT is already in the SWAP_ON switch case,
so just delete it here.
2014-06-28 15:52:45 +00:00
maxv
973b0f16a2 Sync getfh() with the native implementation. It also fixes:
a) a return value
b) a vnode lock
c) a user-controlled memory allocation

ok christos@, on tech-kern
2014-06-28 11:39:15 +00:00
maxv
2ccd0cb073 Empy comment 2014-06-28 11:06:31 +00:00
skrll
cc7dc561ab Remove unused variables 2014-06-28 10:25:32 +00:00
skrll
70a57c80dc #ifdef a variable like its usage. 2014-06-28 10:25:16 +00:00
rtr
e9c95bf579 patch posted to tech-kern@ 2014/06/25 for review with minor changes
resulting from feedback.

move multiple copies of code for parsing boot.cfg file from sparc, i386
and zaurus into libsa/bootcfg.{h,c}. largely retained i386 parsing logic
in addition to keeping sparc dispatch function while remaining consistent
with boot.cfg(5).

previous sparc64 file format has been obsoleted but only used by boot
CDs distrib/sparc64/bootfs/boot.cfg has been updated to compensate.

exported names have been prefixed with either BOOTCFG_ or bootcfg_ as per
feedback from christos@

tested on amd64 & sparc64 but not zaurus.
2014-06-28 09:16:18 +00:00
darrenr
17a9965ed4 #537 NAT rules with sticky have incorrect hostmap IP address 2014-06-28 08:02:09 +00:00
darrenr
b816f84312 #534 destination list hashing not endian neutral 2014-06-28 07:59:26 +00:00
skrll
4622c29b51 Use DWC2_XFER2DPIPE 2014-06-28 07:01:51 +00:00
riastradh
eb10c7f5cb Collect `#ifdef AGP_DEBUG printf(...)' into local DPRINTF macro. 2014-06-27 22:27:16 +00:00
riastradh
44f3d26119 Work around bug on one-pipe 845 devices until we update drm again. 2014-06-27 19:55:20 +00:00
skrll
9590415a5a Use the right macro in dwc2_root_intr_start 2014-06-27 07:28:26 +00:00
matt
3958509594 Change ARM ELF_MAXPAGESIZE to 0x10000 and also change TEXT_START_ADDR for
nbsd to 0x10000.
2014-06-26 22:55:23 +00:00
christos
321c9aef65 don't depend on expandtc to open the database or not. 2014-06-26 20:14:32 +00:00
msaitoh
af7b229d67 Pass MIIF_DOPAUSE mask to mii_attach() in if_emac.c. emac(4) change a
register from IFM_FLOW flag, so this change is required to control the
setting via ifconfig. PR#48950. OK'd by matt@.
2014-06-26 07:50:29 +00:00
dholland
fedb6c32b4 put the sccsids back here too 2014-06-26 03:24:51 +00:00
christos
bf51dc6d97 restore sccsid[]'s per core@'s decision 2014-06-26 02:14:32 +00:00
christos
9ab46539af Don't initialize the fh pointer to NULL when the allocation functions fail
and allow NULL in the free functions. It just leads to writing sloppy code
for no good reason.
2014-06-26 01:46:03 +00:00
szptvlfn
20e418f0d1 s/stavfs/statvfs/ 2014-06-25 23:22:18 +00:00
skrll
dbc7cd8311 Remove a couple of items 2014-06-25 21:23:03 +00:00
alnsn
5706f5de50 Fix copyright years. 2014-06-25 19:32:37 +00:00
alnsn
c923aef9b6 Add new libbpfjit tests. 2014-06-25 19:20:46 +00:00
alnsn
a6c4b35211 Add t_extmem test. 2014-06-25 19:13:27 +00:00
alnsn
966c8b069a Add external memory tests. 2014-06-25 19:13:03 +00:00
alnsn
5b6fcae7f9 Fix copyright. These tests are based on tests created in 2013 on github.com.
https://github.com/alnsn/bpfjit , files test/test_cop{,x}.c.
2014-06-25 18:16:40 +00:00
alnsn
6c8422a022 Add t_cop test. 2014-06-25 18:04:44 +00:00
alnsn
5990d54c7c Add BPF_COP and BPF_COPX tests. 2014-06-25 18:04:05 +00:00
christos
32d87f41a7 Provide a compatibility define for binaries generated before NetBSD 1.5.
These binaries contain multiple notes per section and their NetBSD version
value is 199905. This is enabled via COMPAT_OLDNOTE (default off).
2014-06-25 17:10:39 +00:00
njoly
05d405dade Add support for more open flags that have a native equivalent
(O_NONBLOCK, O_DIRECT and O_NOFOLLOW).
Translate native EFTYPE error (missing on Linux) to expected ELOOP;
when opening symlinks with flag O_NOFOLLOW.
2014-06-25 16:38:53 +00:00
maxv
5b91db99c9 1) Make clear that we want the space allocated for the KMEM_SIZE header to be
aligned, by using kmem_roundup_size(). There's no functional difference with
   the current MAX().

2) If there isn't enough space in the page padding for the red zone, allocate
   one more page, not just 2 bytes. We only poison 1 or 2 bytes in this page,
   depending on the space left in the previous page. That way 'allocsz' is
   properly aligned. Again, there's no functional difference since the shift
   already handles it correctly.
2014-06-25 16:35:12 +00:00
njoly
bf8fee7bf6 Add a few missing open(2) flags (LINUX_O_*). Fix alpha wrong values. 2014-06-25 16:30:42 +00:00
abs
1dd8a23cb1 Enable ie0 in DISKLESS for sun3/110 2014-06-25 16:14:43 +00:00
maxv
26b0b0e266 Rephrase some comments and remove whitespaces. No functional change. 2014-06-25 16:05:22 +00:00