Ticket #10402: 0001-Intel-Partition-Table-Remove-dummy-atomic_add.patch

File 0001-Intel-Partition-Table-Remove-dummy-atomic_add.patch, 1017 bytes (added by js, 6 years ago)
  • src/add-ons/kernel/partitioning_systems/intel/intel.cpp

    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  
    5353
    5454using std::nothrow;
    5555
    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 
    7056
    7157#ifndef _BOOT_MODE
    7258