From cc889e9d608e6b07b78541849b7e63b6fb3f6058 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Sat, 5 Mar 2011 17:48:06 +0000 Subject: Change the thread api a bit. * Remove THREAD_ID_CURRENT macro in favor of a thread_self() function, this allows thread functions to be simpler. * thread_self_entry() shortcut for kernel.c. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29521 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/ata.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'firmware/drivers/ata.c') diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c index a16a6cc15e..baef6691d4 100644 --- a/firmware/drivers/ata.c +++ b/firmware/drivers/ata.c @@ -99,8 +99,7 @@ static void ata_lock_init(struct ata_lock *l) static void ata_lock_lock(struct ata_lock *l) { - struct thread_entry * const current = - thread_id_entry(THREAD_ID_CURRENT); + struct thread_entry * const current = thread_self_entry(); if (current == l->thread) { -- cgit v1.2.3