155778 Commits

Author SHA1 Message Date
dyoung
441215d99b Convert the rather long and backslash-ridden DELAY_MS macro to a
much shorter static subroutine, delay_ms().
2007-02-04 05:08:18 +00:00
dyoung
b39ec50ca6 Use the right subroutine name for the debug message. 2007-02-04 04:59:39 +00:00
tsutsui
59ea1d1768 - check more hwrev and use HWREV_* macro. From Realtek driver
via Darrin B.Jewell.
  XXX: maybe we should check this sc_rev on more place
- use RTK_TXCFG_HWREV (0x7cc00000) rather than 0x7c800000
  to mask the hwrev value since bit 0x00400000 is used only by 8139D
  which is not supported by this driver
- fix a tyop
2007-02-04 04:49:58 +00:00
tsutsui
15a85916ca Add another 8100E HWREV number. From Realtek driver and Plan9 driver. 2007-02-04 04:41:43 +00:00
tsutsui
2f113b8e35 Add an 8169SC variant to re_devs. From Darrin B.Jewell. 2007-02-04 04:39:38 +00:00
tsutsui
befdfe9762 Try to map both PCI I/O and memory space. 2007-02-04 03:20:23 +00:00
uwe
3bc8e00664 Fix previous, add forgotten pointer dereference in the call to dtoa(). 2007-02-04 03:20:22 +00:00
christos
971e3bb846 use dtoa() instead of returning empty when we don't have extended precision
information.
2007-02-04 03:05:01 +00:00
tsutsui
6e3b5f512c Remove unused dh_addr member from struct si_dma_handle. 2007-02-04 01:38:34 +00:00
tsutsui
e32f083d80 Remove leftover debug stuff which could break si_obio DMA. 2007-02-04 01:37:09 +00:00
christos
deecbf494d remove dup definition 2007-02-04 00:39:43 +00:00
christos
5058960df7 make this gdtoa friendly. 2007-02-04 00:39:19 +00:00
christos
fc500ab7fb Add macros for overflow detection 2007-02-03 23:48:21 +00:00
christos
016db3548e make this compile with -DSTATISTICS 2007-02-03 23:46:40 +00:00
christos
cb9daf8f10 cleanup:
- remove __P
	- remove unneeded casts
	- add _DIAGASSERT
	- add more diagnostics for integer overflow
	- fix size_t/int confusion
	- make debugging and statistics code compile
2007-02-03 23:46:09 +00:00
christos
980e6dca8f - knf, ansi, lint etc. 2007-02-03 23:04:04 +00:00
christos
72e430635f chech the correct fmt in the assertion. 2007-02-03 22:26:55 +00:00
christos
ecb577caf1 - errors to stderr
- improve some shell syntax: $() instead of `` and ! prog instead of else
  kludge
- use getopts.
- add usage
2007-02-03 20:59:34 +00:00
christos
fff7c9f19d misc cleanups. 2007-02-03 20:39:05 +00:00
christos
32b2149aa4 we need wcrtomb now too. 2007-02-03 19:55:51 +00:00
christos
288e2b48f6 add prototypes for the _ss functions. 2007-02-03 19:49:21 +00:00
christos
c8e7c68742 int/size_t changes 2007-02-03 18:09:20 +00:00
tsutsui
f7397aaa8c Make si at obio and si at vme on sun3 use bus_dma(9) for data xfer.
XXX1: Only si at vme on TME is tested.
XXX2: No info about DMA on si at sebuf. (bounce buffer required?)
2007-02-03 18:02:57 +00:00
tsutsui
277e6a5263 Prepare bus_dma(9) structures for sun3 obio devices. 2007-02-03 17:00:37 +00:00
tsutsui
5ec98f218f Add bus_space(9) and bus_dma(9) glue to sun3 MD VME attachment
to test these APIs on TME.

XXX I hope these sun3 MD VME stuff will be replaced by MI VME driver soon.
2007-02-03 16:58:08 +00:00
tsutsui
39bbf3e6c5 Implement bus_dmamap_load(9) and bus_dmamap_unload(9) for sun3. 2007-02-03 16:51:13 +00:00
ad
26d6ccf325 Document cv_has_waiters(). 2007-02-03 16:49:11 +00:00
christos
20b56f03ed make extended precision gdtoa friendly. 2007-02-03 16:44:45 +00:00
christos
818764fc7c some int -> size_t
deal with sparc64 that has 112 bits of mantissa.
2007-02-03 16:44:02 +00:00
ad
00b8f6d201 - Require that cv_signal/cv_broadcast be called with the interlock held.
- Provide 'async' versions that don't need the interlock.
2007-02-03 16:39:53 +00:00
pooka
3f280a11a4 fstrans owner automatically gets a normal lock, don't need to lazy lock
pointed out by hannken
2007-02-03 16:29:05 +00:00
christos
3ab861054c make this compile with DIAGNOSTIC 2007-02-03 16:22:48 +00:00
christos
0e61db23eb Compile with DIAGNOSTIC 2007-02-03 16:17:15 +00:00
christos
b513fb7c0a make this compile with DIAGNOSTIC 2007-02-03 16:12:47 +00:00
tsutsui
3c39b23802 Fix botch in #ifdef DIAGNOSTIC. 2007-02-03 05:20:31 +00:00
tsutsui
b19c5b0bc7 Make esp and its dma on 3/80 use bus_dma(9).
XXX: Maybe we should consider to use MI sys/dev/ic/lsi64854.c.
2007-02-03 05:17:30 +00:00
tsutsui
8763f0bf0e Prepare bus_dma(9) structures for sun3x obio devices. 2007-02-03 05:14:38 +00:00
tsutsui
2fce94aa7d Implement bus_dmamap_load(9) and bus_dmamap_unload(9) for sun3x. 2007-02-03 05:13:58 +00:00
elad
d60f1f435f If Veriexec prevents indirect execution of the binary, in addition to just
blocking the mmap() if exec bit is requested, also strip exec bit from
maxprot for further mprotect() calls.

Okay joerg@.
2007-02-03 01:11:50 +00:00
christos
d228a772b3 enable wide doubles. 2007-02-03 00:28:56 +00:00
christos
f38f949967 use vfwprintf.c 2007-02-03 00:28:43 +00:00
christos
093145397b - merge change from freebsd
- add support for building as vfprintf.c
- XXX: we strdup to simplify the freeing logic. This should be fixed for
  efficiency in the vfprintf case.
2007-02-03 00:28:33 +00:00
christos
5d7be27437 the buffer len is called slen. 2007-02-03 00:27:52 +00:00
christos
cca9be70a3 protect buffer size from overflow. 2007-02-03 00:23:01 +00:00
christos
12287894d6 ext_int bit is no more. 2007-02-02 23:18:57 +00:00
christos
0449ecc079 since the int bit is merged, do the explicit math. 2007-02-02 23:14:09 +00:00
christos
efdcbc425e add constants used by gdtoa 2007-02-02 23:08:22 +00:00
christos
b5b1a9d57c Merge the int bit with the high fraction bit. Add constants/macros
needed by gdtoa.
2007-02-02 23:07:44 +00:00
christos
113cee3dbe add the new files to the build. Note I am not bumping libc now, because
these are not used yet.
2007-02-02 23:06:34 +00:00
christos
9ad6657285 add new prototypes. 2007-02-02 23:05:56 +00:00