Commit Graph

244743 Commits

Author SHA1 Message Date
uwe
2bd409d71f ___start is __dso_hidden, so use CALL_DATUM_LOCAL and drop the PIC
prologue from __start.
2016-08-29 21:27:03 +00:00
martin
fee8b601f9 Despite the 10 in the name, the OLO10 relocation targets a 13 bit field,
the offset (O) providing the additional data.
2016-08-29 16:00:10 +00:00
martin
a81f1c9b5e The target of the OLO10 relocation is the simd13 field of the instruction,
so use a 13 bit target mask.
Fixes PR kern/51436 (I broke this myself in rev 1.4)
2016-08-29 15:57:07 +00:00
ozaki-r
a3d385cde0 Fix initializing wrong queues
Pointed out by Mike Larkin.

PR kern/51448
2016-08-29 04:21:25 +00:00
dholland
c49cf2c657 Clarify the usage, so hopefully nobody else makes the set of wrong
assumptions I just did.
2016-08-29 03:50:05 +00:00
ozaki-r
60ae5732ab KNF; replace white spaces with hard tabs
No functional change.
2016-08-29 03:31:59 +00:00
knakahara
0e4989051b specify when pci_intr_release(9) is called as "pih" is NULL. 2016-08-29 02:48:56 +00:00
kre
7760e6f963 PR kern/49033
POSIX allows for the atime (or technically, any of the times) to be
updated as a side effect of searching a directory (allows, not requires).
The NetBSD UDF implementation apparently works that way, treating a
directory search as a read of the directory, and hence updating the
access time.   Compensate for that in the test (rather than just
expecting failure) by verifying that the atime after the directory
search is within a small margin of the atime before the search
(currently, "small" is 1 second).   We could fetch the time before
the mkdir and both stat() calls, do all of that, fetch the time after,
subtract, and require the after stat() atime to be bounded by the atime
set by the original mkdir and returned in the first stat() and that time
+ the difference in elapsed time - that would be more accurate, but is
a lot more work for little real benefit.

Should anyone be interested in doing that extra work, remember to use
monotonic time (clock_gettime(CLOCK_MOMNOTONIC, ...)) not the time of day
clock for measuring the elapsed time.

Along with this, remove the "if (udf) failure expected" and the
if (udf && we haven't failed yet) fail("random failure failed to happen")
stuff...  (the "random" would have been that sometimes the mkdir and
two lookups (stat() calls) would all occur within the same clock tick,
meaning that the atimes would all be the same.  Other times the clock
would tick somewhere between the mkdir() and the 2nd stat().)
2016-08-29 02:31:46 +00:00
tnn
523a6b00a9 mention puffs_node_pathconf and puffs_node_advlock 2016-08-29 01:13:56 +00:00
kamil
db4bd2c1ca Fix another place with a wrong author of "Unkempt Thoughts"
Stanislaw Lem -> Stanislaw J. Lec
2016-08-28 19:44:44 +00:00
skrll
d2a914bf3d Update XHCI_HCS2_MAXSPBUF to grab all the bits (revision 1.1) from
HCSPARAMS2.
2016-08-28 16:41:30 +00:00
christos
eb8cf8dd65 house-cleaning 2016-08-28 15:59:15 +00:00
christos
328016aa2a Avoid segv when the end signature is not found! 2016-08-28 15:52:22 +00:00
christos
d8bc6231ca Turn on ASLR/MPROTECT 2016-08-28 14:23:00 +00:00
christos
e14ccc6701 Turn on PIE for all arm and sh3 2016-08-28 14:22:35 +00:00
christos
a7865557ac NOPIE here too 2016-08-28 14:16:15 +00:00
christos
a0c7fda095 fix pic code; otherwise we generate text relocations. 2016-08-28 13:50:25 +00:00
christos
8d15ebea2d Sprinkle NOPIE 2016-08-28 08:51:52 +00:00
wiz
9a82c76863 New sentence, new line. 2016-08-28 05:14:35 +00:00
wiz
0c9a844188 Merge ENOMEM descriptions. 2016-08-28 05:07:50 +00:00
dholland
880009a06c fix broken xrefs 2016-08-28 00:15:01 +00:00
dholland
b742f5b4dc Fix broken xrefs (they are now merely dangling) 2016-08-28 00:05:32 +00:00
dholland
05e0436006 Fix broken .Xr 2016-08-27 23:58:27 +00:00
dholland
c959793a57 Rework pursuant to PR 7934: be more clear about the page granularity
behavior and when new memory is zeroed.

Also, strengthen the warning about mixing with calls to malloc (which
is not a bug) and mention that the portable way to fetch the initial
break is to call sbrk(0). There are implementations in the wild where
using _end as the initial break doesn't work.
2016-08-27 23:06:01 +00:00
dholland
030c3497b1 Remove gets() from here too. 2016-08-27 18:59:18 +00:00
dholland
5344a567ba update comment 2016-08-27 18:54:24 +00:00
dholland
0ca1e3e00e Be more careful/explicit with FP rounding when converting floating time
to timeval. Also, don't truncate the seconds part to int for y2038.

I've had this patch sitting around since 2010 and I completely forget
what motivated it.
2016-08-27 18:48:30 +00:00
maxv
7ec563f68a Don't protect the second page, since it is not part of the IDT. 2016-08-27 16:17:16 +00:00
maxv
f46af46fc3 Map the boot IDT, GDT and LDT in three different pages on x86. It is much
better this way, and it reduces the diff between x86 and Xen. Also, zero
them properly, otherwise we might end up with garbage in several slots.
2016-08-27 16:07:26 +00:00
christos
7e1ddeefad skip if we are not running rpcbind. 2016-08-27 14:36:22 +00:00
christos
b8c6512fdd don't disable PIE 2016-08-27 14:23:54 +00:00
christos
2cf6e96d2a needs mprotect disable since it loads kernel code and relocates it. 2016-08-27 14:21:07 +00:00
maxv
ec13cbf741 Remove idt_init. 2016-08-27 14:19:47 +00:00
maxv
35644e238e Rename this value, and use it. 2016-08-27 14:12:58 +00:00
christos
e222705068 Improvements to fgetwln(3) from Andrey Chernov:
1) Set the stdio error indicator on __slbexpand() failure.

2) fgetwc(3) may succeed even when ferror(3) is already set
   (for example, consider a program using SIG_IGN on SIGTTIN,
   reading from the tty while in the background, getting EIO,
   then coming to the foreground and reading again).
   So do not force fgetwln(3) to fail in such a case either.
   (Yes, the program should probably clearerr(3) before
   reading again, but let's be nicer in case it forgets.)
2016-08-27 13:15:48 +00:00
christos
dd0e0080d2 adjust to current config format 2016-08-27 12:08:14 +00:00
christos
4b0d182541 catch up with link printing. 2016-08-27 11:30:49 +00:00
christos
237ae380ee do the long double tests if we have long double. 2016-08-27 10:07:05 +00:00
christos
fac93a1e7a no need for stdio. 2016-08-27 10:03:16 +00:00
christos
c898927fa5 sync with FreeBSD 2016-08-27 10:01:08 +00:00
christos
53b6bfd5c1 correct case 23 for -0.0 2016-08-27 10:00:38 +00:00
christos
bb5114e4e0 remove debugging 2016-08-27 09:35:13 +00:00
christos
394a54cbfc skip buggy assembly for libm_g.a 2016-08-27 09:15:44 +00:00
christos
a66a750e64 detect overflow in oldexp + newexp 2016-08-27 09:11:56 +00:00
skrll
b44d7a60e4 Fix harmless typo 2016-08-27 08:57:21 +00:00
skrll
fe050a90af flxd's axe(4) - I think. 2016-08-27 08:45:59 +00:00
skrll
d4fa68f869 Regen 2016-08-27 08:43:36 +00:00
skrll
6c9ddde92a Add flxd's axe(4) 2016-08-27 08:42:16 +00:00
christos
a530c482ac Fix static linking. 2016-08-27 08:38:58 +00:00
dholland
0934eb0408 Setlists for PR 51033. 2016-08-27 08:03:47 +00:00