Commit Graph

198295 Commits

Author SHA1 Message Date
eadler
022ec632e2 units(1): Add some missing units 2014-03-30 05:06:06 +00:00
eadler
1310880b9b Teach units(1) that an erg and ergon are the same thing. 2014-03-30 04:55:33 +00:00
eadler
2ee2a4fe93 Use the correct variable name in the example code. 2014-03-30 04:40:41 +00:00
eadler
a87fd2475f Fix sizeof modifier for sizeof() in printf 2014-03-30 00:25:31 +00:00
marcel
36cb92b9ae Fix build on FreeBSD 7 where:
1.  DOSPTYP_FAT32 is not defined in <sys/diskmbr.h>
2.  uuid_enc_le() does not exist in libc.
2014-03-29 23:46:01 +00:00
rpaulo
4c66443e33 Enable all cryptocaps because net80211 can do software encryption.
MFC after:	1 week
2014-03-29 23:25:09 +00:00
marcel
c374630340 Fix build on FreeBSD 8 where partition types for nandfs do not exist. 2014-03-29 22:10:54 +00:00
marcel
f443f7d2a6 Fix build on FreeBSD 9 where <sys/pc98.h> has the same defines as
<sys/diskmbr.h> and not the unique defines introduced later.
2014-03-29 22:02:25 +00:00
tuexen
a92bbbfa13 Handle an edge case of address management similar to TCP.
This needs to be reconsidered when the address handling
will be reimplemented.
The patch is from rrs@.

MFC after: 3 days
2014-03-29 21:26:45 +00:00
tuexen
e3da2350c9 Use SCTP_OVER_UDP_TUNNELING_PORT more consistently.
MFC after: 3 days
2014-03-29 20:21:36 +00:00
adrian
8c08adf4bd Add support to export the contents of the notification updates from the firmware.
Right now the NIC isn't actually exporting useful data. I'm not quite sure
why this is. :(
2014-03-29 19:53:04 +00:00
marcel
8d4e6b0a23 Hook mkimg(1) to the build. 2014-03-29 19:04:38 +00:00
marcel
b01bad4f56 Add mkimg, a utility for making disk images from raw partition contents.
The partitioning scheme can be one of the schemes supported by gpart.

Reviewed by:	sjg
Obtained from:	Juniper Networks, Inc.
2014-03-29 19:03:10 +00:00
adrian
1c4cb59b68 Fix ah_powerMode setting.
Reported by:	sbruno
2014-03-29 18:56:11 +00:00
andrew
b7ebbcd2e4 VFP fixes/cleanups for ARM11:
* Save the required VFP registers on context switch. If the exception bit
   is set we need to save and restore the FPINST register, and if the fp2v
   bit is also set we need to save and restore FPINST2.
 * Move saving and restoring the floating point control registers to C.
 * Clear the fpexc exception and fp2v flags on a floating-point exception.
 * Signal a SIGFPE if the fpexc exception flag is set on an undefined
   instruction. This is how the ARM core signals to software there is a
   floating-point exception.
2014-03-29 14:35:36 +00:00
andrew
462154f045 Initialise fpscr to a sane value when we create the pcb. This sets NaNs to
be the default NaN and for denormalised numbers to be flushed to zero.
2014-03-29 14:17:04 +00:00
kib
120b1857f9 Clear the kernel grab of the FPU state on fork. The pcb_save pointer
is already correctly reset to the FPU user save area, only PCB_KERNFPU
flag might leak from old thread state into the new state.

For creation of the user-mode thread, the change is nop since
corresponding syscall code does not use FPU.  On the other hand,
creation of a kernel thread forks from a thread selected arbitrary
from proc0, which might use FPU.

Reported and tested by:	Chris Torek <torek@torek.net>
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
2014-03-29 11:56:33 +00:00
andrew
f21bf29c9b Add more flags for the fpexc register from the ARM1176JZF-S Manual 2014-03-29 10:11:19 +00:00
edwin
c8d5f22f39 MFV for 263899, tzdata2014b
- Update antartica.
- Comments about historical data for Hawaii.
- Update details for Crimea on 30 March
- Move location data Simferopol.
2014-03-29 04:15:11 +00:00
marcel
30dea1dbd2 Build this on sparc64, where we don't have LABELSECTOR nor LABELOFFSET
defined. Improve portability by eliminating their use.
2014-03-29 04:05:57 +00:00
marcel
f017f60135 Make this build on ia64 w/ gcc. 2014-03-29 03:55:58 +00:00
marcel
4aafbd0ea1 Fix build on i386 w/ clang. 2014-03-29 03:46:36 +00:00
marcel
fae0837f6d Add a paragraph about running mkimg without arguments to get a list
of supported schemes and/or a detailed description of how to specify
partitions.
2014-03-29 03:39:22 +00:00
marcel
3b7cf0602a Document how labels can be given to partitions. 2014-03-29 03:33:31 +00:00
marcel
50a0b74b99 Handle the raw partition of the BSD and VTOC schemes. 2014-03-29 03:14:00 +00:00
dim
5da85f3005 Add the llvm/clang patch for r263891. 2014-03-29 00:48:50 +00:00
dim
3dd17d8d4a Make clang default to DWARF2 debug info format for FreeBSD 10.x and
earlier.  For head, this commit does not change anything, but it is
purely meant to be MFC'd.

MFC after:	3 days
2014-03-29 00:25:27 +00:00
imp
0fd9448514 Dump default media size to 1GB to reflect a fatter environment and
larger base media.

Submitted by: Michael Dexter
2014-03-28 23:20:56 +00:00
delphij
b26390b635 MFV r263887:
3993 zpool(1M) and zfs(1M) should support -p for "list" and "get"
4700 "zpool get" doesn't support -H or -o options

MFC after:	2 weeks
2014-03-28 23:12:00 +00:00
ray
e6a9754cb8 o Add new vd_driver method to do bitblt with mask, named vd_maskbitbltchr.
o Move vd_bitbltchr vga's driver method to vd_maskbitbltchr.
o Implement new vd_bitbltchr method for vga driver. (It do single write for 8
	pixels, have to be a bit faster).

MFC after:	7 days
Sponsored by:	The FreeBSD Foundation
2014-03-28 22:04:27 +00:00
imp
33cd2f1582 Only set XDDESTDIR if it wasn't already set to allow people to
override it.
2014-03-28 16:31:12 +00:00
bdrewery
c0990ceabb Add `-S' to display syscall numbers in the output as well.
This is useful for debugging compat modules.

Sponsored by:	EMC / Isilon Storage Division
Obtained from:	Isilon OneFS (based on work by Jeff Hughes)
MFC after:	2 weeks
2014-03-28 16:11:20 +00:00
kib
a6e5d8b248 Several fixes for the PCID implementation:
- When clearing a bit for a cpuid in pmap->pm_save, ensure that the
  cpuid is not set in pm_active.  The pm_save indicates which CPUs may
  have cached translations for given PCID, which implies that a CPU
  executing with the given pmap active have the translations
  cached. [1]

- In smp_masked_invltlb(), pass pmap to smp_targeted_tlb_shootdown(). [1]

- In invlrng_handler(), check for the special values of pcid (0 and
  -1) and do corresponding global or total invalidations before
  checking for performing PCID-specific range invalidation with
  INVPCID_ADDR. [2]

- In invltlb_pcid_handler(), do not read %cr3 unless needed. [2]

- Do minor style tweaks. [2]

Submitted by:	Henrik Gulbrandsen <henrik@gulbra.net> [1]
Other parts sponsored by:	The FreeBSD Foundation [2]
Tested by:	Henrik Gulbrandsen, pho
MFC after:	1 week
2014-03-28 16:07:27 +00:00
ray
ad03b5b28d Enable to build UEFI framebuffer driver for vt(4).
It can be enabled by "device vt_efifb" in kernel config.

Requested by:	emaste
Sponsored by:	The FreeBSD Foundation
2014-03-28 12:50:39 +00:00
emaste
c21a703194 Fix missed efi.h header change in r263815
Pointy hat to:	emaste
2014-03-28 11:46:54 +00:00
marcel
650a8b44e4 Make mkimg a general command and not a maintenance command. 2014-03-28 05:06:12 +00:00
marcel
e2f9db5916 Define SPARSE_WRITE to enable writing sparse files. Output compares ok... 2014-03-28 04:51:18 +00:00
marcel
e55a2fe916 Flesh-out manpage. 2014-03-28 04:43:36 +00:00
marcel
76165e705c Use :- and not :! for pipes. ! needs to be escaped, which adds to the
hassle.
2014-03-28 04:42:34 +00:00
gjb
37accaf4d8 Dereference nonexistent md2(3) manual.
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
2014-03-28 04:19:06 +00:00
marcel
533cda2b92 Write verbosity to stderr. The image may be written to stdout.
While here, fix writing to stderr, by not calling errc()
unconditionally, but only when there's an error.
2014-03-28 04:14:40 +00:00
takawata
d968f19902 Change default logic to CONFORM because this routine is shared
with SCI polarity setting.

Reviewed by: jhb
2014-03-28 02:38:14 +00:00
marcel
4cf1c78a43 Write sparse files by default (when SPARSE_FILE is defined).
While here, detect errors when writing to stdout.
2014-03-28 01:55:02 +00:00
marcel
ba63787689 Partitions start on cylinder boundaries. 2014-03-28 01:52:48 +00:00
marcel
fe7be9e673 Partitions start on track boundaries. 2014-03-28 01:51:45 +00:00
marcel
36046d28b3 Partitions start on track boundaries. 2014-03-28 01:50:56 +00:00
marcel
b7c3be9e45 Remove the -z flag. Let's just write a sparse file whenever we can. 2014-03-27 23:44:16 +00:00
marcel
c4d8b579ba Properly fill in d_nsectors, d_ntracks, d_ncylinders & d_secpercyl.
Round the image size to a multiple of the cyclinder size.
2014-03-27 23:16:18 +00:00
marcel
da0f041a0e Remember operator precedence? 2014-03-27 23:15:07 +00:00
jilles
74ddfdb122 sh: Fix memory leak with an assignment before a regular builtin.
MFC after:	1 week
2014-03-27 22:57:23 +00:00