Commit Graph

199995 Commits

Author SHA1 Message Date
yamt
714ba23ee1 - fix _STANDALONE build.
- use __CTASSERT instead of CTASSERT.  enable it for userland.
- __read_mostly.
2011-04-14 15:42:02 +00:00
yamt
949aabf781 fix _STANDALONE build 2011-04-14 15:31:20 +00:00
yamt
055be2ef63 assertions 2011-04-14 15:29:25 +00:00
elric
b40995a48b Reimport Heimdal dist converted into NetBSD dist format. The prior
import did not catch all of the $Id$ tags because many of them are
unexpanded and the RE was only looking for expanded keywords.
2011-04-14 14:08:03 +00:00
he
d6f2b33ab3 Fix this so that it builds (missing "struct" keyword). 2011-04-14 11:17:47 +00:00
mrg
b8e8be65a9 add sparc64/intr.h 2011-04-14 10:07:49 +00:00
plunky
a97ff97089 use HOSTPROG to build the mkext program (which creates external.c and
external.h for ccom) rather than HOST_CC directly.

because PROG and HOSTPROG don't play nicely together, put mkext in its
own SUBDIR
2011-04-14 09:31:25 +00:00
matt
e75727fd61 Use .set arch=xlr to access RMI specific instructions. 2011-04-14 09:25:05 +00:00
wiz
ab97404ead xz-5.0.2 out. 2011-04-14 09:16:23 +00:00
mrg
0c3d43f80c port to userspace. 2011-04-14 08:59:09 +00:00
mrg
e813220ee8 enable crash(8) for sparc64. it's still sort of minimal and segvs
on some commands, but it sort of works and isn't useless.
2011-04-14 08:21:06 +00:00
matt
bb186500b2 Add L_PRIVATE 2011-04-14 08:17:42 +00:00
matt
02be76bc53 Support LWP_PC 2011-04-14 08:17:27 +00:00
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