# HG changeset patch
# User Timothy M. Jones <[email protected]>
# Date 1255004954 -3600
# Node ID a0fe8c2c47ef58011f073221835c27cd73ddf82e
# Parent 0569f32a43a12eaa170b8d9a804e78ad9bef6de4
Addition of an ioctl command code for PowerPC.
diff --git a/src/arch/powerpc/linux/linux.hh b/src/arch/powerpc/linux/linux.hh
--- a/src/arch/powerpc/linux/linux.hh
+++ b/src/arch/powerpc/linux/linux.hh
@@ -130,6 +130,8 @@
//@{
/// ioctl() command codes.
+ /// These are for the 2.6.15 kernel. Some have changed for
+ /// later versions.
static const unsigned TIOCGETP_ = 0x40067408;
static const unsigned TIOCSETP_ = 0x80067409;
static const unsigned TIOCSETN_ = 0x8006740a;
@@ -139,6 +141,7 @@
static const unsigned TIOCISATTY_ = 0x2000745e;
static const unsigned TIOCGETS_ = 0x402c7413;
static const unsigned TIOCGETA_ = 0x40147417;
+ static const unsigned TCSETAW_ = 0x80147419;
//@}
};
diff --git a/src/sim/syscall_emul.hh b/src/sim/syscall_emul.hh
--- a/src/sim/syscall_emul.hh
+++ b/src/sim/syscall_emul.hh
@@ -500,6 +500,7 @@
case OS::TIOCGETC_:
case OS::TIOCGETS_:
case OS::TIOCGETA_:
+ case OS::TCSETAW_:
return -ENOTTY;
default:
--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev