From 0eeb6917580662698e178d80b895a0d2b70b926e Mon Sep 17 00:00:00 2001
From: Jonathan Schleifer <js@webkeks.org>
Date: Sat, 11 Jan 2014 18:59:37 +0100
Subject: [PATCH 1/6] Intel Partition Table: Remove dummy atomic_add.
This dummy was intended for boot code, however, atomic_add seems to be
already properly defined in boot code.
---
src/add-ons/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 bd8370b..6591c4b 100644
a
|
b
|
|
53 | 53 | |
54 | 54 | using std::nothrow; |
55 | 55 | |
56 | | // TODO: This doesn't belong here! |
57 | | // no atomic_add() in the boot loader |
58 | | #ifdef _BOOT_MODE |
59 | | |
60 | | inline int32 |
61 | | atomic_add(int32* a, int32 num) |
62 | | { |
63 | | int32 oldA = *a; |
64 | | *a += num; |
65 | | return oldA; |
66 | | } |
67 | | |
68 | | #endif |
69 | | |
70 | 56 | |
71 | 57 | #ifndef _BOOT_MODE |
72 | 58 | |