Commit Graph

53126 Commits

Author SHA1 Message Date
mlelstv
d3b6e4494f Use MI routine banner() to print memory size. Also fixes output for systems
with 2GB RAM.
2011-04-17 00:37:49 +00:00
martin
e8c70fb1ee Hint from Matt Thomas: use evcnt_attach_dynamic_nozero() 2011-04-15 21:24:00 +00:00
dyoung
4e9db30a1d Don't set pba.pba_flags twice. No functional change intended. 2011-04-15 21:03:31 +00:00
martin
919049c3f1 Delay initialization of FPU related event counters to cpu_startup() - we
do not expect any events of this type before spinup of all cpus.
2011-04-15 20:52:36 +00:00
mrg
72d3aba549 remove a tray empty line. 2011-04-15 08:43:12 +00:00
matt
f4b0d2fb0d Fix printing of watch{lo,hi} and make mipsNN_watchlo_* use intptr_t so that
sign extention happens.
2011-04-14 17:43:07 +00:00
matt
a23a3f1d7d cpu_number() returns a u_int 2011-04-14 17:42:00 +00:00
matt
c0e67c0a16 fix whitespace and comments 2011-04-14 17:41:32 +00:00
matt
319c35f5e8 Increment correct counter. 2011-04-14 16:58:58 +00:00
yamt
ce08932414 fix backtrace of interrupt 2011-04-14 16:05:59 +00:00
yamt
58024e6af5 comments 2011-04-14 16:04:12 +00:00
yamt
35b7a20bf6 don't bother to register kernel ptp to uvm_object. from yamt-vmem branch. 2011-04-14 16:00:21 +00:00
matt
f58d75b343 Only set userlocal register if l == curlwp in cpu_set_lwpprivate. 2011-04-14 15:44:39 +00:00
matt
e75727fd61 Use .set arch=xlr to access RMI specific instructions. 2011-04-14 09:25:05 +00:00
mrg
0c3d43f80c port to userspace. 2011-04-14 08:59:09 +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
cliff
2dd72524a3 cpuwatch_* stuff is #if (MIPS32 + MIPS32R2 + MIPS64 + MIPS64R2) > 0
now cobalt can build
2011-04-14 06:54:57 +00:00
cliff
b4ba6c18cd - fix comment at cpucore_rmixl_run() 2011-04-14 06:12:21 +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
cliff
d4d5ab9fa6 - add loocoresw slot for lsw_cpu_run
- fix comments for locoresw fields
2011-04-14 05:51:27 +00:00
cliff
359a246a0b - add loocoresw slot for lsw_cpu_run
- fix comments for locoresw entries
2011-04-14 05:50:43 +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
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
cliff
1a422a9cdf initialize mutex in attach 2011-04-13 21:06:30 +00:00
phx
6aa7a17f50 ExtClk for QNAP should be the same as for Synology's 266MHz systems.
This seems logical, as both boards are very similar, and the clock precision
is ok now.
2011-04-13 18:32:21 +00:00
plunky
7ed121adfb use PRIx64 for printing 64-bit values 2011-04-13 16:22:09 +00:00
he
d5ffa53ef0 Convert to using -nostdinc, and set include paths and create symlinks
so that we include the source tree's sys/, machine/ and m68k/ headers,
and only as a last resort use DESTDIR's /usr/include.  For some reason
the host's bootinfo.h got included ahead of the x68k variant, causing
a build failure in my case.
2011-04-13 11:10:49 +00:00
mrg
a8fdd2914b move the include sys/types.h xor stdbool.h to the top of the file,
so that "bool" will be present when used later in the file.
2011-04-13 06:29:30 +00:00
mrg
1ed2588de8 re-include sparc64/sparc64/intreg.h in kernel mode. it's necessary. 2011-04-13 03:40:00 +00:00