Commit Graph

209007 Commits

Author SHA1 Message Date
tsutsui
d42cbdf611 Explicitly zap possible Ext2fs magic leftover to prevent
kernel vfs_mountroot() and bootloaders from mis-recognizing
the newfs(8)'ed file system as still Ext2fs.

The problem is reported and the fix is tested by Frank Wille
on current-users@.  Also approved by releng.
2012-02-07 14:14:45 +00:00
plunky
b1f6316364 two locking fixes (from PR/45909)
- during attach, release kernel lock in error path
- during midiopen, take kernel lock for USB activity

(there are more problems with locking here, this does not fix the PR)
2012-02-07 11:40:24 +00:00
mbalmer
2e290c8200 For the sake of consistency with other scripts, output a full stop after the
word 'done'.  releng ok.
2012-02-07 10:36:01 +00:00
nisimura
a00e8dffc3 - add missing time-of-day clock support.
- add option WAPBL and disable VERBOSE_INIT_ARM.

Ok by releng.
2012-02-07 09:07:47 +00:00
nisimura
1858b8306e - add MBR editing menu to sysinst.
- fix typos in timecounter names.
- make sure to drain Tx FIFO to avoid clobbering
  kernel boot messages.
- allow to have the 3rd UART.
- add missing time-of-day clock support.

Ok by releng.
2012-02-07 09:06:04 +00:00
rmind
2d3c715fba - Split NPF rule procedure code into a separate module (no functional changes).
- Simplify some code, add more comments, some asserts.
- G/C unused rule hook code.
2012-02-06 23:30:14 +00:00
matt
bcc257dafa Make this compile with VERBOSE_ARM_INIT.
If the AOUT magic is not ZMAGIC, assume kernel is ELF.
2012-02-06 17:51:47 +00:00
matt
24329ca30b Increase SYMTAB_SPACE (commented out).
Add commented out VERBOSE_INIT_ARM and FCOM_INIT_ARM
2012-02-06 17:51:05 +00:00
roy
50f757f219 Remove stale files from older imports. 2012-02-06 17:47:26 +00:00
matt
0a81821ab3 Back out part of previous commit (no reason to define SQLITE_BIG_DBL
especially for VAX since it uses DBL_MAX from the VAX <float.h>).
2012-02-06 17:24:49 +00:00
roy
0e4f70d9d3 Note import of dhcpcd-5.5.4 2012-02-06 15:58:56 +00:00
roy
b6ecb9d5dd Import dhcpcd-5.5.4 with the following changes:
* Disregard IFF_RUNNING on link state changes
* Warn about the kernel not configured for IPv6 RAs instead of
  complaining it can't send messages

OK: releng@
2012-02-06 15:56:58 +00:00
drochner
76ee9eff38 align allocations >=pagesize at a page boundary, to preserve traditional
malloc(9) semantics
fixes dri mappings shared per mmap (at least on i945)
approved by releng
2012-02-06 12:13:44 +00:00
skrll
0cb5c6eccd Re-run mknative.
OK releng@ ack 3 nak 0
2012-02-06 10:55:32 +00:00
skrll
69352bd310 Add nbsd-pthread.o.
OK releng@ 3 ack 0 nak.
2012-02-06 10:46:34 +00:00
joerg
7bf72726f9 Pull read.c r1.27 from upstream repository:
Don't silently skip non-ASCII characters, but replace them with ``?''.
This is less likely to break the syntax of macros.
2012-02-06 10:42:44 +00:00
martin
f314ddcf46 Provide a module_map (16 MB for now) to load modules close to kernel text
and data.

Fixes PR port-sparc64/45895. Ok: releng
2012-02-06 10:40:26 +00:00
christos
388e208a62 PR/45932: Add missing braces... This will probably fix interrupts too! 2012-02-06 04:29:47 +00:00
matt
eacc5f97c9 Do a minor cleanup of alpha (this will make applying pullups post branching
easier).
u_int{8,16,32,64}_t -> uint{*}_t
Change all old-style definitions to C89 prototypes.
Whitespace cleanup.
Constification in db_disasm.c
2012-02-06 02:14:10 +00:00
christos
cea8dc6b79 PR/45932: Pierre Pronchery: Fix the return values of the suspend and resume
functions.
2012-02-06 02:03:32 +00:00
rmind
4d11ce4d7b Fix the family option in the grammar and example. 2012-02-06 00:41:36 +00:00
rmind
d47695fbde - Handle NPF rule procedures in the parser and thus re-enable them.
- Few small updates to the man page.
2012-02-06 00:37:52 +00:00
skrll
71f73f2dac Delay some things to attach time - pdc_init is too early.
Minor tidyup while I'm here.

OK riz@
2012-02-05 21:46:37 +00:00
matt
e51dac4baa Bump SYMTAB_SPACE 2012-02-05 19:30:42 +00:00
christos
8364b8d242 -D flags belong in CPPFLAGS 2012-02-05 18:46:04 +00:00
matt
a99c34e987 Use __INFINITY in preference to __builtin_inff(). Currently only VAX defines
__INFINITY and allows to use __builtin_huge_valf() instead since gcc4.5 will
error out unconditionally if __builtin_inf() is used.
2012-02-05 17:57:17 +00:00
matt
59a1b57ad8 Make this compilable by VAX GCC 4.5 2012-02-05 17:55:12 +00:00
matt
fcaa0c3257 Change eps to fit within the VAX FP range. 2012-02-05 17:52:55 +00:00
matt
5a1411907d For VAX & GCC, turn on -Wno-overflow to supress a GCC error. 2012-02-05 17:47:30 +00:00
matt
aa4a29af75 Define __INFINITY as huge_val since VAX FP doesn't have infinities. 2012-02-05 17:45:38 +00:00
matt
2c2478331f Gcc emit overflows warnings on VAX when you try to use HUGE_VAL. Make these
warning supressable if -Wno-overflow is given.
2012-02-05 17:43:47 +00:00
matt
c1538b0e12 Deal with vax defining [an empty] struct fpreg;
Add supply_gregset and fill_gregset for nbsd-thread.c to vaxbsd-nat.c
2012-02-05 17:40:48 +00:00
reinoud
cdd53821b4 regen 2012-02-05 17:40:08 +00:00
reinoud
b2bd15f503 With the recent kmem changes, remove the `unlimited' maximum setting of
NKMEMPAGES from amd64 since it gets us into trouble.
2012-02-05 17:39:18 +00:00
matt
512e444044 Use REG_P, CONST_INT_P, and gcc_unreachable().
Bring forward movememsi from gcc4.1
2012-02-05 17:38:21 +00:00
matt
a7e9fdf4f5 Constraint 'T' needs to be a CONSTANT_P so add a match_test for that. 2012-02-05 17:37:19 +00:00
matt
703f2e538a Use REG_P, CONST_INT_P, and gcc_unreachable. 2012-02-05 17:34:34 +00:00
rmind
d8f0298d84 - sys_swapctl: validate the number of swap devices argument for SWAP_STATS.
- uvm_swap_stats: fix a buffer overrun, add some asserts.

Reviewed by mrg@
2012-02-05 16:08:28 +00:00
reinoud
b0130c6aff regen 2012-02-05 14:27:08 +00:00
dholland
7609b9bc56 Migrate one last leftover bit (used only by the kernel now) to
sys/ufs/ufs and remove the old quota headers and no-longer-used shared
code. Ok by releng.
2012-02-05 14:19:02 +00:00
dholland
430a952206 Remove unneeded #include. 2012-02-05 14:14:44 +00:00
skrll
80a78e2456 Fix build of gdb7 for mips. It's not used at present. 2012-02-05 13:26:01 +00:00
rmind
0de951a66f uvm_kmguard_alloc: use vmem_addr_t, instead of vaddr_t.
Fixes the build on ports where vaddr_t is of different size.
2012-02-05 11:08:06 +00:00
skrll
9b9495d4e1 Use __arraycount on hppa_knownmods rather than end-of-table record.
OK riz@
2012-02-05 08:31:53 +00:00
skrll
afaeb265d7 -Wextra -Wno-unused-parameter 2012-02-05 08:27:37 +00:00
skrll
cc4d2c67d0 Use __arrarycount(cpu_types) to bound the table search and not NULL
check. The NULL check was wrong.
2012-02-05 08:24:43 +00:00
skrll
c0ea8a5bc3 -Wextra -Wno-unused-parameter 2012-02-05 08:23:11 +00:00
rmind
02bf188b03 - Make KMGUARD interrupt-safe.
- kmem_intr_{alloc,free}: remove workaround.

Changes affect KMGUARD-enabled debug kernels only.
2012-02-05 03:40:07 +00:00
rmind
4ed932b4c4 ip6_output: check for rtcache_setdst() error, which may happen if running
out of memory.
2012-02-05 00:41:15 +00:00
rmind
f7fec0d2a4 Multiple NPF fixes, add better error reporting from kernel side, add some
asserts, bump the version.
2012-02-05 00:37:13 +00:00