X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fos-common.c;h=c7ea58622d656e1b9900aa5d35ce07f82f42f155;hb=68fd2d2dd6f265669a8957accd8a33e62786a97e;hp=ef31ac9a0cff766bc8b39b3881f1e4ed49762ab3;hpb=a530bbe337109d898d5b4a001fc8f1afa3b5dc39;p=sbcl.git diff --git a/src/runtime/os-common.c b/src/runtime/os-common.c index ef31ac9..c7ea586 100644 --- a/src/runtime/os-common.c +++ b/src/runtime/os-common.c @@ -9,14 +9,11 @@ * files for more information. */ -/* - * $Header$ - */ - #include #include #include "os.h" +#include "interr.h" /* Except for os_zero, these routines are only called by Lisp code. * These routines may also be replaced by os-dependent versions @@ -50,7 +47,7 @@ os_zero(os_vm_address_t addr, os_vm_size_t length) os_invalidate(block_start, block_size); addr = os_validate(block_start, block_size); - if(addr == NULL || addr != block_start) + if (addr == NULL || addr != block_start) lose("os_zero: block moved! 0x%08x ==> 0x%08x", block_start, addr); @@ -85,15 +82,15 @@ os_reallocate(os_vm_address_t addr, os_vm_size_t old_len, os_vm_size_t len) len=os_round_up_size_to_page(len); old_len=os_round_up_size_to_page(old_len); - if(addr==NULL) + if (addr==NULL) return os_allocate(len); else{ long len_diff=len-old_len; - if(len_diff<0) + if (len_diff<0) os_invalidate(addr+len,-len_diff); else{ - if(len_diff!=0){ + if (len_diff!=0) { os_vm_address_t new=os_allocate(len); if(new!=NULL){