1*3ff79dbaSchristos /* $NetBSD: procfs_machdep.c,v 1.4 2014/04/05 18:44:32 christos Exp $ */
24286b6d7Sjmcneill
34286b6d7Sjmcneill /*-
44286b6d7Sjmcneill * Copyright (c) 2011 Jared D. McNeill <jmcneill@invisible.ca>
54286b6d7Sjmcneill * All rights reserved.
64286b6d7Sjmcneill *
74286b6d7Sjmcneill * Redistribution and use in source and binary forms, with or without
84286b6d7Sjmcneill * modification, are permitted provided that the following conditions
94286b6d7Sjmcneill * are met:
104286b6d7Sjmcneill * 1. Redistributions of source code must retain the above copyright
114286b6d7Sjmcneill * notice, this list of conditions and the following disclaimer.
124286b6d7Sjmcneill * 2. Redistributions in binary form must reproduce the above copyright
134286b6d7Sjmcneill * notice, this list of conditions and the following disclaimer in the
144286b6d7Sjmcneill * documentation and/or other materials provided with the distribution.
154286b6d7Sjmcneill *
164286b6d7Sjmcneill * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
174286b6d7Sjmcneill * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
184286b6d7Sjmcneill * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
194286b6d7Sjmcneill * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
204286b6d7Sjmcneill * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
214286b6d7Sjmcneill * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
224286b6d7Sjmcneill * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
234286b6d7Sjmcneill * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
244286b6d7Sjmcneill * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
254286b6d7Sjmcneill * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
264286b6d7Sjmcneill * POSSIBILITY OF SUCH DAMAGE.
274286b6d7Sjmcneill */
284286b6d7Sjmcneill
294286b6d7Sjmcneill #include <sys/cdefs.h>
30*3ff79dbaSchristos __RCSID("$NetBSD: procfs_machdep.c,v 1.4 2014/04/05 18:44:32 christos Exp $");
314286b6d7Sjmcneill
324286b6d7Sjmcneill #include <sys/param.h>
334286b6d7Sjmcneill #include <sys/systm.h>
34ef4207f3Sjmcneill #include <sys/mount.h>
354286b6d7Sjmcneill
364286b6d7Sjmcneill #include <miscfs/procfs/procfs.h>
374286b6d7Sjmcneill
385d49ee56Sjmcneill #include <machine/thunk.h>
395d49ee56Sjmcneill
404286b6d7Sjmcneill int
procfs_getcpuinfstr(char * bf,size_t * len)41*3ff79dbaSchristos procfs_getcpuinfstr(char *bf, size_t *len)
424286b6d7Sjmcneill {
435d49ee56Sjmcneill return thunk_getcpuinfo(bf, len);
444286b6d7Sjmcneill }
45