Commit Graph

222939 Commits

Author SHA1 Message Date
jnemeth 024b3f7622 Don't attempt to create/resize an unaligned partition if the attempt
to create/resize an aligned one failed.  This simplifies the code
and prevents surprises.  If the user wants an unaligned partition
in the case where an aligned one fails, they can simply retry the
command without the "-a" option.  This change was requested by
wiz@, and after some thought I agree with it.
2013-12-06 02:31:31 +00:00
rmind 8a8347bd05 NPF:
- Adjust NAT to not assume flow direction in some cases and thus support
  less usual setups which are possible when using 'map' with a custom
  filter criteria.
- Introduce NPF_SRC/NPF_DST and replace npc_src/npc_dst with npc_ips[2]
  for more convenient handling.
- ICMP ALG: restrict matching only to the outgoing traffic, but be more
  direction-agnostic elsewhere.
2013-12-06 01:33:37 +00:00
matt 70922e5c64 Add MACHINES.${MACHINE_CPU} values. 2013-12-05 22:51:08 +00:00
matt 1b730ee018 add ${MKTARGET_CREATE} for tags 2013-12-05 22:49:33 +00:00
mbalmer 4675096298 Nelson Mandela died today, aged 95. I whish farewell to a great statesman. 2013-12-05 22:06:13 +00:00
joerg fcff7df126 Add cdbr_open_mem. 2013-12-05 21:17:23 +00:00
joerg 13bf828c30 Use -marm for clang builds, too. 2013-12-05 16:26:04 +00:00
christos c16aecd187 It is silly to kill the system when an interface failed to clear promiscuous
mode. Some return EINVAL when they are dying, but others like USB return EIO.
Downgrade to a DIAGNOSTIC printf. Same should be done for the malloc/NOWAIT,
but this is rarely hit.
2013-12-05 15:55:35 +00:00
matt 50ef47947d Use armv6z so {ldr,str}ex{b,h,d} won't generate warnings. 2013-12-05 15:53:50 +00:00
martin 0c88e27e4c Add a "varshm" check/fix to make sure /var/shm is mentioned in /etc/fstab
(and add a default of tmpfs with 25% of available ram limit if not).
To avoid the warning but not mount the tmpfs, just comment out the line
for /var/shm.

Also move "obsolete" to the end of the list again, as it should be run
last.
2013-12-05 15:41:23 +00:00
wiz 31096de6e5 binutils-2.24 out. 2013-12-04 22:53:55 +00:00
jakllsch 16550bc8bd Use MBR_PTYPE_ defines from <sys/bootblock.h>. 2013-12-04 20:15:51 +00:00
jakllsch e22b4ebb4a Mirror my changes of src/sbin/gpt/create.c 1.4 in migrate.c;
Use less bogus CHS addresses in PMBR.
With the ending head set at 0xff one machine I have will never leave
the initial startup screen if such a disk is present. Additionally,
Wikipedia suggests without citiation that 254 is the maximium allowable
value for the head, and this seems to be the case.
2013-12-04 19:59:47 +00:00
jdc f022349f64 Clarify comment about SER_SZERR. 2013-12-04 18:44:14 +00:00
wiz 3d5220baa3 Bump date for previous. 2013-12-04 18:05:21 +00:00
martin 26fd9dad41 Fix err/errx confusion, pointed out by rmind. 2013-12-04 15:10:11 +00:00
christos 1ea8a49a1d CID 271284: Missing error check on open 2013-12-04 15:05:49 +00:00
mrg 8220735952 add a note about GMP i wrote but forgot to commit a few days ago. 2013-12-04 14:47:41 +00:00
martin eb2a978b87 Provide variants of the -s option to allow limiting the tmpfs dynamically
at mount time to 1/Nth or to N percent of the available ram.
2013-12-04 13:30:35 +00:00
mrg c2447f5c30 add a couple of more things to worry about. 2013-12-04 11:43:52 +00:00
rkujawa ad1d8e7c8b Fix RTC going backwards a year when saving time, because dt_mon != dt_year.
Patch by Roc Valles.
2013-12-04 07:48:59 +00:00
lneto a8dd600bee fixed lua(4) alloc (nsize can be lesser than osize) 2013-12-04 02:12:01 +00:00
rmind 65c0517694 - npf_do_nat: fix a race condition and simplify the logic.
- npf_session_setnat: clear the NAT association on failure.
2013-12-04 01:38:49 +00:00
mrg 196f70e45c repply the hacks from rev 1.2 to the gmp*.h files, and
make a note about it.
2013-12-04 01:03:15 +00:00
mrg 5f8d1ba0a4 make trialdivtab.h depend on the Makefile. 2013-12-04 00:57:21 +00:00
mrg ad5c4fb9d3 consolidate the trialdivtab.h generation code. 2013-12-04 00:49:17 +00:00
joerg 95a24f0297 Split checkout target into two parts now that llvm and clang are
imported. Requested by matt@
2013-12-03 22:42:55 +00:00
bouyer 6c985f14ae Remove the "evtchn_do_event: handler %p didn't lower ipl %d %d\n" printf.
With help from Robert Elz we've finally figured out what's going on, and
it actually isn't a bug in the handler, but related to spin mutexes.
When a spin mutex is released, the IPL isn't lowered back if the
curcpu is holding other spin mutexes. This is because mutexes may not
be released in order (and, in this case, the CPU in interrupted while
it holds a spin mutex at IPL < IPL_SCHED).
Also remove the test and resetting the IPL, it will be reset anyway
inside the loop, or at the end of the loop.
2013-12-03 20:51:00 +00:00
spz 3b1403a1b8 Coverity fix:
979928 Use after free
	debug3 line moved to before one of its arguments is freed
2013-12-03 17:14:35 +00:00
spz 78fc912d0b Coverity complaint fixes:
bin/cat/cat.c 976654 Argument cannot be negative
                     (missing check for fileno result, stdout)
bin/cat/cat.c 976653 Improper use of negative value
                     (missing check for fileno result, stdin)
2013-12-03 17:06:51 +00:00
macallan 5aec4c7ca3 - don't use defattr before it actually contains something useful
- clear the screen only once, when we know what colour to use
- set up the colour map only once, when we know which one to use
-> no more funky colour flashing while cgsix attaches on my U1
2013-12-03 17:01:04 +00:00
joerg ab0f68f9e6 libkern build glue for compiler-rt. 2013-12-03 16:15:22 +00:00
joerg 094e2c7925 Don't include bswap for ARM right now, the routines require ARMv6.
Separate the soft-float code and don't include it in the libgcc case.
2013-12-03 16:14:50 +00:00
njoly fd4071c953 +SIMPLEQ_LAST.0 2013-12-03 16:13:49 +00:00
martin 3c849f9e1c remove accidently commited file 2013-12-03 08:49:09 +00:00
joerg baf8298edf Add ARM (EABI) specific sources. Split off code that requires C11,
unwind support in libc or overlaps with soft-float in preparation for
using compiler-rt in the non-clang case.
2013-12-03 02:28:51 +00:00
matt 467f6149c3 Don't use GOT relocations. Use PC relative for the GOT and GOTOFF for
_DYNAMIC.  Make thumb friendly.
2013-12-03 00:19:56 +00:00
lneto 8e5c8a05b5 fixed lua(4) build (added _KERNEL guard into lstrlib.c to avoid double usage) 2013-12-02 23:06:35 +00:00
joerg 96f5bbd28d Improve EABI handling of string functions. Most importantly, fix
__aeabi_memset, which has the arguments in the wrong order.
2013-12-02 21:21:33 +00:00
bouyer 7e810dc605 Fix pasto in the !ufs2 case (use dp->dp1 and not of dp->dp2).
This would be a problem only when allocating a new data block and the
indir block is already allocated, which explains why automated tests didn't
find it.
Problem reported on tech-kern@ and fix tested by manu@.
2013-12-02 18:46:52 +00:00
joerg 8b058f850e Don't use cpsr_all/spsr_all with mrs, it doesn't take a mask. 2013-12-02 18:36:10 +00:00
jdc bfacdd22be Only write to the framebuffer memory 32 bits at a time. If we try to write
larger amounts, we will generate SER_WRITE|SER_SZERR with P4 framebuffers.
(Writing 64 bits at a time is the default with memset().)
Also, set the default attributes to zero to avoid vertical stripes from
uninitialised defattr.
XXX; screen is still not cleared of old text.
2013-12-02 15:54:06 +00:00
tsutsui b3d834c6ab Fix 1 bpp rasops copycols() op:
- fix inverted shift direction in MBL() and MBR() macro in BE case
   (used by GETBITS() and PUTBITS() in copycols() function in rasops_bitops.h)
 - make all bitmask values unsigned and use proper uint32_t types for
   bitmap variables (to avoid arithmetic right shift)
 - fix various botches in right-to-left copy op (logic is taken from hp300)

Tested on bwtwo(4) on NetBSD/sparc.
2013-12-02 14:05:51 +00:00
tsutsui 1ff88366ee Fix off by one in copyrows() backward case. 2013-12-02 13:45:40 +00:00
skrll 863426f493 Fix typo in secureplt support. 2013-12-02 13:16:49 +00:00
joerg 3f8cd6d0ba Let's use a format string, shall we? 2013-12-02 12:29:44 +00:00
joerg 5249048f1e Fix aliases. 2013-12-02 12:20:44 +00:00
kefren cbdb038cad Update TCP CB with new values on rfc1323 and mssdflt sysctl updates
From yasuoka@iij.ad.jp in kern/44254
2013-12-02 09:39:54 +00:00
lneto 2421e2bfaa merged luaconf.h of kernel and userspace Lua 2013-12-02 06:07:22 +00:00
lneto f371334bc2 using Lua auxlib in luacore module 2013-12-02 05:06:32 +00:00