Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src/sys/arch/sh3
Module Name: src
Committed By: uwe
Date: Mon Aug 3 21:53:25 UTC 2020
Modified Files:
src/sys/arch/sh3/include: cpu.h
src/sys/arch/sh3/sh3: db_interface.c
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.59 -r1.60 src/sys/arch/sh3/include/cpu.h
cvs rdiff -u -r1.64 -r1.65 src/sys/arch/sh3/sh3/db_interface.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index