diff --git a/src/lib/libc/libc.inc b/src/lib/libc/libc.inc index 4cbab92..a82ebad 100644 --- a/src/lib/libc/libc.inc +++ b/src/lib/libc/libc.inc @@ -1,12 +1,11 @@ CC = cc REMOVE = rm -fr - .if defined(PICA) CFLAGS = -O2 -fno-strict-aliasing -pipe -D__DBINTERFACE_PRIVATE -DINET6 -DPOSIX_MISTAKE -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -DYP -DHESIOD -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -nostdinc -nostdlib #-fpic -DPIC CFLAGS_UTHREAD = -DPIC -O2 -fno-strict-aliasing -pipe -DPTHREAD_KERNEL -D_LOCK_DEBUG -D_PTHREADS_INVARIANTS .else -CFLAGS = -fpic -DPIC -O2 -fno-strict-aliasing -pipe -D__DBINTERFACE_PRIVATE -DINET6 -DPOSIX_MISTAKE -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -DYP -DHESIOD -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized +CFLAGS = -fpic -DPIC -O2 -fno-strict-aliasing -pipe -D__DBINTERFACE_PRIVATE -DINET6 -DPOSIX_MISTAKE -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -DYP -DHESIOD -Wsystem-headers -Wall -Wno-format-y2k -Wno-uninitialized CFLAGS_UTHREAD = -nostdinc -nostdlib -fpic -DPIC -O2 -fno-strict-aliasing -pipe -DPTHREAD_KERNEL -D_LOCK_DEBUG -D_PTHREADS_INVARIANTS .endif diff --git a/src/sys/devfs/devfs.c b/src/sys/devfs/devfs.c index 77b6b53..0372934 100644 --- a/src/sys/devfs/devfs.c +++ b/src/sys/devfs/devfs.c @@ -92,7 +92,7 @@ devfsObj = (struct devfs_obj *)kmalloc(sizeof(struct devfs_obj)); fd->fsObj = devfsObj; device = device_find(tmpDev->devMajor,tmpDev->devMinor); - (void *)devfsObj->start = tmpDev; + devfsObj->start = tmpDev; fd->size = device->devInfo->size; break; default: diff --git a/src/sys/lib/kmalloc.c b/src/sys/lib/kmalloc.c index 1ea0ea3..a85c026 100644 --- a/src/sys/lib/kmalloc.c +++ b/src/sys/lib/kmalloc.c @@ -290,7 +290,7 @@ } buf = (char *)tmpDesc1->baseAddr; for (i=0;ilimit;i++) { - (char)buf[i] = (char)0x0; + buf[i] = 0x0; } spinUnlock(&mallocSpinLock); //kprintf("m1[%i:%i:0x%X]",tmpDesc1->limit,len,tmpDesc1->baseAddr); @@ -324,7 +324,7 @@ buf = (char *)tmpDesc1->baseAddr; for (i=0;ilimit;i++) { - (char)buf[i] = (char)0x0; + buf[i] = 0x0; } spinUnlock(&mallocSpinLock); //kprintf("baseAddr2[0x%X:0x%X]",tmpDesc1,tmpDesc1->baseAddr); @@ -392,6 +392,9 @@ /*** $Log$ + Revision 1.1.1.1 2007/01/17 03:31:54 reddawg + UbixOS + Revision 1.3 2006/12/05 14:10:21 reddawg Workign Distro diff --git a/src/sys/vmm/paging.c b/src/sys/vmm/paging.c index 6a87e55..403b4a9 100644 --- a/src/sys/vmm/paging.c +++ b/src/sys/vmm/paging.c @@ -69,7 +69,7 @@ /* Clear The Memory To Ensure There Is No Garbage */ for (i = 0; i < pageEntries; i++) { - (uInt32) kernelPageDirectory[i] = (uInt32) 0x0; + kernelPageDirectory[i] = 0x0; } /* end for */ /* Allocate a page for the first 4MB of memory */ @@ -341,7 +341,7 @@ /* Clear Out The Page */ for (counter = 0x0; counter < pageEntries; counter++) { - (uInt32) src[counter] = (uInt32) 0x0; + src[counter] = 0x0; } /* Return */ diff --git a/src/sys/vmm/vmm_virtual.c b/src/sys/vmm/vmm_virtual.c index 1f0ff22..51d7300 100644 --- a/src/sys/vmm/vmm_virtual.c +++ b/src/sys/vmm/vmm_virtual.c @@ -555,7 +555,7 @@ newPageDirectoryAddress = (void *)vmm_getPhysicalAddr((uInt32) newPageDirectory); /* First Set Up A Flushed Page Directory */ for (x = 0; x < pageEntries; x++) { - (uInt32) newPageDirectory[x] = (uInt32) 0x0; + newPageDirectory[x] = 0x0; } /* Map The Top 1GB Region Of The VM Space */ for (x = 768; x < pageEntries; x++) { @@ -568,7 +568,7 @@ newPageTable = (uInt32 *) vmmGetFreePage(pid); /* Flush The Page From Garbage In Memory */ for (x = 0; x < pageEntries; x++) { - (uInt32) newPageTable[x] = (uInt32) 0x0; + newPageTable[x] = 0x0; } /* Map This Into The Page Directory */ newPageDirectory[0] = (vmm_getPhysicalAddr((uInt32) newPageTable) | PAGE_DEFAULT);