X-Git-Url: https://git.saurik.com/apple/boot.git/blobdiff_plain/57c72a9a9f2a263d364c2df1178760bd057c390f..bba600dda0ea8a76d875db7308f372bfc43f8506:/i386/libsa/zalloc.c diff --git a/i386/libsa/zalloc.c b/i386/libsa/zalloc.c index 51162eb..8005a01 100644 --- a/i386/libsa/zalloc.c +++ b/i386/libsa/zalloc.c @@ -64,7 +64,7 @@ size_t zalloced_size; static void malloc_error(char *addr, size_t size) { #ifdef i386 - asm("hlt"); + asm volatile ("hlt"); #endif } @@ -177,7 +177,7 @@ void free(void * pointer) #if i386 // Get return address of our caller, // in case we have to report an error below. - asm("movl %%esp, %%eax\n\t" + asm volatile ("movl %%esp, %%eax\n\t" "subl $4, %%eax\n\t" "movl 0(%%eax), %%eax" : "=a" (rp) ); #else