Fixed kmalloc and C malloc errors, asm wrappers.