syscons.c (78950) | syscons.c (78962) |
---|---|
1/*- 2 * Copyright (c) 1992-1998 S�ren Schmidt 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 --- 11 unchanged lines hidden (view full) --- 20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * | 1/*- 2 * Copyright (c) 1992-1998 S�ren Schmidt 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 --- 11 unchanged lines hidden (view full) --- 20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * |
28 * $FreeBSD: head/sys/dev/syscons/syscons.c 78950 2001-06-29 06:42:39Z yokota $ | 28 * $FreeBSD: head/sys/dev/syscons/syscons.c 78962 2001-06-29 11:10:41Z jhb $ |
29 */ 30 31#include "splash.h" 32#include "opt_syscons.h" 33#include "opt_ddb.h" 34#ifdef __i386__ 35#include "opt_apm.h" 36#endif --- 975 unchanged lines hidden (view full) --- 1012 1013 case KDENABIO: /* allow io operations */ 1014 error = suser(p); 1015 if (error != 0) 1016 return error; 1017 if (securelevel > 0) 1018 return EPERM; 1019#ifdef __i386__ | 29 */ 30 31#include "splash.h" 32#include "opt_syscons.h" 33#include "opt_ddb.h" 34#ifdef __i386__ 35#include "opt_apm.h" 36#endif --- 975 unchanged lines hidden (view full) --- 1012 1013 case KDENABIO: /* allow io operations */ 1014 error = suser(p); 1015 if (error != 0) 1016 return error; 1017 if (securelevel > 0) 1018 return EPERM; 1019#ifdef __i386__ |
1020 p->p_md.md_regs->tf_eflags |= PSL_IOPL; | 1020 p->p_frame->tf_eflags |= PSL_IOPL; |
1021#endif 1022 return 0; 1023 1024 case KDDISABIO: /* disallow io operations (default) */ 1025#ifdef __i386__ | 1021#endif 1022 return 0; 1023 1024 case KDDISABIO: /* disallow io operations (default) */ 1025#ifdef __i386__ |
1026 p->p_md.md_regs->tf_eflags &= ~PSL_IOPL; | 1026 p->p_frame->tf_eflags &= ~PSL_IOPL; |
1027#endif 1028 return 0; 1029 1030 case KDSKBSTATE: /* set keyboard state (locks) */ 1031 if (*(int *)data & ~LOCK_MASK) 1032 return EINVAL; 1033 scp->status &= ~LOCK_MASK; 1034 scp->status |= *(int *)data; --- 2419 unchanged lines hidden --- | 1027#endif 1028 return 0; 1029 1030 case KDSKBSTATE: /* set keyboard state (locks) */ 1031 if (*(int *)data & ~LOCK_MASK) 1032 return EINVAL; 1033 scp->status &= ~LOCK_MASK; 1034 scp->status |= *(int *)data; --- 2419 unchanged lines hidden --- |