Subject: Re: Adding flag to disable native mode on aceride
To: Chris Gilbert <chris@dokein.co.uk>
From: Jachym Holecek <freza@NetBSD.org>
List: port-cats
Date: 08/31/2007 08:20:29
# Chris Gilbert 2007-08-30:
> Index: arch/cats/cats/autoconf.c
> ===================================================================
> RCS file: /cvsroot/src/sys/arch/cats/cats/autoconf.c,v
> retrieving revision 1.11.6.1
> diff -u -p -r1.11.6.1 autoconf.c
> --- arch/cats/cats/autoconf.c 11 Aug 2007 21:14:52 -0000 1.11.6.1
> +++ arch/cats/cats/autoconf.c 30 Aug 2007 21:08:56 -0000
> @@ -152,5 +150,18 @@ cpu_configure(void)
> void
> device_register(struct device *dev, void *aux)
> {
> + if (device_is_a(dev, "aceride"))
> + {
> + prop_bool_t force_compat_mode;
> +
> + force_compat_mode = prop_bool_create(true);
> +
> + if (prop_dictionary_set(device_properties(dev),
> + "force-compat-mode",
> + force_compat_mode) == false)
> [...]
FWIW you can use prop_dictionary_set_bool(3) here for brevity.
-- Jachym