Commit Graph

187721 Commits

Author SHA1 Message Date
phx
37e984601c Ensure reorder protection for amigappc in all bus space functions.
The ne(4) driver (XSurf2), which is the only bus_space device I got,
works now.
2010-02-03 13:56:53 +00:00
wiz
07f775da9b Add missing parentheses. Found by cppcheck, reported by
Henning Petersen in PR 42728.
2010-02-03 13:51:00 +00:00
wiz
cc199107ab Remove extra parenthesis. Found by cppcheck, reported by
Henning Petersen in PR 42732.
2010-02-03 13:48:53 +00:00
wiz
92479c29b6 Remove extra parenthesis. Found by cppcheck, reported by
Henning Petersen in PR 42730.
2010-02-03 13:48:17 +00:00
wiz
4222db0cd6 Remove extra parenthesis. Found by cppcheck, reported by
Henning Petersen in PR 42729.
2010-02-03 13:47:57 +00:00
tsutsui
18ee5820df No need to compile strlcpy.c and strlcat.c here.
They are in libnbcompat.a, not in src/lib/libc/string
(moved into src/common/lib/libc/string), and
strlcpy.c and strlcat.c derived from crypto/dist/heimdal/lib/roken
won't include the target functions if nbtool_config.h defines
HAVE_STRLCPY and HAVE_STRLCAT.
2010-02-03 12:58:53 +00:00
uebayasi
cfde757678 uvm_fault_lower_generic_io: Reduce diff from uvm_loanuobj(). 2010-02-03 12:40:39 +00:00
wiz
368f216930 Remove trailing whitespace. Use Fn when referencing functions. Sort sections.
New sentence, new line.
2010-02-03 08:47:40 +00:00
uebayasi
cd14256881 uvm_fault_lower_generic_io: One missing mutex_exit(vmobjlock). Found while
comparing this function with uvm_loanuobj().  (Part of) these should be
merged.
2010-02-03 07:48:18 +00:00
tls
529d2eb4cb Plug liblzf into build. Liblzf is a small (3504 byte shared library on i386),
very very fast, 2-clause BSD-licensed compressor.  We provide the LZF_STATE
version of the API, which is not the default for generic liblzf.
2010-02-03 06:25:54 +00:00
tls
55a82c0a98 Adjust liblzf to offer the LZF_STATE_ARG API, which is better for small-stack
environments (think bootblocks etc) and no worse elsewise (you can always
just pass the same state argument...) and have correct prototypes when doing
so.
2010-02-03 03:55:38 +00:00
tls
05206c0677 Import liblzf version 3.5 (2-clause BSD licensed by Marc Lehmann) 2010-02-03 03:50:40 +00:00
pooka
068898b44d Introduce the uhub_ubermatch variable. Setting it to 1 makes sure
than a uhub attaches even at higher priority than ugen when
ugen_override is set to 1.  This allows to probe the whole USB bus
and attach its functions with ugen.

A better infrastructure to control this would be nice ....
2010-02-02 23:18:49 +00:00
phx
c41b967aea We need to provide eclockfreq, just for the aucc driver. The amigappc uses
mftb timecounters.
2010-02-02 20:56:13 +00:00
skrll
3eb360a13a Typo in comment. 2010-02-02 20:40:07 +00:00
yhardy
a8f33b89f7 Add my name, as specified in the welcome message. 2010-02-02 19:42:32 +00:00
phx
e8c5c35803 Make it compile with all devices from amiga/dev. 2010-02-02 19:16:57 +00:00
phx
49b984df5c Rewrote the "amiga" PIC from scratch. Interrupts are based on IPL 1-6 now
and no longer on IRQ 0-13.
Fixed interrupt levels in amigappc_install_handlers() (IPL_SOFTxxx was very
bad!).
Compilation with all (most?) amiga devices was tested and fixed.
Some smaller fixes.
Status:
  With Cybervision64 and A3000 SBIC SCSI (with DMA disabled) the system
  reaches multiuser!
Lots of problems left...
2010-02-02 19:15:33 +00:00
phx
6105a09f9d IOBlix files were missing. 2010-02-02 19:07:05 +00:00
christos
e89ba73a47 According to TOG:
- asctime{,_r}, ctime{,_r} may return NULL; document that, and avoid coredumps.
- gmtime{,_r}, localtime{,_r} may return NULL and set EOVERFLOW, document and
  set errno.
- when mktime returns (time_t)-1, make it set EOVERFLOW and document it.

XXX: Should be pulled up to 5.x
2010-02-02 19:04:37 +00:00
phx
c2dfc3161a Fix compilation warnings and errors with amigappc. 2010-02-02 19:03:31 +00:00
uebayasi
5f0a89783a uobj->pgops->pgo_get doing PGO_SYNCIO returns a uobjpage whose uobj backpointer
refers to another "uobj" used to call pgo_get.  Revert the wrong assertion
I made.  My bad.

(This and pgo_get's possible ERESTART return value check is the only 2 behavioral
changes I made.)

Reported by drochner@, thanks.
2010-02-02 18:49:23 +00:00
uebayasi
0dceadd765 Don't pass an unnecessary reference to uvm_loanbreak_anon().
Requested by rmind@.
2010-02-02 17:40:43 +00:00
drochner
6d35fa3886 give up some silly macros which were only used ~once, and reduce
dependency on "locators.h"
makes the code more LKM frienly
2010-02-02 16:54:40 +00:00
drochner
6d0b625409 The structure returned by USB_DEVICEINFO has the vendor/device strings
UTF-8 encoded now. We can't simply print this to a terminal, so
convert it to the current codeset first.
2010-02-02 16:25:30 +00:00
drochner
1921d00aaf add hooks to allow terminal emulations to be installed by LKMs
(these are not available in early bootstrap, so this is not an
option for the system's default emulation)
2010-02-02 16:18:29 +00:00
wiz
11b7e600cb Missing printf in sys/compat/linux/arch/powerpc/linux_machdep.c
found by cppcheck and reported by Henning Petersen in PR 42720.
2010-02-02 15:02:07 +00:00
wiz
27b261aabe Missing 'if defined COMPAT13 or COMPAT50' in uvm_swap.c found by cppcheck
and reported by Henning Petersen in PR 42721.
2010-02-02 15:00:34 +00:00
wiz
2ec3e891ae Fix incomplete line (deleto?), found by cppcheck and reported by
Henning Petersen in PR 42719.
2010-02-02 14:58:46 +00:00
wiz
51c0c0ea31 Add missing parentheses, found by cppcheck and reported by
Henning Petersen in PR 42718.
2010-02-02 14:57:45 +00:00
phx
3196bb8213 Make ./build release work with new amigappc port. 2010-02-02 14:13:16 +00:00
phx
507a638d7f Include majors.amigappc instead of majors.amiga. 2010-02-02 12:47:51 +00:00
tron
370c0f3c62 Include "ctype.h" in the central place which deals with building the
kernel debugger as a userland program.
2010-02-02 09:04:14 +00:00
uebayasi
5526267c10 Be consistent to decide if PMAP_WIRED or not. 2010-02-02 06:52:59 +00:00
uebayasi
19fbe1698d Move A->K loan break code to uvm_loan.c. 2010-02-02 06:06:02 +00:00
uebayasi
be06afbe24 Indent. 2010-02-02 05:58:16 +00:00
uebayasi
a79520c14e uvm_fault: Split "neighbor" fault and loan handling into functions. 2010-02-02 04:35:35 +00:00
mrg
acffd0b4ae - split sp_tlb_flush_pte() and switchtoctx() into sp_tlb_flush_pte_us()/
sp_tlb_flush_pte_usiii() and switchtoctx_us()/switchtoctx_usiii() and
  implement the latter while i'm here.  it works ... sometimes i think,
  but also sometimes panics/hangs.
- fix a comment in sparc64_ipi_flush_pte_usiii()
2010-02-02 04:28:55 +00:00
pooka
33907919ba pud requires putter like it always has.
deliberately do NOT bump date.
2010-02-02 04:04:39 +00:00
mrg
e063f65e04 for now, reduce a few #ifdef SPITFIRE cases by introducing a new
ASI_DCACHE_TAG_OR_INV that is either ASI_DCACHE_{TAG,_INVALIDATE}.

increase the common code in cache_flush_phys().
2010-02-02 03:07:06 +00:00
uebayasi
49bcc1198b Sort struct uvm_faultctx members for better alignment. 2010-02-02 01:54:48 +00:00
hubertf
659e2ca273 Use uppercase for acronyms on output: DRAM, SRAM 2010-02-01 22:34:29 +00:00
njoly
0da168aed4 Switch SSP init output to aprint_debug() instead of aprint_normal()
under DIAGNOSTIC ifdefs.
2010-02-01 16:14:58 +00:00
uebayasi
689dab24ea Indent. 2010-02-01 16:12:36 +00:00
uebayasi
d99dd23d72 More split. 2010-02-01 16:08:27 +00:00
njoly
69c8ab9322 Aprintify. 2010-02-01 12:58:04 +00:00
njoly
7d3be93bb8 Do not print ac97 link rate message unless verbose boot is requested. 2010-02-01 12:51:16 +00:00
uebayasi
49c8580e07 Fix build without DIAGNOSTIC. 2010-02-01 11:58:39 +00:00
uebayasi
ef11535fc6 uvm_fault: Clarify when to wire what. 2010-02-01 10:22:40 +00:00
tron
4fe91a715f Include "ctype.h" if we are not building a kernel to fix the build
of crash(8).
2010-02-01 09:56:58 +00:00