Skip to content

Commit 7a53a5f

Browse files
authored
Merge pull request #3900 from grandixximo/fix/deprecate-uses-fp-2.9
Deprecate uses_fp: always enable FPU state save on all threads
2 parents b574d21 + 4d37d4a commit 7a53a5f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+83
-68
lines changed

docs/man/man3/hal_create_thread.3hal

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ The name of the thread
1818
The interval, in nanoseconds, between iterations of the thread
1919

2020
.IP \fIuses_fp\fR
21-
Must be nonzero if a function which uses floating-point will be attached to this thread.
21+
\fBDeprecated.\fR All threads now unconditionally save and restore
22+
floating-point state. This parameter is accepted but ignored.
2223

2324
.SH DESCRIPTION
2425
\fBhal_create_thread\fR establishes a realtime thread that will execute one or more HAL functions periodically.

docs/man/man3/hal_export_funct.3hal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ The pointer to the function
2020
The argument to be passed as the first parameter of \fIfunct\fR
2121

2222
.IP \fIuses_fp\fR
23-
Nonzero if the function uses floating-point operations, including assignment
24-
of floating point values with "=".
23+
\fBDeprecated.\fR All threads now unconditionally save and restore
24+
floating-point state, so this flag has no effect.
2525

2626
.IP \fIreentrant\fR
2727
If reentrant is non-zero, the function may be preempted and called again

docs/man/man3/rtapi_task_new.3rtapi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ started
1919
.IP \fIprio\fR
2020
A task priority value returned by \fBrtapi_prio_xxxx\fR
2121
.IP \fIuses_fp\fR
22-
A flag that tells the OS whether the task uses floating point or not.
22+
\fBDeprecated.\fR All tasks now unconditionally save and restore
23+
floating-point state. This parameter is accepted but ignored.
2324
.IP \fItask_id\fR
2425
A task ID returned by a previous call to \fBrtapi_task_new\fR
2526
.SH DESCRIPTION

docs/man/man9/motion.9

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ Optionally the number of Digital I/O is set with num_dio. The number of Analog I
4242
Pin names starting with "\fBjoint\fR" or "\fBaxis\fR" are are read and updated by the motion-controller function.
4343

4444
.SH DESCRIPTION
45-
By default, the base thread does not support floating point. Software stepping, software encoder counting, and software pwm do not use floating point. \fBbase_thread_fp\fR can be used to enable floating point in the base thread (for example for brushless DC motor control).
45+
\fBbase_thread_fp\fR is \fBdeprecated\fR and has no effect. All threads now
46+
unconditionally save and restore floating-point state.
4647

4748
.P
4849
These pins and parameters are created by the realtime \fBmotmod\fR module. This module provides a HAL interface for LinuxCNC's motion planner. Basically \fBmotmod\fR takes in a list of waypoints and generates a nice blended and constraint-limited stream of joint positions to be fed to the motor drives.

src/hal/components/abs_s32.comp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pin out bit sign "Sign of input, false for positive, true for negative" ;
2121
pin out bit is_positive "TRUE if input is positive, FALSE if input is 0 or negative";
2222
pin out bit is_negative "TRUE if input is negative, FALSE if input is 0 or positive";
2323

24-
function _ nofp;
24+
function _;
2525
license "GPL";
2626
author "Sebastian Kuzminsky";
2727
;;

src/hal/components/and2.comp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Otherwise,
1414
\\fBout=FALSE\\fR
1515
.RE"""
1616
;
17-
function _ nofp;
17+
function _;
1818
see_also """
1919
\\fBlogic\\fR(9),
2020
\\fBlut5\\fR(9),

src/hal/components/bin2gray.comp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ pin in unsigned in "binary code in";
44
pin out unsigned out "gray code out";
55
license "GPL";
66
author "Andy Pugh";
7-
function _ nofp;
7+
function _;
88
;;
99
out = (in >> 1) ^ in;

src/hal/components/bitslice.comp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pin in u32 in "The input value";
77
pin out bit out-##[32:personality];
88
author "Andy Pugh";
99
license "GPL2+";
10-
function _ nofp;
10+
function _;
1111
option personality yes;
1212
;;
1313
int i;

src/hal/components/bitwise.comp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pin out u32 out-xnor "The inverse of the bitwise XOR";
1010

1111
author "Andy Pugh";
1212
license "GPL 2+";
13-
function _ nofp;
13+
function _;
1414
;;
1515

1616
out_and = (in0 & in1);

src/hal/components/charge_pump.comp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pin out bit out "Square wave if 'enable' is TRUE or unconnected, low if 'enable'
2121
pin out bit out-2 "Square wave at half the frequency of 'out'";
2222
pin out bit out-4 "Square wave at a quarter of the frequency of 'out'";
2323
pin in bit enable = TRUE "If FALSE, forces all 'out' pins to be low";
24-
function _ nofp "Toggle the output bit (if enabled)";
24+
function _ "Toggle the output bit (if enabled)";
2525
description """
2626
The 'Charge Pump' should be added to the base thread function.
2727
When enabled the output is on for one period and off for one period. To calculate the

0 commit comments

Comments
 (0)