From 3d916a2cd7dc80785fec66f063556f6f5dce1b9b Mon Sep 17 00:00:00 2001 From: Jonathan Schleifer Date: Sat, 11 Jan 2014 18:59:37 +0100 Subject: [PATCH] Intel Partition Table: Remove dummy atomic_add. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This dummy was intended for boot code, however, atomic_add seems to be already properly defined in boot code. Signed-off-by: Jérôme Duval --- .../kernel/partitioning_systems/intel/intel.cpp | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/add-ons/kernel/partitioning_systems/intel/intel.cpp b/src/add-ons/kernel/partitioning_systems/intel/intel.cpp index bd8370b620..6591c4b9c8 100644 --- a/src/add-ons/kernel/partitioning_systems/intel/intel.cpp +++ b/src/add-ons/kernel/partitioning_systems/intel/intel.cpp @@ -53,20 +53,6 @@ using std::nothrow; -// TODO: This doesn't belong here! -// no atomic_add() in the boot loader -#ifdef _BOOT_MODE - -inline int32 -atomic_add(int32* a, int32 num) -{ - int32 oldA = *a; - *a += num; - return oldA; -} - -#endif - #ifndef _BOOT_MODE