Subject: Re: compat code restructuring status
To: None <current-users@NetBSD.org>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: tech-kern
Date: 09/17/2005 14:02:36
In article <20050915230745.GL19444@snark.ptc.spbu.ru>
uwe@ptc.spbu.ru wrote:
> For those who will be coverting other arches, this is a quick summary
> of what I did for sh3:
Thanks for summarizing, but I have a few questions:
> Create subtree for your arch under compat/arch
>
> Steal compat/arch/i386/Makefile.inc
>
> Convert "sys" subdirectory:
>
> . In lib/libc/sys/Makefile.inc there's a list of files under
> !defined(COMPATARCHDIR).
How about arch/$ARCH/sys/__sigtramp1.S ?
This is also moved to compat/arch/$ARCH/sys/compat___sigtramp2.S .
> . Move each file $foo to compat/arch/$ARCH/sys/compat_$foo
>
> . Adjust arch/$ARCH/sys/Makefile.inc accordingly
There is no arch/$ARCH/sys/Makefile.inc.
Adjust arch/$ARCH/Makefile.inc for __sigtramp1.S ?
> . Steal compat/arch/i386/sys/Makefile.inc
>
>
> Convert "gen" subdirectory:
>
> . Move setjmp.S sigsetjmp.S _setjmp.S to compat/arch/$ARCH/gen/compat_$foo
>
> . Move __setjmp14.S -> setjmp.S
>
> . Move __sigsetjmp14.S -> sigsetjmp.S
Some archs have __longjmp.c, which contains an entriy for __longjmp14().
Should we also rename it longjmp.c ?
> . Adjust arch/$ARCH/gen/Makefile.inc accordingly, droping the moved
> files from SRCS and lint stubs
>
> . Steal compat/arch/i386/gen/Makefile.inc
>
>
> This should be it.
---
Izumi Tsutsui