Commit Graph

187755 Commits

Author SHA1 Message Date
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
jruoho 4d0db25236 Fix incorrect notify handler type (ACPI_SYSTEM_NOTIFY -> ACPI_DEVICE_NOTIFY). 2010-02-01 09:45:04 +00:00
uebayasi 3e6fea088d uvm_fault_upper_lookup: This is totally my personal preference, but can't help
adding one goto to reduce one indent.
2010-02-01 09:18:41 +00:00
uebayasi c3f0715aa9 uvm_fault:
- Lower fault routines don't care the vm_anon array found in upper lookup.
  Don't pass the pointer down.
- The flag "shadowed" is known when we lookup upper layer.  Don't need to
  keep in the fault context struct.
2010-02-01 09:06:43 +00:00
uebayasi f7a6581cde Indent. 2010-02-01 08:23:13 +00:00
uebayasi 90da75f6f6 Rewrite uvm_fault() loop using while () than goto. 2010-02-01 08:19:17 +00:00
uebayasi 6ca4a2b7f1 Split uvm_fault() into 2 more functions, uvm_fault_check() and
uvm_fault_upper_lookup().  Omit unnecessary arguments passed around.
2010-02-01 08:16:32 +00:00
mrg 9ba8935c64 - sp_tlb_flush_all() becomes sp_tlb_flush_all_us() and sp_tlb_flush_all_usiii()
- sparc64_ipi_flush_pte() becomes sparc64_ipi_flush_pte_us() and
  sparc64_ipi_flush_pte_usiii()
- add some commented out code to disable interrupts and raise the traplevel
  in sparc64_ipi_flush_pte_usiii()
- cache_flush_phys() was missing a little of code in the cheetah case
2010-02-01 07:01:40 +00:00
uebayasi 82f34a5f99 uvm_fault: Pack variables shared during fault / re-fault into a struct named
uvm_faultctx.  Unfortunately ~all of those values are overriden in various
ways.  Constification doesn't help much...
2010-02-01 06:56:22 +00:00
mrg 0d041f812e for USIII, use the new "tlb demap all" operation in sp_tlb_flush_all() 2010-02-01 06:26:15 +00:00
uebayasi 62e5fa15ec ERESTART is already negative. Give up negating error values to not override
the original values.  Pointed out by rmind@, thanks.

In the lower fault case, if (*pgo_get)() can return ERESTART and we should
re-fault for that remains a question.  The original code just returned the
error, so keep that behaviour for now.  In case (*pgo_get)() really returns
ERESTART, pass EIO to tell the uvm_fault caller that (*pgo_get)() failed.

(As far as I grep callers don't check if the return value is ERESTART or not.
So assuming (*pgo_get)() never returns ERESTART should be a safe bet.)
2010-02-01 05:48:19 +00:00
msaitoh bb5dfe40ba Fix the bug that unaligned access occurs on amd64. It also fixes the bug
that error bits aren't cleard because these bits are W2C (in other word, W1C).

Reported by Michael van Elst.
2010-02-01 05:38:36 +00:00
mrg c3dff9108b add some macros to check cpu type:
GETVER_CPU_IMPL()
	CPU_IS_JALAPENO()
	CPU_IS_USIII_UP()
and use them in a couple places to choose the right method/index
2010-02-01 05:00:59 +00:00
mrg ba65e91001 remove unused icache_flush_page() implementation. 2010-02-01 03:43:27 +00:00
mrg ee154fc467 - add a PDB_CTX_FLUSHALL debug type to pmap.c, and also log the cpu_number()
in a bunch more cases

- make sparc64_ipi_halt_thiscpu() and sparc64_ipi_pause_thiscpu() return void,
  their callers never checked anyway.

- remove prototypes for sparc64_ipi_flush_ctx() and sparc64_ipi_flush_all(),
  there are no such functions
2010-02-01 02:42:33 +00:00
ahoka 291052535a Make it proper KNF as it should have been done in my previous commit. 2010-02-01 00:39:03 +00:00
ahoka 57c158572e Remove duplicate sys/sysctl.h inclusion and put includes in alpabetic
order.
2010-02-01 00:06:18 +00:00