Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 09 Feb 2012 14:54:30 -0800
From:      Oleksandr Tymoshenko <gonzo@freebsd.org>
To:        "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r231312 - in head/sys/mips: include mips
Message-ID:  <4F344EA6.1040809@freebsd.org>
In-Reply-To: <A74B52C1-36AD-4B7D-BA48-7787D1FF8699@lists.zabbadoz.net>
References:  <201202092217.q19MHEuU039370@svn.freebsd.org> <A74B52C1-36AD-4B7D-BA48-7787D1FF8699@lists.zabbadoz.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 09/02/2012 2:33 PM, Bjoern A. Zeeb wrote:
>
> On 9. Feb 2012, at 22:17 , Oleksandr Tymoshenko wrote:
>
>> Author: gonzo
>> Date: Thu Feb  9 22:17:13 2012
>> New Revision: 231312
>> URL: http://svn.freebsd.org/changeset/base/231312
>>
>> Log:
>>   - Emulate RDHWR instruction for TLS support
>>
>>   Reading register $29 with RDHWR is becoming the de-facto standard to
>>   implement TLS.  According to linux-mips wiki, MIPS Technologies has
>>   reserved hardware register $29 for ABI use.  Furthermore current GCC
>>   makes the following assumptions:
>>   - RDHWR is natively available or otherwise emulated by the kernel
>>   - Register $29 holds the TLS pointer
>>
>>   Submitted by:	Robert Millan<rmh@debian.org>
>
> mips XLPN32 kernel failed, check _.mips.XLPN32 for details
> mips XLRN32 kernel failed, check _.mips.XLRN32 for details
>
> /scratch/tmp/bz/head.svn/sys/mips/mips/trap.c: In function 'trap':
> /scratch/tmp/bz/head.svn/sys/mips/mips/trap.c:768: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
> /scratch/tmp/bz/head.svn/sys/mips/mips/trap.c:776: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]

Thanks for spotting it. Fixed.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F344EA6.1040809>