lkml.org 
[lkml]   [2004]   [Dec]   [14]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
    /
    DateTue, 14 Dec 2004 08:28:38 +0100
    FromAndi Kleen <>
    SubjectRe: how to detect a 32 bit process on 64 bit kernel
    On Sun, Dec 12, 2004 at 11:51:10PM +0200, Michael S. Tsirkin wrote:
    > Hello!
    > Is there a reliable way e.g. on x86-64 (or ia64, or any other
    > 64-bit system), from the char device driver,
    > to find out that I am running an operation in the context of a 32-bit
    > task?
    > 
    > If no - would not it make a sence to add e.g. a flag in the
    > task struct, to make it possible?
    
    There are non portable ways, but they are strong discouraged because 
    we aim to eventually support 32bit ABIs from 64bit processes too.
    Don't do it.
    
    
    -Andi
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    
    
    \
     
     \ /
      Last update: 2005-03-22 14:08    [from the cache]
    ©2003-2008