mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-17 13:53:39 +00:00
Implement the KDENABIO etc ioctl's for amd64 as well.
This commit is contained in:
parent
d88cc59371
commit
beafe28690
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=135693
|
@ -60,9 +60,8 @@ __FBSDID("$FreeBSD$");
|
|||
#else
|
||||
#include <machine/pc/display.h>
|
||||
#endif
|
||||
#ifdef __i386__
|
||||
#if defined( __i386__) || defined(__amd64__)
|
||||
#include <machine/psl.h>
|
||||
#include <machine/apm_bios.h>
|
||||
#include <machine/frame.h>
|
||||
#endif
|
||||
|
||||
|
@ -1047,12 +1046,16 @@ scioctl(struct cdev *dev, u_long cmd, caddr_t data, int flag, struct thread *td)
|
|||
return error;
|
||||
#ifdef __i386__
|
||||
td->td_frame->tf_eflags |= PSL_IOPL;
|
||||
#elif defined(__amd64__)
|
||||
td->td_frame->tf_rflags |= PSL_IOPL;
|
||||
#endif
|
||||
return 0;
|
||||
|
||||
case KDDISABIO: /* disallow io operations (default) */
|
||||
#ifdef __i386__
|
||||
td->td_frame->tf_eflags &= ~PSL_IOPL;
|
||||
#elif defined(__amd64__)
|
||||
td->td_frame->tf_rflags &= ~PSL_IOPL;
|
||||
#endif
|
||||
return 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue