Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,050 for tlsg (0.15 sec)

  1. src/runtime/cgo/gcc_windows_amd64.c

    #include <errno.h>
    #include "libcgo.h"
    #include "libcgo_windows.h"
    
    static void threadentry(void*);
    static void (*setg_gcc)(void*);
    static DWORD *tls_g;
    
    void
    x_cgo_init(G *g, void (*setg)(void*), void **tlsg, void **tlsbase)
    {
    	setg_gcc = setg;
    	tls_g = (DWORD *)tlsg;
    }
    
    
    void
    _cgo_sys_thread_start(ThreadStart *ts)
    {
    	_cgo_beginthread(threadentry, ts);
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 12 03:56:28 UTC 2023
    - 1K bytes
    - Viewed (0)
  2. src/runtime/cgo/gcc_windows_386.c

    	/*
    	 * Set specific keys in thread local storage.
    	 */
    	asm volatile (
    		"movl %0, %%fs:0(%1)\n"	// MOVL tls0, 0(tls_g)(FS)
    		"movl %%fs:0(%1), %%eax\n"	// MOVL 0(tls_g)(FS), tmp
    		"movl %2, 0(%%eax)\n"	// MOVL g, 0(AX)
    		:: "r"(ts.tls), "r"(*tls_g), "r"(ts.g) : "%eax"
    	);
    
    	crosscall1(ts.fn, setg_gcc, ts.g);
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 12 03:56:58 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  3. src/runtime/cgo/gcc_linux_amd64.c

    static void* threadentry(void*);
    static void (*setg_gcc)(void*);
    
    // This will be set in gcc_android.c for android-specific customization.
    void (*x_cgo_inittls)(void **tlsg, void **tlsbase) __attribute__((common));
    
    void
    x_cgo_init(G *g, void (*setg)(void*), void **tlsg, void **tlsbase)
    {
    	uintptr *pbounds;
    
    	/* The memory sanitizer distributed with versions of clang
    	   before 3.8 has a bug: if you call mmap before malloc, mmap
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 22:06:46 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  4. src/runtime/cgo/gcc_linux.c

    #include "libcgo_unix.h"
    
    static void *threadentry(void*);
    
    void (*x_cgo_inittls)(void **tlsg, void **tlsbase) __attribute__((common));
    static void (*setg_gcc)(void*);
    
    void
    x_cgo_init(G *g, void (*setg)(void*), void **tlsg, void **tlsbase)
    {
    	setg_gcc = setg;
    
    	_cgo_set_stacklo(g, NULL);
    
    	if (x_cgo_inittls) {
    		x_cgo_inittls(tlsg, tlsbase);
    	}
    }
    
    void
    _cgo_sys_thread_start(ThreadStart *ts)
    {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 03:55:36 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  5. src/runtime/cgo/gcc_linux_arm64.c

    #include <pthread.h>
    #include <errno.h>
    #include <string.h>
    #include <signal.h>
    #include <stdlib.h>
    #include "libcgo.h"
    #include "libcgo_unix.h"
    
    static void *threadentry(void*);
    
    void (*x_cgo_inittls)(void **tlsg, void **tlsbase) __attribute__((common));
    static void (*setg_gcc)(void*);
    
    void
    _cgo_sys_thread_start(ThreadStart *ts)
    {
    	pthread_attr_t attr;
    	sigset_t ign, oset;
    	pthread_t p;
    	size_t size;
    	int err;
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 22:06:46 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  6. src/runtime/cgo/gcc_darwin_amd64.c

    #include <pthread.h>
    #include <signal.h>
    #include "libcgo.h"
    #include "libcgo_unix.h"
    
    static void* threadentry(void*);
    static void (*setg_gcc)(void*);
    
    void
    x_cgo_init(G *g, void (*setg)(void*), void **tlsg, void **tlsbase)
    {
    	setg_gcc = setg;
    	_cgo_set_stacklo(g, NULL);
    }
    
    
    void
    _cgo_sys_thread_start(ThreadStart *ts)
    {
    	pthread_attr_t attr;
    	sigset_t ign, oset;
    	pthread_t p;
    	size_t size;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 12 03:56:28 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  7. src/runtime/cgo/gcc_linux_s390x.c

    #include <pthread.h>
    #include <string.h>
    #include <signal.h>
    #include "libcgo.h"
    #include "libcgo_unix.h"
    
    static void *threadentry(void*);
    
    void (*x_cgo_inittls)(void **tlsg, void **tlsbase);
    static void (*setg_gcc)(void*);
    
    void
    x_cgo_init(G *g, void (*setg)(void*), void **tlsbase)
    {
    	setg_gcc = setg;
    	_cgo_set_stacklo(g, NULL);
    }
    
    void
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 09 03:13:11 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  8. src/runtime/cgo/gcc_ppc64x.c

    //go:build ppc64 || ppc64le
    
    #include <pthread.h>
    #include <string.h>
    #include <signal.h>
    #include "libcgo.h"
    #include "libcgo_unix.h"
    
    static void *threadentry(void*);
    
    void (*x_cgo_inittls)(void **tlsg, void **tlsbase);
    static void (*setg_gcc)(void*);
    
    void
    x_cgo_init(G *g, void (*setg)(void*), void **tlsbase)
    {
    	setg_gcc = setg;
    	_cgo_set_stacklo(g, NULL);
    }
    
    void
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 09 03:13:11 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  9. src/cmd/link/internal/ld/lib.go

    	}
    
    	// The Android Q linker started to complain about underalignment of the our TLS
    	// section. We don't actually use the section on android, so don't
    	// generate it.
    	if buildcfg.GOOS != "android" {
    		tlsg := ctxt.loader.LookupOrCreateSym("runtime.tlsg", 0)
    		sb := ctxt.loader.MakeSymbolUpdater(tlsg)
    
    		// runtime.tlsg is used for external linking on platforms that do not define
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 88.6K bytes
    - Viewed (0)
  10. src/cmd/internal/objabi/reloctype.go

    	R_PCREL
    	// R_TLS_LE, used on 386, amd64, and ARM, resolves to the offset of the
    	// thread-local symbol from the thread local base and is used to implement the
    	// "local exec" model for tls access (r.Sym is not set on intel platforms but is
    	// set to a TLS symbol -- runtime.tlsg -- in the linker when externally linking).
    	R_TLS_LE
    	// R_TLS_IE, used 386, amd64, and ARM resolves to the PC-relative offset to a GOT
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 17:26:07 UTC 2024
    - 17.3K bytes
    - Viewed (0)
Back to top