Kernel/armv7 - Fixed Proc_NewKThread, included lib.S in Makefile
authorJohn Hodge <[email protected]>
Thu, 20 Oct 2011 14:32:04 +0000 (22:32 +0800)
committerJohn Hodge <[email protected]>
Thu, 20 Oct 2011 14:32:04 +0000 (22:32 +0800)
Kernel/arch/armv7/Makefile
Kernel/arch/armv7/proc.c

index 21da172..83fd17c 100644 (file)
@@ -20,7 +20,7 @@ endif
 CPPFLAGS += -DMMU_PRESENT=$(MMU_PRESENT) -DPCI_ADDRESS=$(PCI_ADDRESS)
 LDFLAGS += `$(CC) --print-libgcc-file-name`
 
-A_OBJ  = start.ao main.o lib.o time.o pci.o debug.o
+A_OBJ  = start.ao main.o lib.o lib.ao time.o pci.o debug.o
 A_OBJ += mm_phys.o mm_virt.o proc.o proc.ao
 
 main.c: Makefile.BuildNum.$(ARCH)
index ccc6b8f..284c9d7 100644 (file)
@@ -172,7 +172,6 @@ tTID Proc_NewKThread( void (*Fnc)(void*), void *Ptr )
        sp = new->KernelStack;
        
        *(Uint32*)(sp -= 4) = (Uint)Ptr;
-       *(Uint32*)(sp -= 4) = 1;
        *(Uint32*)(sp -= 4) = (Uint)Fnc;
        *(Uint32*)(sp -= 4) = (Uint)new;
 

UCC git Repository :: git.ucc.asn.au