OpenCores
URL https://opencores.org/ocsvn/c0or1k/c0or1k/trunk

Subversion Repositories c0or1k

[/] [c0or1k/] [trunk/] [conts/] [libl4/] [src/] [arch/] [arm/] [new_thread.S.ARM] - Blame information for rev 6

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 drasko
/*
2
 * Set up new thread's argument and call its function.
3
 * Return would be made to thread_exit with the return code.
4
 *
5
 * Copyright (C) 2010 B Labs Ltd.
6
 *
7
 * Author: Bahadir Balban
8
 */
9
#include 
10
#include L4LIB_INC_ARCH(asm.h)
11
 
12
 
13
BEGIN_PROC(setup_new_thread)
14
        ldr     r0, [sp, #-4]!          @ Load first argument
15
        mov     lr, pc                  @ Save return address
16
        ldr     pc, [sp, #-4]!          @ Load function pointer from stack
17
        b       thread_exit             @ Call l4_thread_exit for cleanup
18
1:
19
        b       1b                      @ Never reaches here
20
END_PROC(setup_new_thread)
21
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.