Skip to content

Commit

Permalink
udpate
Browse files Browse the repository at this point in the history
  • Loading branch information
AsterDY committed Jan 10, 2025
1 parent a764000 commit 566ba60
Show file tree
Hide file tree
Showing 9 changed files with 46 additions and 8 deletions.
38 changes: 38 additions & 0 deletions internal/goid/go_tls.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/**
* Copyright 2025 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
//
// Copyright 2016 Huan Du. All rights reserved.
// Use of this source code is governed by a MIT
// license that can be found in the LICENSE file.

#ifdef GOARCH_arm
#define LR R14
#endif

#ifdef GOARCH_amd64
#define get_tls(r) MOVQ TLS, r
#define g(r) 0(r)(TLS * 1)
#endif

#ifdef GOARCH_amd64p32
#define get_tls(r) MOVL TLS, r
#define g(r) 0(r)(TLS * 1)
#endif

#ifdef GOARCH_386
#define get_tls(r) MOVL TLS, r
#define g(r) 0(r)(TLS * 1)
#endif
2 changes: 1 addition & 1 deletion internal/goid/goid.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023 CloudWeGo Authors
// Copyright 2025 CloudWeGo Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion internal/goid/goid_386.s
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023 CloudWeGo Authors
// Copyright 2025 CloudWeGo Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion internal/goid/goid_amd64.s
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023 CloudWeGo Authors
// Copyright 2025 CloudWeGo Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion internal/goid/goid_amd64p32.s
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023 CloudWeGo Authors
// Copyright 2025 CloudWeGo Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion internal/goid/goid_arm.s
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023 CloudWeGo Authors
// Copyright 2025 CloudWeGo Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion internal/goid/goid_arm64.s
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//// Copyright 2023 CloudWeGo Authors
//// Copyright 2025 CloudWeGo Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion internal/goid/goid_riscv64.s
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//// Copyright 2023 CloudWeGo Authors
//// Copyright 2025 CloudWeGo Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion internal/goid/goid_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023 CloudWeGo Authors
// Copyright 2025 CloudWeGo Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down

0 comments on commit 566ba60

Please sign in to comment.