223735 Commits

Author SHA1 Message Date
dsl
3dacf18540 Fix previous slightly differently.
No need to have an extra variable and to write to the list head.
2014-01-05 09:13:18 +00:00
tsutsui
e986b0d242 Detect boot device on PROM load command and set proper default boot device.
Also remove now unnecessary the old netboot check.

Note all addresses of boot device info set by monitor are checked by
memory dump on several LUNA ROM versions, and these addres might be
different on earlier monitor ROM versions.

Bump version to denote the visible change.
2014-01-05 06:56:22 +00:00
tsutsui
3d1c6ce533 Move physmem calculations before nptpage initialization.
Should fix next68k specific part of PR port-m68k/45915
(panic: pmap_enter_ptpage: can't get KPT page), and
this is the last possible m68k MD part of this PR.

Note this change is not tested on the actual machine (yet),
but as noted in comment next68k/pmap_bootstrap.c is based on
the mvme68k one which has been fixed by the similar diff.

Should be pulled up to all netbsd-6 branches.
2014-01-05 06:30:48 +00:00
mrg
dd411234d3 avoid use-after-free in *coredump().
fixes kernel crashes during coredump on sparc64.
2014-01-05 00:53:53 +00:00
pgoyette
ece76c8800 When crypto(4) is built-in, crypto_modcmd() doesn't need to handle all
the auto-config stuff.

While here, ensure that we depend on opencrypto.
2014-01-04 21:42:42 +00:00
joerg
a068c5add0 Clean removed files. 2014-01-04 21:41:00 +00:00
joerg
2dfa7c4738 Import r198452 of libc++. Primarily avoids C style casts and adds a
number of cleanups.
2014-01-04 21:32:03 +00:00
msaitoh
5f07a8b14e Add Energy Performance Bias bit. 2014-01-04 21:09:39 +00:00
christos
87d348b35e undo the ld script hack now that the default scripts have been modified to
do this.
2014-01-04 20:19:33 +00:00
christos
ea7d4d717c undo the linker script hack now that the linker scripts do this. 2014-01-04 20:18:50 +00:00
christos
a15708a3bd gcc-4.8 has begun putting code in .text.unlikely etc. This breaks our
assumption that .text code comes first in kernels about bootblock so
that the first symbol defined becomes the start address. This change
puts .text before other .text like sections.
2014-01-04 20:17:42 +00:00
msaitoh
3468c7c6bf Remove duplicated entry. Modify comments a bit. 2014-01-04 19:08:43 +00:00
msaitoh
e84a097d09 - Rename x86_print_cacheinfo() to x86_print_cache_and_tlb_info() because
this function prints TLB info, too.
- Remove an extra printf when verbose flag is set.
- Print the highest extended info level as the basic info level.
- Sort function.
2014-01-04 18:13:48 +00:00
macallan
4a4332fa68 __unuse the right function
( note to self - don't commit half asleep )
2014-01-04 16:37:05 +00:00
wiz
86e63367c9 Merge EINVAL descriptions. 2014-01-04 15:54:27 +00:00
wiz
cefc4c9359 Remove second copy for RCS Id. 2014-01-04 15:43:27 +00:00
wiz
d778b71bd0 New sentence, new line. 2014-01-04 15:41:59 +00:00
wiz
2903717cc7 Sort sections. 2014-01-04 15:40:25 +00:00
wiz
4005ac9717 Sort sections. Remove trailing whitespace. 2014-01-04 15:37:46 +00:00
wiz
fa60f938bd Sort sections. Punctuation formatting nits. 2014-01-04 15:37:26 +00:00
wiz
2873a037aa New sentence, new line. Remove trailing whitespace. 2014-01-04 15:35:10 +00:00
pooka
a0d43ce363 IPv6 UDP uses the IPv4 pcb tables, and therefore the stats, so need
to create the percpu UDPv4 counters even in a v6-only system.
2014-01-04 14:18:12 +00:00
nonaka
61a537b3d6 fix CS bit. 2014-01-04 13:24:35 +00:00
isaki
9050bf24ca FLOGNP1(-0.0) is -0.0, not +0.0. Found by XM6i. 2014-01-04 13:23:22 +00:00
hannken
b04f8aa83f Fix a race where thread1 runs VOP_REMOVE() and gets preempted in
tmpfs_reclaim() before the call to tmpfs_free_node().  Thread2
runs VFS_FHTOVP() and gets a new vnode attached to the node thread1
is about to destroy.

Change tmpfs_fhtovp() to check the generation number after
tmpfs_vnode_get() succeeded.
2014-01-04 12:36:49 +00:00
martin
65dddd35c0 Remove .note.netbsd.mcmodel and .note.netbsd.pax from the chrunched binaries.
We don't know wether the former would make sense (as currently used, it never
makes sense for static binaries) and we can not conclude safe PAX flags from
combined binaries.
2014-01-04 08:58:51 +00:00
joerg
149b982b18 Fix string compare. 2014-01-04 03:19:00 +00:00
msaitoh
3c10ad5307 Add Z68 LPC. 2014-01-04 02:59:17 +00:00
joerg
c8f443fa9a Add missing volatile for hidden side effects of asm. 2014-01-04 02:58:38 +00:00
msaitoh
1d1c89224b regen. 2014-01-04 02:57:50 +00:00
msaitoh
af1b92eef3 Add Intel Z68 LPC 2014-01-04 02:57:27 +00:00
joerg
782dab5744 Fix memcmp use. 2014-01-04 02:56:31 +00:00
msaitoh
4c6bef9716 Temporary disable C2000 PCU because the behavior of the wdog is little strange. 2014-01-04 02:09:12 +00:00
joerg
9c1bcb1543 Explicitly force a CPU for the assembler for the compatibility
cpu_func_* files. LLVM complains about the use of deprecated
instructions when -march=armv7 or equivalent is in use.
2014-01-04 01:33:11 +00:00
dsl
95739e63cd Remove __HAVE_PROCESS_XFPREGS and add the extra parameter for the size
of the fp save area to all the process_read_fpregs() and
  process_write_fpregs() functions.
None of the functions have been modified to use the new parameters.
The size is set for all the writes, but some of the arch-specific reads
  just pass NULL.
The amd64 (and i386) need variable sized fp register save areas in order
  to support AVX and other enhanced register areas.
These functions are rarely called - so the extra argument won't matter.
2014-01-04 00:10:02 +00:00
msaitoh
f8748bc5e6 Add C2000 Platform Controller Unit(PCU). 2014-01-03 23:18:48 +00:00
joerg
6466ad0c14 Avoid implicit cast on the return value. 2014-01-03 22:49:21 +00:00
roy
4be7ea2619 Note import of dhcpcd-6.2.0 2014-01-03 22:28:51 +00:00
roy
8860784217 Build with dhcpcd-6.2.0 2014-01-03 22:27:31 +00:00
roy
8ad72a7637 Sync 2014-01-03 22:24:41 +00:00
roy
322001baf8 Import dhcpcd-6.2.0 with the following changes:
* Fix NAK backoff when a server NAKs a REQUEST after a DISCOVER.
* Fix IPv6 ICMP filtering on Android (RS/RA now works)
* Fix sending of DHCPv6 FQDN when only hostname specified
* Add support for RFC3925 Vendor-Identifying Vendor Options
* Remove hard coded DHCP/DHCPv6 options and embed dhcpcd-definitions.conf.
  This actually results in a slightly smaller binary than before and has the added advantage that the option definitions are now all held within one file.
* Change IAID to default from the last 4 bytes of the MAC address.
  Rationale in the commit, but in a nutshell it allows for a stable IAID between reboots without persistent storage and across different OS's who name or number it differently to each other.
* RFC4242, Information Refresh Time Option for DHCPv6.
* Fix processing of inet4 addr in vendor options and terminate correctly.
* Preserve vendor encapsulated options.
* Fix renewal of Prefix Delegation. Only spam the log if a lease has a new address or changes the vltime of an existing address.
* Add noipv4 and noipv6 options.
* Warn about missing interfaces which require prefix delegation.
* If we timeout, remove any waitip config so that we daemonise correctly.
* Remove the IPv6 forwarding router check as valid use cases exist where you would want IPv6 RS/RA on a router.
* Pass the correct run directory to dhcpcd-run-hooks
2014-01-03 22:10:42 +00:00
dsl
4adfd474c1 Fix bug in previous (panic during process core dump).
Change the interface to ELFNAMEEND(coredump_savenote) so that the caller
  doesn't need to know the type of the elf note header.
Simplifies the calling code somewhat.
2014-01-03 21:34:40 +00:00
christos
eb3888d4e4 Add a load script that puts text.unlikely after text so that the start
address stays where we are. This is copied from m68kelfnbsd.xbn
2014-01-03 21:21:17 +00:00
dsl
825d1920ba There is no need for uvm_coredump_walkmap() to explicity pass the proc_t
pointer to the calller's function.
If the code needs the process its address can be placed in the caller's
  cookie.
2014-01-03 21:12:18 +00:00
dsl
d773820bd9 Instead of generating all the 'note' sections twice (and hoping that the
'fast path' size on the first path matches the actual size on the second)
  save all the notes (mostly the cpu registers for all the LWPs) in
  malloced memory on the first pass.
Sanity check that the number of memory segments matches written matches
  the count obtained earlier. If gcore() is used they could differ.
  (Not sure that returning ENOMEM is ideal, but it is better than a crash.)
2014-01-03 20:52:47 +00:00
joerg
ba1a5140ab Don't bother with the h (short) modifier. The predicated use of bswap16
confuses the type tracking in clang and the use here is not portable
anyway, since it assumes short == int16_t.
2014-01-03 20:26:45 +00:00
christos
7357087b77 fix sun2 build. libfreetype requires -lbz2 -lz 2014-01-03 20:18:45 +00:00
dsl
49ec817cb1 Remove the incorrect and unused Elf64_Shalf.
At one time it was used for a 32bit item - but that definition has long
  since been changed to use a reasonable 32bit type.
2014-01-03 16:54:48 +00:00
dsl
7c4ad3905a Remove the borked definition of ELF64_Shalf from some more places.
Remove the _KERNEL parts of some clones of sys/elf_exec.h
One might ask why this file has got cloned so many times.
2014-01-03 16:50:54 +00:00
dsl
fb6fad97a4 Remove the _KERNEL part of these two clones of sys/exec_elf.h
Remove the incorrect (and completely unused everywhere) Elf64_Shalf.
Put a better include guard on arch/epoc32/stand/e32boot/include/elf.h
Should be ok because I can't find any references to KERNEL in these
  source trees.
2014-01-03 16:40:58 +00:00