mirror of
https://github.com/drasko/codezero.git
synced 2026-07-13 10:54:12 +02:00
Integrated libl4thread with libl4. Added device number to device caps.
A 16-bit device number or id further distinguishes a device on the system in addition to the device type. This is meant to be used for the very first identification of the device for further probing. Any further info is available by userspace mapping and probing.
This commit is contained in:
12
conts/libl4/src/arm/new_thread.S
Normal file
12
conts/libl4/src/arm/new_thread.S
Normal file
@@ -0,0 +1,12 @@
|
||||
#include <l4lib/arch/asm.h>
|
||||
|
||||
|
||||
BEGIN_PROC(setup_new_thread)
|
||||
ldr r0, [sp], #-4 @ Load first argument
|
||||
mov lr, pc @ Save return address
|
||||
ldr pc, [sp], #-4 @ Load function pointer from stack
|
||||
b l4_thread_exit @ Call l4_thread_exit for cleanup
|
||||
new_thread_exit:
|
||||
b new_thread_exit @ Never reaches here
|
||||
END_PROC(setup_new_thread)
|
||||
|
||||
Reference in New Issue
Block a user