Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [threadx-dev] SMP porting question
  • From: Bill Lamie <blamie@xxxxxxxxxxx>
  • Date: Tue, 2 Sep 2025 21:14:50 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=px5rtos.com; dmarc=pass action=none header.from=px5rtos.com; dkim=pass header.d=px5rtos.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=zOSq7asYSmUfT+5egvYCXFL+itkbbPcMIoDbB3S9sNk=; b=EsECVTz9wtz8NrKkHWXzgWxwaSEuriuKc2vjjYsKiFjr2VlTr7gN2woiLUg9E5vvplXrVdXIi6jo0qCc4dcjK+W/kuiY6LyHmKAXPo0oq0LsGWGwgRISMu+pNSPCw/nWWU4wKB2vbIl57BOe23HVn5UMf4S6njT7JeFjAjSIDWb4SaTwbZ817I2TptswJw9oIg/D05iNSfDvW5nVFyI4AM9nHrzxzNTIkBDXSVqJP3ikY3FdZKS744YI8yyBet8CQaNR+shpuE61ceNMCiuvO1jfeExjqsupDCiregbo7Qa4EPkFC/tjxx5FeNk24gPO3jllk9/9fxmQZW3nFxGcwQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=p1oG8aH0UeWTewhTlKCWzjSn5Ec1vivWykgNaq7C8VME7Y2EMBBIVJvrXpwp+Y3GokgKaZL4yPdytNMpCddtIzrC+xz0ySSxxv7mIssND/UI6s2ldwSX9NqBrSrbdQYA289HBFxMOq22S1DrO+CCLUIRfwEfyhis+9O3Ts4T/ow+v5M/Tpeg7IzbFE8FpahN83kHeNc2VNx5MB/Mx7bnAflU6U7ug6FkoHnZ2PI12KIVRAmYCwTHtjN3CGBraBV0M/zcxTZW4IQ1PnnyptmndtFyaJ6KDWId8TZAmih6opj4uEmjXhcFOuOQDRbhvEWBImvvarLdJL/w9N2/S+3ujQ==
  • Delivered-to: threadx-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/threadx-dev/>
  • List-help: <mailto:threadx-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/threadx-dev>, <mailto:threadx-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/threadx-dev>, <mailto:threadx-dev-request@eclipse.org?subject=unsubscribe>
  • Msip_labels:
  • Thread-index: AQHcGoN1LizbRuULMkiciuvazgOsNrSAZt/w
  • Thread-topic: SMP porting question

Hi Peter,

 

With ThreadX SMP ports, we typically maintain a “ready” bit in the TX_THREAD (thread control block) to indicate that the thread is no longer running and is ready for scheduling again.  This bit would be set when the thread is created, cleared when it is actually scheduled in _tx_thread_schedule and then set again when the thread voluntarily returns or is preempted (_tx_thread_system_return and _tx_thread_context_restore).

 

Best regards,

 

Bill

 

BTW, I hope this helps. Please feel free to reach out to me at blamie@xxxxxxxxxxx.

 

 

From: threadx-dev <threadx-dev-bounces@xxxxxxxxxxx> On Behalf Of Peter.McShane--- via threadx-dev
Sent: Sunday, August 31, 2025 7:41 AM
To: threadx-dev@xxxxxxxxxxx
Cc: Peter.McShane@xxxxxxxxxxxxx
Subject: [threadx-dev] SMP porting question

 

Hi,

 

I'm currently working on porting ThreadX to Risc-V 64 bit with SMP support and have been looking at the existing SMP ports to guide me.  

 

Whilst looking at some of the Arm SMP ports, I've been trying to make sense of some code in the tx_thread_schedule.s file for example in the cortex_a77_smp/gnu directory. 

 

Within this code there is a reference to a ready bit which is a 32 bit word at offset 280 in the TX_THREAD structure and another at offset 260. I'm not sure exactly which entries in the structure these refer to and was wondering if someone could provide a definitive answer.

 

Regards,

Peter Mc Shane 


Back to the top