From: erik.corry@gmail.com Date: Thu, 8 Jul 2010 08:12:17 +0000 (+0000) Subject: Add ReleaseStore function on OpenBSD. X-Git-Tag: upstream/4.7.83~21517 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=068e0bc0326f0feda0608e5ccec031d8acb1d5f9;p=platform%2Fupstream%2Fv8.git Add ReleaseStore function on OpenBSD. Review URL: http://codereview.chromium.org/2916001 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5036 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/platform-openbsd.cc b/src/platform-openbsd.cc index e3ae867..58ff154 100644 --- a/src/platform-openbsd.cc +++ b/src/platform-openbsd.cc @@ -83,6 +83,12 @@ void OS::Setup() { } +void OS::ReleaseStore(volatile AtomicWord* ptr, AtomicWord value) { + __asm__ __volatile__("" : : : "memory"); + *ptr = value; +} + + uint64_t OS::CpuFeaturesImpliedByPlatform() { return 0; // OpenBSD runs on anything. }