Commit Graph

199982 Commits

Author SHA1 Message Date
matt
1b9f0bef5f Remove old mfcr/mtcr definitions 2011-04-14 08:05:00 +00:00
matt
1483d2e256 Add bfd_mach_mips_xlr 2011-04-14 08:04:20 +00:00
matt
91f4e65a42 Pull in MIPS XLR (XLS) support from patch in
http://sourceware.org/ml/binutils/2009-01/msg00383.html
This replaces local changes to support some xlr instructions.
2011-04-14 07:49:48 +00:00
jruoho
f7681ae9ed Simplify a little. No functional change. 2011-04-14 07:06:52 +00:00
wiz
716425e6ac No need to use \*[q], use plain double quotes instead. 2011-04-14 06:56:28 +00:00
cliff
2dd72524a3 cpuwatch_* stuff is #if (MIPS32 + MIPS32R2 + MIPS64 + MIPS64R2) > 0
now cobalt can build
2011-04-14 06:54:57 +00:00
jruoho
1e511da05c Use the common power resource code. Also add a comment explaining
what can happen if we do not power on the resource upon resume from S3.
2011-04-14 06:37:13 +00:00
jruoho
43337e89a7 Simplify by using a static array for the reference counting. 2011-04-14 06:25:25 +00:00
cliff
b4ba6c18cd - fix comment at cpucore_rmixl_run() 2011-04-14 06:12:21 +00:00
matt
521a86d55d rearrange some common code in lockdebug_unlocked.
When printing a lockdebug error, add a '*' to indicate whether lock or
unlock was performed.
2011-04-14 06:12:02 +00:00
cliff
6b7fbe4fe7 - no need to check lsw_cpu_run != NULL before calling, nullop is default 2011-04-14 05:54:24 +00:00
matt
fdd122f0c1 Add a KASSERT 2011-04-14 05:53:53 +00:00
cliff
d4d5ab9fa6 - add loocoresw slot for lsw_cpu_run
- fix comments for locoresw fields
2011-04-14 05:51:27 +00:00
jruoho
ff8dfca355 Xref tm(3). 2011-04-14 05:50:49 +00:00
cliff
359a246a0b - add loocoresw slot for lsw_cpu_run
- fix comments for locoresw entries
2011-04-14 05:50:43 +00:00
jruoho
2619753dbd Improve as per discussion on source-changes. 2011-04-14 05:45:34 +00:00
matt
05f173a862 Add an assert to make sure no unexpected spinlocks are held in mi_switch 2011-04-14 05:33:20 +00:00
cliff
371b6bc22e - in rmixl_pcix_intr_string() convert irq to vector when calling
rmixl_intr_string()
- in rmixl_pcix_intr_establish(), initialize dispatch data 'counts' pointer
- in rmixl_pcix_pip_add_1(), zero out pip_new after allocated.
2011-04-14 05:22:47 +00:00
cliff
2ae1290cdd - in rmixl_pcie_intr_string(), convert irq to vector when calling
rmixl_intr_string()
2011-04-14 05:22:03 +00:00
cliff
9f7dc766b8 - add prototype for rmixl_eirr_ack() 2011-04-14 05:21:22 +00:00
cliff
e80ef82329 - report of BIST result is information only; don't fail attach because of it 2011-04-14 05:20:52 +00:00
cliff
143f3bb008 - fix RCSID
- add rmixl_eirr_ack() to ack the EIRR, using COP0_SYNC & JR_HB_RA as needed
- in rmixl_cpu_trampoline, remove old KSEG0 address reconstruction
of trampoline args pointer, and comment/explain the new way
- also in rmixl_cpu_trampoline, remove old watchpoint hack used for debugging
2011-04-14 05:20:08 +00:00
cliff
127ed29e40 - remove most of the PARANOIA code
- add COP0_SYNC and JR_HB_RA following CP0 after all
writes to STATUS or EIMR that change interrupt control.
- all interrupt control now done w/ EIMR, except for
initial set of IE in STATUS.
2011-04-14 05:16:54 +00:00
cliff
7c284c02ea - add compile time check in case NIPIS ever exceeds number of available vectors 2011-04-14 05:16:28 +00:00
cliff
6300d89c6e - in evbmips_iointr(), call assembly function rmixl_eirr_ack()
to ack the EIRR, instead of using a bunch of asm() here.
- in rmixl_ipi_intr(), remove overly paranoid assert that the given
IPI request is pending; if the request is clear, it was previously processed.
- in rmixl_vecnames_common[], give ipi vectors unique (numbered) names
2011-04-14 05:16:00 +00:00
cliff
195846ec3e - add sc_running flag to allow cpucore_rmixl_run() to do once-per-core
initializations once we know what threads are configured
- add sc_threads_enb and sc_threads_dis to track what threads are
enabled by firmware and configured and attach, or not.
- add prototype for cpucore_rmixl_run()
2011-04-14 05:15:22 +00:00
cliff
cf3e8c40cb - in cpucore_rmixl_attach(), keep track of which threads are
enabled by firmware and configured and attach, or not.
- add cpucore_rmixl_run() to do the post-running initialization:
disable unused threads in RMIXL_PCR_THREADEN, and
set Round Robin thread scheduling mode.
2011-04-14 05:14:23 +00:00
cliff
23acf29a1c - add cpu_rmixl_run(), and set in mips_locoresw.lsw_cpu_run
to be called from cpu_hatch() once cpus are running,
so we can determine what threads are configured
and running, and can finish initialization of per-core registers
depending on that.
- in cpu_rmixl_db_watch_init() clear IEU_DEFEATURE[DBE],
and init all COP0 watchpoint regs
- option MIPS_DDB_WATCH is deprecated, removed; use of cpu watchpoints
is longer depends on that or DDB
2011-04-14 05:12:58 +00:00
cliff
863a6c6b7c - add mips_watchpoint_init() to discover number of CPU watchpoints,
and call that from {mips32,mips32r2,mips64,mips64r2}_vector_init()
2011-04-14 05:10:04 +00:00
cliff
2cbfee21ba - option MIPS_DDB_WATCH is dedprecated, removed; now using
(MIPS32 + MIPS32R2 + MIPS64 + MIPS64R2) > 0 for conditional
compile of db_mach_watch stuff
- MIPS CPU (COP0) watchpoint support moved from db_interface.c
to cpu_subr.c, cpu.h; ddb_mach_watch &etc now use those cpu functions.
- ddb_cpu now volatile
- 'struct db_mach_watch' definition &etc moved to mips/include/db_machdep.h
- db_mach_watch_tab is replaced by curcpu()->ci_watch_tab
to allow per-cpu watchpoint control
- improve MP function in kdb_trap()
- fix conditions for printing cp0 regs
2011-04-14 05:09:34 +00:00
cliff
061e9aafc0 - MIPS CPU (COP0) watchpoint support moved from db_interface.c to cpu_subr.c
see the cpuwatch_* functions
- ci_cpuwatch_count in allocated cpu_info is inherited from cpu_info_store
- cpu_hatch() calls lsw_cpu_run (if not NULL)
to optionally allow running MIPS chip-specific code
after subordinate cpus have been set running
- #ifdef DDB cpu_debug_dump() to allow compile when DDB not defined
2011-04-14 05:08:51 +00:00
cliff
3dcf71db4a - add lsw_cpu_run function pointer to struct locoresw 2011-04-14 05:08:22 +00:00
cliff
eb5d9f2c6f - remove include <mips/proc.h>, unused
- db_mach_watch_set_all() is deprecated, removed,
superceded by cpuwatch_set_all()
2011-04-14 05:07:56 +00:00
cliff
b19e36c4aa - MIPS CPU (COP0) watchpoint support moved from db_machdep.h to cpu.h
- CPU watchpoints are per-cpu; add ci_cpuwatch_count, ci_watchpoint_tab[]
to struct cpuinfo
2011-04-14 05:07:30 +00:00
cliff
35cc1dff95 - option MIPS_DDB_WATCH is deprecated, removed 2011-04-14 05:07:00 +00:00
cliff
3046daaef0 - remove cpucore and cpu reconfiguration stuff
cares and threads can be specified here,
but it's easier to do at boot time from firmmware
e.g. using 'userapp_mask_cpus <mask>' command
2011-04-14 05:06:39 +00:00
cliff
f67329a387 - 32 bit kernel must MEMLIMIT to 512MB 2011-04-14 05:06:10 +00:00
cliff
95f43f4d6f - remove options LOCKDEBUG; is set in XLSATX64.MP
- option MIPS_DDB_WATCH is deprecated, removed
2011-04-14 05:05:35 +00:00
christos
caa78eadaf add the "special" pipe2. 2011-04-14 01:03:23 +00:00
christos
239691fffa move dup3 to a more appropriate place because pipe is "special". Gotta love
linux.
2011-04-14 00:59:06 +00:00
rmind
e7ba7d8ca0 Add DTYPE_SEM. 2011-04-14 00:35:35 +00:00
rmind
210bb880b2 Minor comment fix. Use fd_close() in sys__ksem_destroy(), it is cleaner. 2011-04-14 00:32:23 +00:00
macallan
dfdc4959f7 use the same function whenever we change colour depth
also, when opening the fb device switch to 32bit and back to 8 on close, not
the other way around
2011-04-13 23:31:25 +00:00
wiz
6a9d169632 regen (+ ATI Radeon HD4650) 2011-04-13 22:24:45 +00:00
wiz
9a1c9ae296 + ATI Radeon HD4650. 2011-04-13 22:24:12 +00:00
christos
6a493f9311 no more amd, factor out more stuff. 2011-04-13 22:16:52 +00:00
cliff
1a422a9cdf initialize mutex in attach 2011-04-13 21:06:30 +00:00
elric
7a6a7ae08a Build framework for Heimdal. 2011-04-13 19:16:44 +00:00
elric
bca0060340 Autogenerated headers for heimdal head-20110412. 2011-04-13 19:15:27 +00:00
elric
0b13a02041 Autogenerated files for HEIMDAL head-20110412. 2011-04-13 19:08:57 +00:00