Re: CVS commit: [matt-nb5-mips64] src/sys/arch/mips

2010-12-22 Thread David Laight
On Wed, Dec 22, 2010 at 06:13:37AM +, Matt Thomas wrote: > > Log Message: > Rework how fixups are processed. Inside of generating a table, we just > scan kernel text for jumps to locations between (__stub_start, __stub_end] > and if found, we actually decode the instructions in the stub to fi

Re: CVS commit: [matt-nb5-mips64] src/sys/arch/mips/mips

2010-06-11 Thread Simon Burge
Hi Cliff, A couple of things with these changes: > Module Name:src > Committed By: cliff > Date: Thu Jun 10 00:32:11 UTC 2010 > > Modified Files: > > src/sys/arch/mips/include [matt-nb5-mips64]: locore.h > > Log Message: > > - add lsw_bus_error to struct locoresw, prov

Re: CVS commit: [matt-nb5-mips64] src/sys/arch/mips/include

2010-05-12 Thread Matt Thomas
On May 12, 2010, at 5:19 AM, Simon Burge wrote: > Matt Thomas wrote: > >> Module Name: src >> Committed By:matt >> Date:Tue May 11 22:08:02 UTC 2010 >> >> Modified Files: >> >> src/sys/arch/mips/include [matt-nb5-mips64]: locore.h >> >> Log Message: >> >> Use ass

Re: CVS commit: [matt-nb5-mips64] src/sys/arch/mips/include

2010-05-12 Thread Simon Burge
Matt Thomas wrote: > Module Name: src > Committed By: matt > Date: Tue May 11 22:08:02 UTC 2010 > > Modified Files: > > src/sys/arch/mips/include [matt-nb5-mips64]: locore.h > > Log Message: > > Use assembly since deref a 64bit value as a pointer does not make a > 32bit compiler

Re: CVS commit: [matt-nb5-mips64] src/sys/arch/mips/include

2010-05-12 Thread Simon Burge
Matt Thomas wrote: > Module Name: src > Committed By: matt > Date: Tue May 11 21:51:34 UTC 2010 > > Modified Files: > > src/sys/arch/mips/include [matt-nb5-mips64]: locore.h > > Log Message: > > Need to turn KX for N32 kernels with mips3_lw_a64 and mips3_sw_a64 +#elif defined(_

Re: CVS commit: [matt-nb5-mips64] src/sys/arch/mips/mips

2010-05-04 Thread Matt Thomas
On May 4, 2010, at 5:30 PM, Simon Burge wrote: > Matt Thomas wrote: > >> Modified Files: >> >> src/sys/arch/mips/mips [matt-nb5-mips64]: pmap_segtab.c >> >> Log Message: >> >> Cleanup segtab allocation. Add some counters to monitor memory usage. > > +uint32_t nget_segtab; > +uint32_t

Re: CVS commit: [matt-nb5-mips64] src/sys/arch/mips/mips

2010-05-04 Thread Simon Burge
Matt Thomas wrote: > Modified Files: > > src/sys/arch/mips/mips [matt-nb5-mips64]: pmap_segtab.c > > Log Message: > > Cleanup segtab allocation. Add some counters to monitor memory usage. +uint32_t nget_segtab; +uint32_t nput_segtab; +uint32_t npage_segtab; How quickly could these wra

Re: CVS commit: [matt-nb5-mips64] src/sys/arch/mips

2010-02-24 Thread Matt Thomas
On Feb 24, 2010, at 10:31 PM, David Laight wrote: > On Thu, Feb 25, 2010 at 05:53:23AM +, Matt Thomas wrote: >> >> Log Message: >> Make the UP and MP ASID allocation algorithm common. Significantly improve >> the algorithm. Now when we exhaust the ASIDs, interrogate the TLB for active >> A

Re: CVS commit: [matt-nb5-mips64] src/sys/arch/mips

2010-02-24 Thread David Laight
On Thu, Feb 25, 2010 at 05:53:23AM +, Matt Thomas wrote: > > Log Message: > Make the UP and MP ASID allocation algorithm common. Significantly improve > the algorithm. Now when we exhaust the ASIDs, interrogate the TLB for active > ASIDS and release all the other for future allocations. Thi

Re: CVS commit: [matt-nb5-mips64] src/sys/arch/mips/mips

2010-02-23 Thread Masao Uebayashi
> @@ -225,11 +226,18 @@ > { > KASSERT(!CPU_IS_PRIMARY(ci)); > KASSERT(ci->ci_data.cpu_idlelwp != NULL); > + KASSERT(cold); We should have a more descriptive variable to represent systems global state... (Define state transition strictly too.) Masao -- Masao Uebayashi / Tombi In

Re: CVS commit: [matt-nb5-mips64] src/sys/arch/mips

2010-02-05 Thread Simon Burge
Matt Thomas wrote: > Module Name: src > Committed By: matt > Date: Fri Feb 5 07:36:51 UTC 2010 > > [ ... ] > > Add __HAVE_FAST_SOFTINTS support. > Add routine to remap an uarea via a direct-mapped address. This avoids > TLB machinations when swtching to/from the softint thread. This

Re: CVS commit: [matt-nb5-mips64] src/sys/arch/mips

2010-01-31 Thread David Holland
On Sun, Jan 31, 2010 at 08:09:44AM +, David Laight wrote: > > gcc does not seem to be very deterministic about this kind of thing. > > I've being trying to stop gcc using too many registers in another > project - with 24 available registers you'd think it would manage > not to spill local

Re: CVS commit: [matt-nb5-mips64] src/sys/arch/mips

2010-01-31 Thread Toru Nishimura
David A. Holland said; Change MIPS_CURLWP from s7 to t8. ... Huh. That surprises me slightly. Good to know though. Remember to bump the kernel version when you merge the branch, or anyone using modules will get a nasty surprise :-) It's a major incompatiblity to change MIPS label_t definiti

Re: CVS commit: [matt-nb5-mips64] src/sys/arch/mips

2010-01-31 Thread David Laight
On Sun, Jan 31, 2010 at 01:33:59AM +, David Holland wrote: > > gcc does not seem to be very deterministic about this kind of thing. I've being trying to stop gcc using too many registers in another project - with 24 available registers you'd think it would manage not to spill locals to the st

Re: CVS commit: [matt-nb5-mips64] src/sys/arch/mips

2010-01-30 Thread David Holland
On Sat, Jan 30, 2010 at 11:49:31PM +, Matt Thomas wrote: > Change MIPS_CURLWP from s7 to t8. In a MALTA64 kernel, s6 is used > 9155 times which means the compiler could really use s7 is was free > to do so. The least used temporary was t8 (288 times). Once the > kernel was switched to us

Re: CVS commit: [matt-nb5-mips64] src/sys/arch/mips/mips

2009-11-18 Thread Martin Husemann
[wrong list, redirecting to source-changes-d, sorry...] On Wed, Nov 18, 2009 at 10:34:54AM +0100, Martin Husemann wrote: > On Tue, Nov 17, 2009 at 07:56:27AM +, Matt Thomas wrote: > > (slightly bogus but then we really should kill extent and switch to vmem) > > I keep hearing this mantra. >

Re: CVS commit: [matt-nb5-mips64] src/sys/arch/mips/mips

2009-11-10 Thread Cliff Neighbors
On Nov 10, 2009, at 5:02 AM, Simon Burge wrote: Cliff Neighbors wrote: Module Name:src Committed By: cliff Date: Mon Nov 9 10:00:02 UTC 2009 Modified Files: src/sys/arch/mips/mips [matt-nb5-mips64]: db_interface.c Log Message: arch/mips/mips/db_interface.c - add M

Re: CVS commit: [matt-nb5-mips64] src/sys/arch/mips/mips

2009-11-10 Thread Simon Burge
Cliff Neighbors wrote: > Module Name: src > Committed By: cliff > Date: Mon Nov 9 10:00:02 UTC 2009 > > Modified Files: > > src/sys/arch/mips/mips [matt-nb5-mips64]: db_interface.c > > Log Message: > > arch/mips/mips/db_interface.c > - add MIPS64_SHOW32() and MIPS64_SHOW64() m

Re: CVS commit: [matt-nb5-mips64] src/sys/arch/mips/mips

2009-09-14 Thread Masao Uebayashi
> Log Message: > CP0 ECC and CACHE_ERR "not implemented" on RMI XLS, so avoid accessing them > @@ -508,8 +508,10 @@ > > if (MIPS_HAS_LLSC) { > if (CPUISMIPS64) { > +#if !defined(MIPS64_XLS) /* CP0 reg #17 > "reserved" */ >

Re: CVS commit: [matt-nb5-mips64] src/sys/arch/mips/mips

2009-09-02 Thread Masao Uebayashi
> O64 kernel?  why should we worry about O64? For "completeness". :) Masao

Re: CVS commit: [matt-nb5-mips64] src/sys/arch/mips/mips

2009-09-02 Thread Matt Thomas
On Sep 2, 2009, at 4:41 PM, Masao Uebayashi wrote: @@ -876,10 +876,17 @@ moves2, t2 # stash most of temporary regs REG_S t3, FRAME_T3(k1)# syscall saved gp for fork mfc0a1, MIPS_COP_0_STATUS # 2nd arg is STATUS

Re: CVS commit: [matt-nb5-mips64] src/sys/arch/mips/mips

2009-09-02 Thread Masao Uebayashi
> @@ -876,10 +876,17 @@ > moves2, t2 # stash most of temporary regs > REG_S t3, FRAME_T3(k1)# syscall saved gp for fork > mfc0a1, MIPS_COP_0_STATUS # 2nd arg is STATUS > +#if defined(__mips_n32) || defined(__mips_n64) >

Re: CVS commit: [matt-nb5-mips64] src/sys/arch/mips/include

2009-08-22 Thread Jason Thorpe
Good point :-) -- thor...@iphone On Aug 22, 2009, at 6:28 PM, Matt Thomas wrote: On Aug 22, 2009, at 6:28 PM, Jason Thorpe wrote: On Aug 22, 2009, at 4:30 PM, Matt Thomas wrote: On Aug 22, 2009, at 4:25 PM, Jason Thorpe wrote: On Aug 21, 2009, at 10:29 AM, Matt Thomas wrote: Modul

Re: CVS commit: [matt-nb5-mips64] src/sys/arch/mips/include

2009-08-22 Thread Matt Thomas
On Aug 22, 2009, at 6:28 PM, Jason Thorpe wrote: On Aug 22, 2009, at 4:30 PM, Matt Thomas wrote: On Aug 22, 2009, at 4:25 PM, Jason Thorpe wrote: On Aug 21, 2009, at 10:29 AM, Matt Thomas wrote: Module Name:src Committed By: matt Date: Fri Aug 21 17:29:42 UTC 2009 Modi

Re: CVS commit: [matt-nb5-mips64] src/sys/arch/mips/include

2009-08-22 Thread Jason Thorpe
On Aug 22, 2009, at 4:30 PM, Matt Thomas wrote: On Aug 22, 2009, at 4:25 PM, Jason Thorpe wrote: On Aug 21, 2009, at 10:29 AM, Matt Thomas wrote: Module Name:src Committed By: matt Date: Fri Aug 21 17:29:42 UTC 2009 Modified Files: src/sys/arch/mips/include [matt-

Re: CVS commit: [matt-nb5-mips64] src/sys/arch/mips/include

2009-08-22 Thread Matt Thomas
On Aug 22, 2009, at 4:25 PM, Jason Thorpe wrote: On Aug 21, 2009, at 10:29 AM, Matt Thomas wrote: Module Name:src Committed By: matt Date: Fri Aug 21 17:29:42 UTC 2009 Modified Files: src/sys/arch/mips/include [matt-nb5-mips64]: types.h Log Message: Adapt to ABI var

Re: CVS commit: [matt-nb5-mips64] src/sys/arch/mips/include

2009-08-22 Thread Jason Thorpe
On Aug 21, 2009, at 10:29 AM, Matt Thomas wrote: Module Name:src Committed By: matt Date: Fri Aug 21 17:29:42 UTC 2009 Modified Files: src/sys/arch/mips/include [matt-nb5-mips64]: types.h Log Message: Adapt to ABI variations. Make sure mips_reg_t == register_t. Add PR