Commit Graph

231752 Commits

Author SHA1 Message Date
joerg 295c2661e0 Drop unnecessary-but-harmful casts. 2014-11-22 00:17:07 +00:00
joerg c1bb8c29b0 No reason not to make the string const. 2014-11-21 23:37:25 +00:00
joerg 5444c684df Preserve const. 2014-11-21 23:36:20 +00:00
joerg ebdc245554 Explicitly compare to NULL to show clang that the bool conversion is
intentional, even if it is always true in case of the arrays.
2014-11-21 23:28:57 +00:00
jmcneill fa2843b696 Change internal temperature base from -267.7C to -243.7C. The AXP223
datasheet says that the value is between -267.7C and 165.8C in steps of 0.1C,
but this doesn't make sense for a 12-bit field. If we take the maximum value
and subtract 4095 we get -243.7C, effectively adding +24C to the reported
temp. On my A31 board, this changes a chilly 15.3C to a more reasonable 39.3C.
2014-11-21 22:31:09 +00:00
riastradh 9a10d51413 Fix = -> == in conditional in example. Oops! 2014-11-21 20:53:35 +00:00
christos c8da6eb49b Use proper index types, delete casts, use correct sizeof() in allocations. 2014-11-21 20:46:56 +00:00
christos 57b864bc85 We don't need a special rule now that the file is called .S (having a
just .o rule before broke the MKDEBUG build).
2014-11-21 20:21:08 +00:00
christos 1b89ed2b88 Add libkern for umoddi3 needed for correct leap yar computation in is_leap_year. 2014-11-21 20:13:18 +00:00
christos 437ea53be7 rename to bugstart.S 2014-11-21 20:10:28 +00:00
riastradh 6687f07d58 Use membar_consumer until we have membar_datadep_consumer. 2014-11-21 16:21:13 +00:00
riastradh 3e2082f994 Elaborate comment before pserialize_perform. 2014-11-21 15:44:42 +00:00
riastradh 558d1d8a9d Fix typo: pserialize_read_exit(s), not s = pserialize_read_exit(). 2014-11-21 15:42:57 +00:00
riastradh 11887e69a3 Bump date. 2014-11-21 15:40:38 +00:00
riastradh df0d780638 Expand pserialize(9) example to include publish, read, and destroy. 2014-11-21 15:28:33 +00:00
christos 9010cfb72a kill the dropped privs info message 2014-11-21 13:31:19 +00:00
ozaki-r 0edc16ce4f Replace callout_stop with callout_halt
In order to call callout_destroy for a callout safely, we have to ensure
the function of the callout is not running and pending. To do so, we should
use callout_halt, not callout_stop.

In this case, we need to pass an interlock to callout_halt to wait for
the callout complete.

Reviewed by riastradh@.
2014-11-21 09:40:10 +00:00
shm 60a0878843 Fixed memory leak in case of multiple authentication headers sent by the
client.

OK mrg@
2014-11-21 08:58:28 +00:00
shm b8c713d1a2 Fixed off-by-one in virtualhost processing. Previous code was checking if
Host header is a prefix of any existing vhost. This behaviour might be used to
uncover existing vitual hosts from the remote.

OK @mrg
2014-11-21 08:54:12 +00:00
ozaki-r 758341eedc Tweak linux_getifhwaddr
No functional change.
2014-11-21 06:03:04 +00:00
ozaki-r 326aa300a4 Add missing file entries of tests/usr.bin/xlint/lint1
This unbreaks the build.
2014-11-21 01:39:09 +00:00
christos 7435ccdc0f put back missing paren. 2014-11-21 01:18:39 +00:00
christos 49b7958945 need clock_subr.h for bcdtobin() 2014-11-21 01:16:04 +00:00
joerg 153b8c97fc Restrict workaround to GCC 4.8 as intended. 2014-11-21 01:11:50 +00:00
christos 487e3c0732 need clock_subr.h for bcdtobin() 2014-11-21 00:51:09 +00:00
joerg 06da94bf06 Merge upstream d840c081f8082e8b9e63fead5306643975a97bb3 to fix
UB as seen by a clang compiled as.
2014-11-20 21:44:56 +00:00
christos e45a1decc7 test for c99 flexible packed arrays 2014-11-20 21:18:47 +00:00
christos bf68803d37 allow c99 flexible arrays for packed structures. 2014-11-20 21:17:18 +00:00
christos e9101a47cf Add one more test 2014-11-20 20:52:15 +00:00
christos caa0961bff Always set i_brace in the struct case.
Cleanup some debugging.
2014-11-20 20:49:06 +00:00
christos a6210a763e add LDEBUG 2014-11-20 20:48:33 +00:00
alnsn 1bc241b440 Implement BPF_MOD. 2014-11-20 20:31:22 +00:00
alnsn e7d5850261 Implement BPF_ALU+BPF_MOD-BPF_K when pc->k is a power of 2. Get rid of divt
and divw arguments in emit_moddiv(), they're accessible via the pc argument.
2014-11-20 19:18:52 +00:00
christos b59f66e17c use the inline bcdtobin and bintobcd directly instead through a macro. 2014-11-20 16:34:25 +00:00
christos 0600c9daff kill the macros that called the inlines bcdtobin and bintobcd and define
them directly here.
2014-11-20 16:26:34 +00:00
christos 96739e65c5 bcdtobin and bintobcd are now inlines in <dev/clock_subr.h> 2014-11-20 16:25:16 +00:00
christos 8e5f772231 this is supposed to be SECS_PER_DAY. 2014-11-20 16:18:29 +00:00
christos 6a69232e8f this needs clock.h 2014-11-20 15:50:25 +00:00
christos c68b2c787d provide forward declaration for struct timeval; 2014-11-20 15:49:28 +00:00
christos 5f9c351a9b This now needs clock.h 2014-11-20 15:48:05 +00:00
ozaki-r 9c95126602 Make it clear that we should use not callout_stop but callout_halt before callout_destroy 2014-11-20 15:43:52 +00:00
alnsn e888d0e817 Follow argument convension of other emit_xxx() functions. 2014-11-20 14:35:01 +00:00
wiz 4cb289deb0 Bump date. Quote minus with a backslash, for PostScript/PDF output. 2014-11-20 13:16:05 +00:00
msaitoh ce7f2410b4 Fix manual and usage bug. The ucode command can take [cpuno] argument. 2014-11-20 12:49:13 +00:00
alnsn 215bab86a5 Add BPF_MOD tests. Plus one tiny change. 2014-11-20 11:36:13 +00:00
alnsn a234612ab2 Add BPF_MOD tests. Plus one tiny change. 2014-11-20 11:08:29 +00:00
msaitoh 1ce97493fe Move some printf()s from cpu_probe_base_features() to identifycpu().
Those printf()s are used for "identify" command but cpu_probe_base_features()
is shared by ucodeupdate_check(), too. This change fixes a problem that
the "ucode" command print extra output.
2014-11-20 10:31:10 +00:00
uebayasi 2db56cefe0 Handle warning messages. 2014-11-20 09:02:00 +00:00
matt f6453319ae Add atomic_c11_compare_exchange_cas_{8,16,32}.c 2014-11-20 07:07:13 +00:00
christos 9a89a9bc17 l in ntohl is not long! 2014-11-20 04:51:18 +00:00