Loader: Use address mask provided to load*Symbols when loading the symbols from the...
[gem5.git] / src / base / atomicio.cc
index 3f3e6d6f01ed888c75595a5f59972b068d8c79a9..13eeca05b097cb49d0e2b03086cfc9b3c0c0a0bd 100644 (file)
@@ -37,7 +37,7 @@ ssize_t
 atomic_read(int fd, void *s, size_t n)
 {
     char *p = reinterpret_cast<char *>(s);
-    ssize_t pos = 0;
+    size_t pos = 0;
 
     // Keep reading until we've gotten all of the data.
     while (n > pos) {
@@ -66,7 +66,7 @@ ssize_t
 atomic_write(int fd, const void *s, size_t n)
 {
     const char *p = reinterpret_cast<const char *>(s);
-    ssize_t pos = 0;
+    size_t pos = 0;
 
     // Keep writing until we've written all of the data
     while (n > pos) {