Skip to content
This repository has been archived by the owner on Aug 1, 2022. It is now read-only.

_hardware_pause() is undefined on most platforms #1

Closed
mheily opened this issue Mar 7, 2014 · 1 comment
Closed

_hardware_pause() is undefined on most platforms #1

mheily opened this issue Mar 7, 2014 · 1 comment

Comments

@mheily
Copy link
Owner

mheily commented Mar 7, 2014

In src/private.h, _hardware_pause() is undefined on most platforms. Need to research what assembly is appropriate for use in a busy-wait spin loop.

mheily added a commit that referenced this issue Mar 7, 2014
@joshring
Copy link

joshring commented Mar 14, 2017

Sorry for previous mistake, see NOP:
https://lists.gnu.org/archive/html/discuss-gnuradio/2013-07/msg00437.html
http://www.avrfreaks.net/forum/problems-delaying-nops-avr-gcc
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0489e/Cjafcggi.html

Volatile apparently forces it to be executed and not removed by either the optimiser or the CPU.

__asm__ __volatile__ ("nop");

@mheily mheily closed this as completed Jul 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants