Subject: port-xen/35422: sys/arch/xen has too much duplicated code
To: None <,,>
From: None <>
List: netbsd-bugs
Date: 01/14/2007 17:35:00
>Number:         35422
>Category:       port-xen
>Synopsis:       sys/arch/xen has too much duplicated code
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    port-xen-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 14 17:35:00 +0000 2007
>Originator:     Andrew Doran
>Release:        NetBSD-current
The NetBSD Project
The xen MD kernel has substantial chunks of code copied from
NetBSD/i386. In some of the modules that I have looked at, the
differences between the xen and i386 versions are trivial.

Edit files under arch/i386, break xen, and notice that xen lags
behind i386.

Where the differences are trivial, they should be should be handled
with #ifdef blocks or architecture dependent functions.