Up to [cvs.NetBSD.org] / src / sys / arch / sh3 / include
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: cjep_staticlib_x
Revision 1.60 / (download) - annotate - [select for diffs], Mon Aug 3 21:53:25 2020 UTC (3 years, 8 months ago) by uwe
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base,
thorpej-i2c-spi-conf2,
thorpej-i2c-spi-conf-base,
thorpej-i2c-spi-conf,
thorpej-futex2-base,
thorpej-futex2,
thorpej-futex-base,
thorpej-futex,
thorpej-cfargs2-base,
thorpej-cfargs2,
thorpej-cfargs-base,
thorpej-cfargs,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x
Changes since 1.59: +9 -3
lines
Diff to previous 1.59 (colored)
SH3_P2SEG_FUNC(f) - get a P2 address of a function. Just SH3_P1SEG_TO_P2SEG + cast, but we now define SH3_P1SEG_TO_P2SEG and SH3_P2SEG_TO_P1SEG to use arithmetic, not bitwise ops. That gives the same result for the correct P1/P2 input values, but addition can be done at link time with addends. Thus SH3_P2SEG_FUNC compiles to a constant P2 address.