Commit Graph

200166 Commits

Author SHA1 Message Date
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
elric b8d761750a Script to convert a git clone of Heimdal into our dist format. 2011-04-13 19:04:40 +00:00
elric 170f4091e1 Autogenerated headers for heimdal head-20110412. 2011-04-13 19:03:58 +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
elric 893dd9bedb _gss_DES3_get_mic_compat() requires that ctx->target has been defined, and,
well, it hasn't yet.  Move the call down to after it is defined and things
are better.
2011-04-13 18:30:04 +00:00
elric f22e4d20b3 Conditionalise the sqlite3 HDB backend. 2011-04-13 18:23:42 +00:00
elric ca1c9b0c53 Import latest Heimdal from the head of their git repository into the
new location for externally maintained software.
2011-04-13 18:14:29 +00:00
plunky 7ed121adfb use PRIx64 for printing 64-bit values 2011-04-13 16:22:09 +00:00
macallan bd3339ab7c pass ${MACHINE} as -D__<whatever> so we can have arch-specific defaults 2011-04-13 16:18:14 +00:00
he b974c45b30 Move the forward declaration of _sys_readlink() outside of the #if,
so that the build succeeds even if _FORTIFY_SOURCE isn't > 0.
2011-04-13 12:40:54 +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
he b2bee2ed8d Explicitly list -lterminfo after -lcurses, to support static builds. 2011-04-13 09:46:38 +00:00
mrg 346b2c62e5 expose the KSTACK_LOWEST_ADDR and KSTACK_SIZE to _KMEMUSER as well,
like the x86 versions do.  for crash(8).
2011-04-13 08:45:00 +00:00
jruoho b29fd93227 Collect also the division functions to single place, div(3). 2011-04-13 07:12:52 +00:00
jruoho 19606f522d Collect abs(3), labs(3), llabs(3), and imaxabs(3) to a single small page. 2011-04-13 06:56:50 +00:00
jruoho 2ba8acef07 Fix another bug (no 'imaxint_t' type). 2011-04-13 06:41:11 +00:00
jruoho 5bbfa36d7b Fix obvious bug. 2011-04-13 06:35:48 +00:00