summaryrefslogtreecommitdiffstats
path: root/rtems-notes-6.md
blob: e5dc0d0e3d35efc201b2556ee115b422b5008fcd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
## RTEMS 6.1 Release Notes

### RTEMS Improvements

In this section, we discuss public API level changes as well as improvements to
the implementation of those API routines.

Public API changes usually fall into one of the following categories:

* Addition of new methods

* Modifications to prototypes

* Deletion of obsoleted methods

Implementation improvements usually fall into one of the following categories:

* Algorithm improvements in execution time or memory usage

* Critical section reduction

### API Changes

* If the processor set is not large enough to contain the processor set of
  the scheduler, then `rtems_scheduler_get_processor_set()` returns
  `RTEMS_INVALID_SIZE` instead of `RTEMS_INVALID_NUMBER`.

* If the processor set is not large enough to contain the processor
  affinity set of the task, then `rtems_task_get_affinity()` returns
  `RTEMS_INVALID_SIZE` instead of `RTEMS_INVALID_NUMBER`.

* If time-of-day argument is `NULL`, then `rtems_timer_fire_when()`,
  `rtems_timer_server_fire_when(), and `rtems_task_wake_when()` return
  `RTEMS_INVALID_ADDRESS` instead of `RTEMS_INVALID_CLOCK`.

* The time-of-day arguments in `rtems_timer_fire_when()`,
  `rtems_timer_server_fire_when(), and `rtems_task_wake_when()` were
  constified.

* If the entry point is `NULL`, then `rtems_task_start()` returns now
  `RTEMS_INVALID_ADDRESS`.

* If `rtems_task_delete()` is called from within interrupt context, then it
  returns now `RTEMS_CALLED_FROM_ISR`.

* The rate monotonic period statistics are no longer affected by
  `rtems_cpu_usage_reset()`.

* Termios
  * `txTaskCharsDequeued` has been added to `struct rtems_termios_tty`. With
    that the size of the structure changed. Libraries and applications that use
    the structure should be recompiled.
  * The `l_start` line discipline function now receives the number of characters
    that have been sent. It is save to ignore the extra parameter for
    applications that don't need it.

#### API Additions

* `RTEMS_ALIGN_UP()`

* `RTEMS_ALIGN_DOWN()`

* `rtems_get_build_label()`

* `rtems_get_target_hash()`

* `rtems_interrupt_clear()`

* `rtems_interrupt_entry_initialize()`

* `RTEMS_INTERRUPT_ENTRY_INITIALIZER()`

* `rtems_interrupt_entry_install()`

* `rtems_interrupt_entry_remove()`

* `rtems_interrupt_get_affinity()`

* `rtems_interrupt_get_attributes()`

* `rtems_interrupt_handler_install()`

* `rtems_interrupt_handler_iterate()`

* `rtems_interrupt_handler_remove()`

* `rtems_interrupt_is_pending()`

* `rtems_interrupt_raise()`

* `rtems_interrupt_raise_on()`

* `rtems_interrupt_server_action_prepend()`

* `rtems_interrupt_server_create()`

* `rtems_interrupt_server_delete()`

* `rtems_interrupt_server_entry_destroy()`

* `rtems_interrupt_server_entry_initialize()`

* `rtems_interrupt_server_entry_move()`

* `rtems_interrupt_server_entry_submit()`

* `rtems_interrupt_server_handler_install()`

* `rtems_interrupt_server_handler_iterate()`

* `rtems_interrupt_server_handler_remove()`

* `rtems_interrupt_server_initialize()`

* `rtems_interrupt_server_move()`

* `rtems_interrupt_server_request_destroy()`

* `rtems_interrupt_server_request_initialize()`

* `rtems_interrupt_server_request_set_vector()`

* `rtems_interrupt_server_request_submit()`

* `rtems_interrupt_server_resume()`

* `rtems_interrupt_server_set_affinity()`

* `rtems_interrupt_server_suspend()`

* `rtems_interrupt_set_affinity()`

* `rtems_interrupt_vector_disable()`

* `rtems_interrupt_vector_enable()`

* `rtems_interrupt_vector_is_enabled()`

* `RTEMS_MESSAGE_QUEUE_BUFFER()`

* `rtems_message_queue_construct()`

* `RTEMS_PARTITION_ALIGNMENT`

* `rtems_task_construct()`

* `RTEMS_TASK_STORAGE_SIZE()`

* `RTEMS_TASK_STORAGE_ALIGNMENT`

#### API Implementation Improvements

* The Classic API signal processing was reworked to avoid possible infinite
  recursions.  It is still strongly recommended to use the `RTEMS_NO_ASR` task
  mode for the signal handler.

* Zero size allocation results are now consistent accross directives, for
  example `malloc( 0 )` and `posix_memalign( &p, align, 0 )` return now a
  unique pointer (or `NULL` if the heap is empty).  In POSIX, zero size memory
  allocations are implementation-defined behaviour.  The implementation has two
  options:

  * https://pubs.opengroup.org/onlinepubs/9699919799/functions/malloc.html

  * https://pubs.opengroup.org/onlinepubs/9699919799/functions/posix_memalign.html

  Linux and FreeBSD return a unique pointer for zero size memory allocations.
  This approach is now also used in RTEMS as well throughout the memory
  allocation directives

#### API Deprecations

* `rtems_iterate_over_all_threads()`.  Use `rtems_task_iterate()` instead.

* `_Copyright_Notice` is deprecated.  Use `rtems_get_copyright_notice()` instead.

* `_RTEMS_version` is deprecated.  Use `rtems_get_version_string()` instead.

* `RTEMS_COMPILER_NO_RETURN_ATTRIBUTE` is deprecated. Use `RTEMS_NO_RETURN` instead.

* `RTEMS_COMPILER_PURE_ATTRIBUTE` is deprecated. Use `RTEMS_PURE` instead.

* `RTEMS_COMPILER_DEPRECATED_ATTRIBUTE` is deprecated. Use `RTEMS_DEPRECATED` instead.

* `RTEMS_COMPILER_UNUSED_ATTRIBUTE` is deprecated. Use `RTEMS_UNUSED` instead.

* `RTEMS_COMPILER_PACKED_ATTRIBUTE` is deprecated. Use `RTEMS_PACKED` instead.

#### API Removals

* The obsoleted header file <rtems/system.h> was removed.

* The never implemented `rtems_interrupt_cause()` directive was removed.

* Support for the RTEMS thread model used by GCC versions prior to 6.1 was
  removed (for example `rtems_gxx_once()`).

* The obsoleted `rtems_get_current_processor()` directive was removed.  Use
  `rtems_scheduler_get_processor()` instead.

* The obsoleted `rtems_get_processor_count()` directive was removed.  Use
  `rtems_scheduler_get_processor_maximum()` instead.

* The obsoleted `boolean` type was removed.  Use `bool` instead.

* The obsoleted `single_precision` type was removed.  Use `float` instead.

* The obsoleted `double_precision` type was removed.  Use `double` instead.

* The obsoleted `proc_ptr` type was removed.  Use a proper function pointer
  type.

* The obsoleted `rtems_context` type was removed.

* The obsoleted `rtems_context_fp` type was removed.

* The obsoleted `rtems_extension` type was removed.  Use `void` instead.

* The obsoleted `rtems_io_lookup_name()` type was removed. Use `stat()`
  instead.

* The obsoleted `region_information_block` was removed.  Use
  `Heap_Information_block` instead.

* The obsoleted `rtems_thread_cpu_usage_t` type was removed. Use
  `struct timespec` instead.

* The obsoleted `rtems_rate_monotonic_period_time_t` type was removed. Use
  `struct timespec` instead.

* The obsoleted `RTEMS_MAXIMUM_NAME_LENGTH` define was removed. Use
  `sizeof(rtems_name)` instead.

### SMP Support Improvements

* The SMP scheduler framework was reworked to fix potential data corruption
  issues and priority group ordering violations.

### Configuration Changes

* TBD

* New configuration options:

    * `CONFIGURE_MAXIMUM_THREAD_LOCAL_STORAGE_SIZE`

    * `CONFIGURE_MINIMUM_TASKS_WITH_USER_PROVIDED_STORAGE`

* Renamed configuration options:

    * TBD

* Removed configuration options:

    * TBD

## RTEMS Shell Improvements

The following improvements were made to the RTEMS Shell:

* TBD

## General

* TBD

## Architectures

Removed obsoleted architectures:

* Epiphany

* PowerPC SPE

Obsoleted architectures:

* SPARC64
* SuperH (sh)

## BSPs and Device Drivers

* General

    * TBD

* New BSPs

    * `arm/fvp`

    * `arm/imxrt`

    * `arm/stm32h7`

* Significant updates to existing BSPs

    * `ARCH/BSP`: TBD

* Removal of obsoleted BSPs

    * `powerpc/brs5l`

    * `powerpc/brs6l`

    * `powerpc/dp2`

    * `powerpc/haleakala`

    * `powerpc/mpc5566evb_spe`

    * `powerpc/mpc5643l_dpu`

    * `powerpc/mpc5643l_evb`

    * `powerpc/mpc5674f_ecu508_app`

    * `powerpc/mpc5674f_ecu508_boot`

    * `powerpc/mpc5674fevb_spe`

    * `powerpc/mpc5674f_rsm6`

* Obsoleted BSPs

    * `m68k/gen68302`

    * `m68k/ods68302`

    * `powerpc/mbx8xx`

* Drivers

    * TBD

## Newlib Changes

* Add `futimens()` and `utimensat()`

## Ecosystem

* Improved GCOV support for RTEMS and embedded systems in general.  See GCC
  options `-fprofile-info-section` and `-fprofile-update=atomic`.  The
  `libgcov` provides now the `__gcov_info_to_gcda()` function to dump the GCOV
  information.