Commit Graph

177818 Commits

Author SHA1 Message Date
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
cegger
a4f75ff6c2 age_dma_free: set smb pointers to NULL for consistency
age_stop: call mii_down()
ok cube@
2009-02-11 16:15:59 +00:00
vanhu
3723c0b8cf trac#301: fixed IPsec SAs flush in purge_remote() when NAT-T enabled but no NAT-T on tunnel 2009-02-11 15:18:59 +00:00
cegger
cdc8049f5c Attach atphy(4) on ATTANSIC oui.
ok cube@
2009-02-11 14:44:25 +00:00
cegger
276d5496f2 regen. 2009-02-11 14:42:52 +00:00
cegger
807b74b329 add ATTANSIC and their L1/L2 PHYs
ok cube@
2009-02-11 14:41:56 +00:00
pooka
d5aab2d6c4 Do not flock() block devices. The kernel recently started to guard
against opening a block device twice and flock requires that we
keep the device open.  Hence, the same mount would attempt to open
for locking and then VOP_OPEN for kernel access and run into
problems.  This makes it possible to rump_foofs block devices again,
i.e. take the same command line arguments as regular mounts.
Noticed by apb.
2009-02-11 14:35:58 +00:00
christos
028f3ea750 fix typo * -> & from enami. 2009-02-11 13:52:28 +00:00
christos
ed71b85e85 remove debugging. pointed by enami 2009-02-11 13:51:59 +00:00
reinoud
193ccd2d90 Improve write throttling by doing it on page-size basis. The `standard'
solution would cut up files unnessisary during allocation. It also made
assumptions about ucb wich were propably right but still.
2009-02-11 13:08:08 +00:00
plunky
f3db23b38f Restore NetBSD branding to xdm login widget
- add NetBSD banner pixmaps and have Xdm use them by default.

- also, move the pixmap files back to
    X11BASE/include/X11/pixmaps/
2009-02-11 10:25:14 +00:00