For some reason, these constants didnt get updated for MIPS Linux, which is
causing Hello World not to get work when TraceFlags were on...

On Wed, Dec 17, 2008 at 4:46 PM, Korey Sewell <[email protected]>wrote:

> # HG changeset patch
> # User Korey Sewell <[email protected]>
> # Date 1229550124 18000
> # Node ID dd8d283a7f51ea568db6662d307462f273167dfa
> # Parent  3d86004eff5b5725329c755910c43d3e4c72fecb
> [mq]: ioctl_linux_call
>
> diff -r 3d86004eff5b -r dd8d283a7f51 src/arch/mips/linux/linux.hh
> --- a/src/arch/mips/linux/linux.hh      Wed Dec 17 16:15:21 2008 -0500
> +++ b/src/arch/mips/linux/linux.hh      Wed Dec 17 16:42:04 2008 -0500
> @@ -94,15 +94,15 @@ class MipsLinux : public Linux
>
>     //@{
>     /// ioctl() command codes.
> -    static const unsigned TIOCGETP   = 0x7408;
> -    static const unsigned TIOCSETP   = 0x7409;
> -    static const unsigned TIOCSETN   = 0x740a;
> -    static const unsigned TIOCSETC   = 0x7411;
> -    static const unsigned TIOCGETC   = 0x7412;
> -    static const unsigned FIONREAD   = 0x467f;
> -    static const unsigned TIOCISATTY = 0x5480;
> -    static const unsigned TIOCGETS   = 0x540d;
> -    static const unsigned TIOCGETA   = 0x7417;
> +    static const unsigned TIOCGETP_   = 0x7408;
> +    static const unsigned TIOCSETP_   = 0x7409;
> +    static const unsigned TIOCSETN_   = 0x740a;
> +    static const unsigned TIOCSETC_   = 0x7411;
> +    static const unsigned TIOCGETC_   = 0x7412;
> +    static const unsigned FIONREAD_   = 0x467f;
> +    static const unsigned TIOCISATTY_ = 0x5480;
> +    static const unsigned TIOCGETS_   = 0x540d;
> +    static const unsigned TIOCGETA_   = 0x7417;
>     //@}
>
>     /// For table().
> diff -r 3d86004eff5b -r dd8d283a7f51 src/arch/mips/linux/process.cc
> --- a/src/arch/mips/linux/process.cc    Wed Dec 17 16:15:21 2008 -0500
> +++ b/src/arch/mips/linux/process.cc    Wed Dec 17 16:42:04 2008 -0500
> @@ -175,7 +175,7 @@ SyscallDesc MipsLinuxProcess::syscallDes
>     /* 51 */ SyscallDesc("acct", unimplementedFunc),
>     /* 52 */ SyscallDesc("umount2", unimplementedFunc),
>     /* 53 */ SyscallDesc("lock", unimplementedFunc),
> -    /* 54 */ SyscallDesc("ioctl",
> unimplementedFunc/*ioctlFunc<MipsLinux>*/),
> +    /* 54 */ SyscallDesc("ioctl", ioctlFunc<MipsLinux>),
>     /* 55 */ SyscallDesc("fcntl", fcntlFunc),
>     /* 56 */ SyscallDesc("mpx", unimplementedFunc),
>     /* 57 */ SyscallDesc("setpgid", unimplementedFunc),
> _______________________________________________
> m5-dev mailing list
> [email protected]
> http://m5sim.org/mailman/listinfo/m5-dev
>



-- 
----------
Korey L Sewell
Graduate Student - PhD Candidate
Computer Science & Engineering
University of Michigan
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to