Commit Graph

177928 Commits

Author SHA1 Message Date
lukem
79362ba3ea avoid lint's whining on i386 2009-02-13 04:01:46 +00:00
abs
82eae5f5e8 avoid long/unsigned long printf warning on some platforms 2009-02-13 01:38:32 +00:00
lukem
bd0ca7dff7 WARNS=4 2009-02-13 01:37:35 +00:00
lukem
9abbf3c336 fix -Wsign-compare issues 2009-02-13 01:37:23 +00:00
lukem
998789a8d9 this code isn't -Wsign-compare friendly -- drop the WARNS to 3. 2009-02-13 01:27:43 +00:00
abs
0c7bdeb6b8 Use u_int counter to count from 0 to u_int: for (u = 0; u < digits; u++) 2009-02-13 00:46:25 +00:00
lukem
dbe6409d6e -Wsign-compare for WARNS>=4 2009-02-12 22:56:26 +00:00
lukem
c0d472c616 Enable -Wsign-compare for WARNS=4 (and above).
Test compiled on i386 and amd64; there may be some stragglers
on other platforms.

Note: -Wall has this by default in gcc4, and we explicitly disable it at
WARNS=1 (i.e., -Wall -Wno-sign-compare).  A goal is to reduce the WARNS level
where this feature is enabled, so we can eventually remove -Wno-sign-compare.
2009-02-12 22:49:05 +00:00
bouyer
2a8972c890 Remove dead code 2009-02-12 20:57:45 +00:00
christos
942a145f69 PR/40603: Christoph Badura: unprivileged users can add and delete interface
link addresses. Fixed by centralizing the test as suggested. Will pull up
to 5.0 once submitter tests the fix.
2009-02-12 19:05:36 +00:00
christos
160a37667a Unbreak ssp kernels. The issue here that when the ssp_init() call was deferred,
it caused the return from the enclosing function to break, as well as the
ssp return on i386. To fix both issues, split configure in two pieces
the one before calling ssp_init and the one after, and move the ssp_init()
call back in main. Put ssp_init() in its own file, and compile this new file
with -fno-stack-protector. Tested on amd64.
XXX: If we want to have ssp kernels working on 5.0, this change needs to
be pulled up.
2009-02-12 18:24:18 +00:00
uebayasi
30399256d4 Enable assertions only when _DIAGNOSTICS is defined, as other libc parts do. 2009-02-12 16:24:59 +00:00
uebayasi
d4222bb04e Fix build for tests/syscall; pointed out by Geoff Wing. 2009-02-12 16:14:32 +00:00
cegger
17fa4af4f6 Make Dom0/DomU boot with root-on-nfs when 'bootdev' parameter is missing or wrong.
In this case, we get prompted for the root device.
Make sure that nfs_bootstatic_callback is initialized or we will miss the nfsroot bootparameter,
causing a boot failure even when root device is correct.
2009-02-12 15:40:15 +00:00
nonaka
50b0e1a573 Processing that installed the card first was moved from pxapcic_attach_common()
to the head of pxapcic_event_thread().
As a result, the problem that built-in CF card is not detected is solved.
This problem occurred because of the fix of kern/40531.
2009-02-12 15:37:12 +00:00
pooka
143addadfb Use p_nlwpid to store the next lwpid location. 2009-02-12 14:46:58 +00:00
sketch
fc16547f5e More fixes for existing portability stuff. 2009-02-12 13:39:49 +00:00
cegger
1ff2d41bea pretty print atphy's supported medias in dmesg. 2009-02-12 13:38:49 +00:00
lukem
342bcd3c5c Drop to WARNS?=3 as src/sys doesn't compile with -Wsign-compare yet 2009-02-12 13:23:17 +00:00
lukem
e77a187288 Back to WARNS=3 until the kernel source is -Wsign-compare friendly. 2009-02-12 13:20:17 +00:00
bouyer
a95c0eef3a When IPFilter 4.1.29 has been imported, the mbuf argument to nd6_output()
has been changed from m0 to *mpp. But as *mpp has been set to NULL just
before the call, we end up calling ether_output() with a NULL mbuf,
leading to a NULL pointer dereference. Revert back to using m0 here.

The issue show up when using 'return-rst' or 'return-icmp' in ipf6.conf.
Problem discovered and fix tested on ftp.fr.netbsd.org.
2009-02-12 12:12:39 +00:00
bouyer
c54134b00b When an error is reported on a write, data may have been transfered
to the device's cache anyway and so cmdh_prdbc reports a completed
transfer. If we use it to update ata_bio->bcount this has 2 conseqences:
- the automatic LBA48 workaround doesn't qick in because bcount is used
  to compute the last sector of the transfer (wd(4) part of kern/40569)
- wd(4) will report a B_ERROR buffer with a b_resid of 0, which panics
  a DIAGNOSTIC kernel
Fix by ignoring cmdh_prdbc if we had a write with errors, and in this case
leave ata_bio->bcount at its initial value.

While there use NOERROR instead of 0 for ata_bio->error (cosmetic).

thanks to Matthias Scheler for tests.
2009-02-12 11:44:11 +00:00
lukem
d237abe695 fix -Wsign-compare issues 2009-02-12 10:43:41 +00:00
cegger
92e9ddc630 flow-control support for MCP65 chip.
XXX other chips may also have flow-control, but only on MCP65 tested.
ok cube@
2009-02-12 10:33:23 +00:00
cegger
150dcfcbbb Yukon chips support flow-control. Tested on Yukon Lite chip.
ok cube@
2009-02-12 10:22:30 +00:00
lukem
f092a45e5d fix -Wsign-compare issues 2009-02-12 09:05:13 +00:00
lukem
c7201a0f39 fix -Wsign-compare issues 2009-02-12 06:35:54 +00:00
rumble
85716c44d5 Enable Personal IRIS 4D/20 and 4D/25 support:
- Adapt int(4) to handle the INT1 chip
  - Move generic rtc clocks out of hpc/ and into dev/
  - Handle the very strangely wired eeprom and other bits in arcemu
  - Sprinkle MACH_SGI_IP6 as necessary
  - Enable IP6/IP10 devices in GENERIC32_IP12. Yes, the naming is poor but
    there's no winning with kernel/hw compatibility on sgimips...

Tested on my 4D/25. Doesn't (appear to) break macallan@'s IP22.
2009-02-12 06:33:56 +00:00
lukem
eb0de3bfe5 fix sign-compare issues 2009-02-12 06:33:13 +00:00
rumble
0e95582ed1 WD33C93 has only two registers, which often times aren't mapped to adjacent
bus space locations. Map them individually, instead.
2009-02-12 06:24:45 +00:00
rumble
4ef2271e2d If sc_dmamode is set to SBIC_CTL_NO_DMA, then actually don't do DMA. Now
PIO mode actually works.
2009-02-12 06:20:58 +00:00
lukem
64d3d6de80 sign-compare fixes 2009-02-12 05:06:54 +00:00
lukem
4359ce3c5f sign-compare fix 2009-02-12 05:03:47 +00:00
lukem
71d48e7c9e sign-compare fixes 2009-02-12 04:57:46 +00:00
lukem
2770a3ae8f sign-compare fixes 2009-02-12 04:40:40 +00:00
lukem
2d59e2af1e sign-compare fix 2009-02-12 04:38:52 +00:00
lukem
102c672a15 sign-compare fixes 2009-02-12 04:32:05 +00:00
lukem
deeb06e363 sign-compare fixes 2009-02-12 04:13:08 +00:00
lukem
8483a30314 sign-compare fix 2009-02-12 04:10:52 +00:00
lukem
9d1671f467 Fix sign-compare issues 2009-02-12 03:34:33 +00:00
lukem
19b046886f fix sign-compare issue 2009-02-12 03:12:36 +00:00
lukem
2360d0845a Apply some of FreeBSD libc/stdlib/malloc.c rev 1.162
to fix sign-compare issues.
2009-02-12 03:11:01 +00:00
macallan
d6232854b7 Become a good vcons citizen.
Also, don't use the cursor sprite as text cursor - it's not worth the pain and
the sprite doesn't have an invert-background plane either so the cursor wasn't
transparent.
Instead blit the cursor using the appropriate ROPs. This way we get rid of the
cursor misplacement problem as well.
While there also use device_t.
TODO: arbitrary font sizes, cleanup, support for mapping all blitter registers
so we can use them from X.
2009-02-12 02:29:58 +00:00
oster
f17e8d67c4 If we see a RF_RECON_WRITE_ERROR event we know a write has finished and
we need to account for that.  Failure to do so means we can end up
waiting forever for writes we think are outstanding, but which have
already completed.

Addresses the RAIDframe part of PR#40569.  Thanks to Matthias Scheler
for reporting the issue and verifying the fix.
2009-02-11 23:54:10 +00:00
lukem
cfd7bc0451 Fix sign-compare issues.
Ensure provided uio_resid >= 0; negative sizes have "interesting"
semantics elsewhere in stdio, so it's better to avoid them.
2009-02-11 23:48:17 +00:00
cegger
e6e201ff78 revert changes in rgephy_reset() done in rev. 1.25.
Should fix PR 40586
2009-02-11 23:01:07 +00:00
abs
c0b7d45df7 Fix over enthusiastic length limit in SUPPORT_8_3_SOURCE_FILESYSTEM block 2009-02-11 20:33:14 +00:00
christos
71735a83f7 add missing , 2009-02-11 19:22:22 +00:00
christos
26114345a6 don't print warnings about can't find termcap entry. 2009-02-11 19:10:08 +00:00
christos
17413e263b custom password prompt that displays the user. 2009-02-11 18:38:56 +00:00