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

Peter Wemm peter at FreeBSD.org
Fri Nov 5 19:28:27 PST 2004


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)


More information about the cvs-all mailing list