Commit Graph

226639 Commits

Author SHA1 Message Date
matt
0bbe3a2196 ARMv6+ platforms no longer have strict alignment requirements. 2014-04-18 15:45:46 +00:00
christos
972d2857dd more conservative length check. 2014-04-18 15:00:37 +00:00
reinoud
cde9d04d20 Fix attachment of wdt to also use the bus_space_handle
While here, move the registers outside the global register file to a separate
wdt_reg.h file.
2014-04-18 14:32:49 +00:00
reinoud
d22dde71f6 Fix interrupt enable/disable and clearning bits
what was i thinking...
2014-04-18 14:18:33 +00:00
reinoud
37a2323bcc Oops, i forgot to commit this patch on the `teaching sscom to use attach with
bus_space_handle_t'
2014-04-18 14:17:11 +00:00
maxv
dc8c3423b2 'error' is not set on failure. This is a true bug: everything is freed
and unlocked while zero is returned. Since there's no error, execve_runproc()
will get called and will try to use those freed things.

PS: This bug was here before uebayasi@'s changes
2014-04-18 11:44:31 +00:00
reinoud
e96cab5d05 Second handle to bus_space_read_* is the bus_space_handle, not a repeat of the
bus_space_tag
2014-04-18 11:37:17 +00:00
uebayasi
a969a4cf8a calcargs: Correct the size of "argc" in the stack size calculation.
(The old code has worked because it is compensated by wrong size calculation
of "auxinfo" (multiplied by sizeof(void *)).)
2014-04-18 06:59:32 +00:00
matt
76cc6ae7a6 Use KERNEL_BASE_VOFFSET. s/bbs/bss
Move temp_l1_table to last 16KB before 128mb after kernel_base.
2014-04-18 06:53:13 +00:00
martin
71c0010c51 Fix PR kern/48550 by aligning the single instance of scsipi_read_cd_cap_data
that we found misaligned in the wild so far properly for the ahcisata
driver. Also point at PR kern/48754 for the real issue.
2014-04-18 06:23:32 +00:00
maxv
4a1b3781e1 Memory leak (only triggerable from root).
ok christos@
2014-04-18 05:22:13 +00:00
christos
f1ed7fe14d remove attribute keyword 2014-04-18 02:41:32 +00:00
christos
04a020c93e handle constant attribute 2014-04-18 02:41:17 +00:00
christos
903821805f lint has __alignof__ too. 2014-04-18 02:28:06 +00:00
christos
0d1cbc6a00 don't include fmemopen in tools builds. Since tools does not define
_NETBSD_SOURCE, we don't get the fmemopen prototype
2014-04-18 02:17:14 +00:00
christos
c8b1f28fd2 Never return the attribute keywords if we are not in attribute. 2014-04-18 01:39:57 +00:00
christos
1f0ca5f12c builtins only for NetBSD since fmemopen is not portable. 2014-04-18 01:18:54 +00:00
christos
31ce3096fd Add some builtins 2014-04-18 01:15:07 +00:00
christos
4730dabc79 Add -g (gnu) so lint recognizes __attribute__ 2014-04-18 00:37:46 +00:00
christos
687432e7a3 Handle the rest of gcc __attribute__ s. 2014-04-18 00:23:46 +00:00
christos
59bbfbb11d only fill memory with junk if BLKDEBUG 2014-04-18 00:21:14 +00:00
christos
a46cc2f317 handle LDOUBLE 2014-04-18 00:20:37 +00:00
pgoyette
282ceca326 Reference the correct test file name...
Hello again, xtos!
2014-04-17 23:15:27 +00:00
christos
20ba703761 make outname print where it came from in case of error 2014-04-17 18:52:03 +00:00
christos
a20e9a10c9 add new lint tests 2014-04-17 18:37:07 +00:00
christos
fc07744d1d add more tests 2014-04-17 18:34:44 +00:00
christos
10e73b5c30 - add a function to dump a node
- better diagnostics on abort
- allow converting a constant
- initialize right node now that we trash memory this makes a difference.
  before it was NULL.
2014-04-17 18:23:18 +00:00
christos
d0342ea7b6 put back missing arg 2014-04-17 18:17:09 +00:00
pgoyette
c59a3ffd71 s/null/NULL/ to fix build break
Hello, xtos!
2014-04-17 18:15:49 +00:00
martin
7d50c1ed2d Add missing uark and umcs attachments, bump date 2014-04-17 17:50:21 +00:00
christos
e34b25460d typeof and extension don't need parens 2014-04-17 17:29:24 +00:00
christos
f87049800a Trash freed memory so we catch bad uses. 2014-04-17 16:30:05 +00:00
christos
8a20351779 Don't free memory; it is used later. 2014-04-17 16:29:26 +00:00
christos
bb7f870e6d CID/1008347, CID/1008348, CID/1008349: overflow before widen
CID/1203198, CID/1203199:  Uninitialized scalar variable
2014-04-17 16:22:48 +00:00
christos
fa910fdab6 CID/1203196: Don't confuse coverity with out of bounds access 2014-04-17 16:14:22 +00:00
christos
b48e8c69e7 CID/1203197: NULL deref 2014-04-17 16:08:42 +00:00
christos
cf59c3a2a1 CID/1203194, CID/1203195: Out of bounds read 2014-04-17 16:05:45 +00:00
christos
eb84199eb9 CID/1203192, CID/1203193: Out of bounds read 2014-04-17 16:04:47 +00:00
christos
41b25bacda CID/1203191: Out of bounds read 2014-04-17 16:01:24 +00:00
christos
98bac80e02 CID/1203190: Fix NULL deref 2014-04-17 15:57:41 +00:00
christos
5a9da49e82 CID 1203189: Null deref. 2014-04-17 15:55:53 +00:00
christos
2a395ebf82 add LRO 2014-04-17 15:45:39 +00:00
christos
c14f88984c CIT 744275: Increase max_retry so we retry once. 2014-04-17 15:35:49 +00:00
christos
f4348d8ad9 CID 140077: Add missing break and FALLTHROUGH 2014-04-17 15:34:05 +00:00
christos
136c8cf0cd CID 141398: Fix incorrect test 2014-04-17 15:33:40 +00:00
skrll
e726eb3c65 Fix count vs ret confusion. ret is only set on error when count == 0 -
make sure this is the case.
2014-04-17 13:48:02 +00:00
tsutsui
5546b37c59 Check the service switch on 425e to select apci serial console.
Taken from OpenBSD/hp300.  See the following comment for details:
>> * Check the service switch. On the 425e, this is a physical
>> * switch, unlike other frodo-based machines, so we can use it
>> * as a serial vs internal video selector, since the PROM can not
>> * be configured for serial console.
2014-04-17 12:35:24 +00:00
matt
ad575cd374 Do softints after restoring interrupts 2014-04-16 22:44:42 +00:00
matt
96ebdccaee Add ctcom 2014-04-16 22:40:24 +00:00
matt
de53240564 Allow l2cc base to gotten from device properties. 2014-04-16 22:40:00 +00:00