cpufunc.h (12929) | cpufunc.h (13086) |
---|---|
1/*- 2 * Copyright (c) 1993 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 16 unchanged lines hidden (view full) --- 25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * | 1/*- 2 * Copyright (c) 1993 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 16 unchanged lines hidden (view full) --- 25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * |
33 * $Id: cpufunc.h,v 1.42 1995/12/03 13:45:27 bde Exp $ | 33 * $Id: cpufunc.h,v 1.43 1995/12/19 14:30:42 davidg Exp $ |
34 */ 35 36/* 37 * Functions to provide access to special i386 instructions. 38 */ 39 40#ifndef _MACHINE_CPUFUNC_H_ 41#define _MACHINE_CPUFUNC_H_ --- 282 unchanged lines hidden (view full) --- 324/* 325 * XXX the following declarations document garbage in support.s. 326 * bcopy[bwx]() was used by pccons but isn't used now. 327 */ 328void bcopyb __P((const void *from, void *to, size_t len)); 329void bcopyw __P((const void *from, void *to, size_t len)); 330void bcopyx __P((const void *from, void *to, size_t len, 331 int stride)); | 34 */ 35 36/* 37 * Functions to provide access to special i386 instructions. 38 */ 39 40#ifndef _MACHINE_CPUFUNC_H_ 41#define _MACHINE_CPUFUNC_H_ --- 282 unchanged lines hidden (view full) --- 324/* 325 * XXX the following declarations document garbage in support.s. 326 * bcopy[bwx]() was used by pccons but isn't used now. 327 */ 328void bcopyb __P((const void *from, void *to, size_t len)); 329void bcopyw __P((const void *from, void *to, size_t len)); 330void bcopyx __P((const void *from, void *to, size_t len, 331 int stride)); |
332 333#if 0 | |
334/* | 332/* |
335 * These functions in support.s are declared elsewhere. 336 */ 337void bcopy __P((const void *from, void *to, size_t len)); 338void blkclr __P((void *buf, size_t len)); 339void bzero __P((void *buf, size_t len)); 340int copyin __P((void *udaddr, void *kaddr, size_t len)); 341int copyinstr __P((void *udaddr, void *kaddr, size_t len, 342 size_t *lencopied)); 343int copyout __P((void *kaddr, void *udaddr, size_t len)); 344int copystr __P((void *kfaddr, void *kdaddr, size_t len, 345 size_t *lencopied)); 346int fubyte __P((void *base)); 347int fuswintr __P((void *base)); 348int fuibyte __P((void *base)); 349int fuword __P((void *base)); 350struct region_descriptor; 351void lgdt __P((struct region_descriptor *rdp)); 352void lidt __P((struct region_descriptor *rdp)); 353void lldt __P((u_short sel)); 354/* 355 * longjmp() and setjmp() are only used by ddb. They probably shouldn't 356 * shouldn't be supported in the kernel. 357 */ 358#include <setjmp.h> 359void longjmp __P((jmp_buf jb, int rv)); 360void ovbcopy __P((const void *from, void *to, size_t len); 361int setjmp __P((jmp_buf jb)); 362struct soft_segment_descriptor; 363union descriptor; 364int ssdtosd __P((struct soft_segment_descriptor *ssdp, 365 union descriptor *sdp)); 366int subyte __P((void *base, int byte)); 367int suibyte __P((void *base, int byte)); 368int suswintr __P((void *base, int word)); 369int suword __P((void *base, int word)); 370 371/* 372 * These functions in support.s are declared elsewhere, but never used. 373 * A silly amount of effort went into copyoutstr(). It's not worth 374 * maintaining, since the string length is usually known so copyout 375 * works better, or is easy to find so copyout() can be used. 376 */ 377int copyoutstr __P((void *kaddr, void *udaddr, size_t len, 378 size_t *lencopied)); 379int fuiword __P((void *base)); 380int suiword __P((void *base, int word)); 381 382/* 383 * These functions in support.s are also in libkern.a and are declared in 384 * libkern.h. 385 * ffs() is built in to gcc-2 and was buggy in gcc-2.4.5 so we may may the 386 * buggy version if we don't replace it by an inline. 387 */ 388int bcmp __P((const void *b1, const void *b2, size_t length)); 389int ffs __P((int mask)); 390#endif /* 0 */ 391 392/* | |
393 * These variables and functions in support.s are used. 394 */ 395extern u_int atdevbase; /* offset in virtual memory of ISA io mem */ 396 397void filli __P((int pat, void *base, size_t cnt)); 398void fillw __P((int /*u_short*/ pat, void *base, size_t cnt)); 399int fusword __P((void *base)); 400void load_cr0 __P((u_long cr0)); --- 17 unchanged lines hidden --- | 333 * These variables and functions in support.s are used. 334 */ 335extern u_int atdevbase; /* offset in virtual memory of ISA io mem */ 336 337void filli __P((int pat, void *base, size_t cnt)); 338void fillw __P((int /*u_short*/ pat, void *base, size_t cnt)); 339int fusword __P((void *base)); 340void load_cr0 __P((u_long cr0)); --- 17 unchanged lines hidden --- |