Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(218)

Unified Diff: src/pkg/runtime/amd64/atomic.c

Issue 4631059: code review 4631059: runtime: replace Semacquire/Semrelease implementation (Closed)
Patch Set: diff -r 607e0f74161f https://go.googlecode.com/hg/ Created 12 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/pkg/runtime/Makefile ('k') | src/pkg/runtime/arm/atomic.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pkg/runtime/amd64/atomic.c
===================================================================
new file mode 100644
--- /dev/null
+++ b/src/pkg/runtime/amd64/atomic.c
@@ -0,0 +1,12 @@
+// Copyright 2009 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+#include "runtime.h"
+
+#pragma textflag 7
+uint32
+runtime·atomicload(uint32 volatile* addr)
+{
+ return *addr;
+}
« no previous file with comments | « src/pkg/runtime/Makefile ('k') | src/pkg/runtime/arm/atomic.c » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b