Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Nov 2004 03:28:26 +0000 (UTC)
From:      Peter Wemm <peter@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/libc/i386/gen _set_tp.c src/lib/libc/i386/sys Makefile.inc _amd64_get_fsbase.c _amd64_get_gsbase.c _amd64_set_fsbase.c _amd64_set_gsbase.c
Message-ID:  <200411060328.iA63SQBH055997@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
peter       2004-11-06 03:28:26 UTC

  FreeBSD src repository

  Modified files:
    lib/libc/i386/gen    _set_tp.c 
    lib/libc/i386/sys    Makefile.inc 
  Added files:
    lib/libc/i386/sys    _amd64_get_fsbase.c _amd64_get_gsbase.c 
                         _amd64_set_fsbase.c _amd64_set_gsbase.c 
  Log:
  When building the custom i386 libraries for use on amd64 kernels, we
  can't use the i386_set_ldt() family of routines, because they are not
  implemented.  Instead, use the recently exposed direct access sysarch
  routines for setting what %fs and %gs point to.
  
  Use this for the i386 TLS _set_tp() routine, but only when compiling to
  run as a 32 bit support binary for amd64 kernels.
  
  Revision  Changes    Path
  1.2       +4 -0      src/lib/libc/i386/gen/_set_tp.c
  1.28      +4 -0      src/lib/libc/i386/sys/Makefile.inc
  1.1       +44 -0     src/lib/libc/i386/sys/_amd64_get_fsbase.c (new)
  1.1       +44 -0     src/lib/libc/i386/sys/_amd64_get_gsbase.c (new)
  1.1       +37 -0     src/lib/libc/i386/sys/_amd64_set_fsbase.c (new)
  1.1       +37 -0     src/lib/libc/i386/sys/_amd64_set_gsbase.c (new)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200411060328.iA63SQBH055997>