Skip to content

Commit 9c4d881

Browse files
nashifcarlescufi
authored andcommitted
syscall: rename Z_SYSCALL_ to K_SYSCALL_
Rename internal API to not use z_/Z_. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
1 parent 9c1aeb5 commit 9c4d881

Some content is hidden

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

72 files changed

+369
-369
lines changed

doc/kernel/drivers/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ implementation of both the subsystem API and the specific APIs:
239239
240240
int z_vrfy_specific_from_user(const struct device *dev, int bar)
241241
{
242-
Z_OOPS(Z_SYSCALL_SPECIFIC_DRIVER(dev, K_OBJ_DRIVER_GENERIC, &api));
242+
Z_OOPS(K_SYSCALL_SPECIFIC_DRIVER(dev, K_OBJ_DRIVER_GENERIC, &api));
243243
return z_impl_specific_do_that(dev, bar)
244244
}
245245

doc/kernel/usermode/syscalls.rst

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -279,24 +279,24 @@ Argument Validation
279279

280280
Several macros exist to validate arguments:
281281

282-
* :c:macro:`Z_SYSCALL_OBJ()` Checks a memory address to assert that it is
282+
* :c:macro:`K_SYSCALL_OBJ()` Checks a memory address to assert that it is
283283
a valid kernel object of the expected type, that the calling thread
284284
has permissions on it, and that the object is initialized.
285285

286-
* :c:macro:`Z_SYSCALL_OBJ_INIT()` is the same as
287-
:c:macro:`Z_SYSCALL_OBJ()`, except that the provided object may be
286+
* :c:macro:`K_SYSCALL_OBJ_INIT()` is the same as
287+
:c:macro:`K_SYSCALL_OBJ()`, except that the provided object may be
288288
uninitialized. This is useful for verifiers of object init functions.
289289

290-
* :c:macro:`Z_SYSCALL_OBJ_NEVER_INIT()` is the same as
291-
:c:macro:`Z_SYSCALL_OBJ()`, except that the provided object must be
290+
* :c:macro:`K_SYSCALL_OBJ_NEVER_INIT()` is the same as
291+
:c:macro:`K_SYSCALL_OBJ()`, except that the provided object must be
292292
uninitialized. This is not used very often, currently only for
293293
:c:func:`k_thread_create()`.
294294

295-
* :c:macro:`Z_SYSCALL_MEMORY_READ()` validates a memory buffer of a particular
295+
* :c:macro:`K_SYSCALL_MEMORY_READ()` validates a memory buffer of a particular
296296
size. The calling thread must have read permissions on the entire buffer.
297297

298-
* :c:macro:`Z_SYSCALL_MEMORY_WRITE()` is the same as
299-
:c:macro:`Z_SYSCALL_MEMORY_READ()` but the calling thread must additionally
298+
* :c:macro:`K_SYSCALL_MEMORY_WRITE()` is the same as
299+
:c:macro:`K_SYSCALL_MEMORY_READ()` but the calling thread must additionally
300300
have write permissions.
301301

302302
* :c:macro:`K_SYSCALL_MEMORY_ARRAY_READ()` validates an array whose total size
@@ -315,14 +315,14 @@ Several macros exist to validate arguments:
315315
a message parameter, instead printing the expression tested if it
316316
fails. The latter should only be used for the most obvious of tests.
317317

318-
* :c:macro:`Z_SYSCALL_DRIVER_OP()` checks at runtime if a driver
318+
* :c:macro:`K_SYSCALL_DRIVER_OP()` checks at runtime if a driver
319319
instance is capable of performing a particular operation. While this
320320
macro can be used by itself, it's mostly a building block for macros
321321
that are automatically generated for every driver subsystem. For
322322
instance, to validate the GPIO driver, one could use the
323323
:c:macro:`Z_SYSCALL_DRIVER_GPIO()` macro.
324324

325-
* :c:macro:`Z_SYSCALL_SPECIFIC_DRIVER()` is a runtime check to verify that
325+
* :c:macro:`K_SYSCALL_SPECIFIC_DRIVER()` is a runtime check to verify that
326326
a provided pointer is a valid instance of a specific device driver, that
327327
the calling thread has permissions on it, and that the driver has been
328328
initialized. It does this by checking the API structure pointer that
@@ -357,7 +357,7 @@ For example:
357357
358358
static int z_vrfy_k_sem_take(struct k_sem *sem, int32_t timeout)
359359
{
360-
Z_OOPS(Z_SYSCALL_OBJ(sem, K_OBJ_SEM));
360+
Z_OOPS(K_SYSCALL_OBJ(sem, K_OBJ_SEM));
361361
return z_impl_k_sem_take(sem, timeout);
362362
}
363363
#include <syscalls/k_sem_take_mrsh.c>
@@ -411,7 +411,7 @@ It might be tempting to do something more concise:
411411
412412
int z_vrfy_some_syscall(int *out_param)
413413
{
414-
Z_OOPS(Z_SYSCALL_MEMORY_WRITE(out_param, sizeof(*out_param)));
414+
Z_OOPS(K_SYSCALL_MEMORY_WRITE(out_param, sizeof(*out_param)));
415415
return z_impl_some_syscall(out_param);
416416
}
417417
@@ -528,7 +528,7 @@ should never be used to verify if resource allocation has been successful.
528528
Finally, we must consider large data buffers. These represent areas of user
529529
memory which either have data copied out of, or copied into. It is permitted
530530
to pass these pointers to the implementation function directly. The caller's
531-
access to the buffer still must be validated with ``Z_SYSCALL_MEMORY`` APIs.
531+
access to the buffer still must be validated with ``K_SYSCALL_MEMORY`` APIs.
532532
The following constraints need to be met:
533533

534534
* If the buffer is used by the implementation function to write data, such
@@ -549,7 +549,7 @@ The following constraints need to be met:
549549
550550
int z_vrfy_get_data_from_kernel(void *buf, size_t size)
551551
{
552-
Z_OOPS(Z_SYSCALL_MEMORY_WRITE(buf, size));
552+
Z_OOPS(K_SYSCALL_MEMORY_WRITE(buf, size));
553553
return z_impl_get_data_from_kernel(buf, size);
554554
}
555555
@@ -565,14 +565,14 @@ conventions are as follows:
565565
missing system calls are routed to :c:func:`handler_no_syscall()` which
566566
invokes :c:macro:`Z_OOPS()`.
567567

568-
#. Any invalid access to memory found by the set of ``Z_SYSCALL_MEMORY`` APIs,
568+
#. Any invalid access to memory found by the set of ``K_SYSCALL_MEMORY`` APIs,
569569
:c:func:`k_usermode_from_copy()`, :c:func:`k_usermode_to_copy()`
570570
should trigger a :c:macro:`Z_OOPS`. This happens when the caller doesn't have
571571
appropriate permissions on the memory buffer or some size calculation
572572
overflowed.
573573

574574
#. Most system calls take kernel object pointers as an argument, checked either
575-
with one of the ``Z_SYSCALL_OBJ`` functions, ``Z_SYSCALL_DRIVER_nnnnn``, or
575+
with one of the ``K_SYSCALL_OBJ`` functions, ``Z_SYSCALL_DRIVER_nnnnn``, or
576576
manually using :c:func:`k_object_validate()`. These can fail for a variety
577577
of reasons: missing driver API, bad kernel object pointer, wrong kernel
578578
object type, or improper initialization state. These issues should always
@@ -632,12 +632,12 @@ APIs
632632
Helper macros for creating system call verification functions are provided in
633633
:zephyr_file:`include/zephyr/internal/syscall_handler.h`:
634634

635-
* :c:macro:`Z_SYSCALL_OBJ()`
636-
* :c:macro:`Z_SYSCALL_OBJ_INIT()`
637-
* :c:macro:`Z_SYSCALL_OBJ_NEVER_INIT()`
635+
* :c:macro:`K_SYSCALL_OBJ()`
636+
* :c:macro:`K_SYSCALL_OBJ_INIT()`
637+
* :c:macro:`K_SYSCALL_OBJ_NEVER_INIT()`
638638
* :c:macro:`Z_OOPS()`
639-
* :c:macro:`Z_SYSCALL_MEMORY_READ()`
640-
* :c:macro:`Z_SYSCALL_MEMORY_WRITE()`
639+
* :c:macro:`K_SYSCALL_MEMORY_READ()`
640+
* :c:macro:`K_SYSCALL_MEMORY_WRITE()`
641641
* :c:macro:`K_SYSCALL_MEMORY_ARRAY_READ()`
642642
* :c:macro:`K_SYSCALL_MEMORY_ARRAY_WRITE()`
643643
* :c:macro:`K_SYSCALL_VERIFY_MSG()`

drivers/adc/adc_handlers.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ static bool copy_sequence(struct adc_sequence *dst,
4141
dst->options = options;
4242
}
4343

44-
if (Z_SYSCALL_MEMORY_WRITE(dst->buffer, dst->buffer_size) != 0) {
44+
if (K_SYSCALL_MEMORY_WRITE(dst->buffer, dst->buffer_size) != 0) {
4545
printk("no access to buffer memory\n");
4646
return false;
4747
}
@@ -84,7 +84,7 @@ static inline int z_vrfy_adc_read_async(const struct device *dev,
8484
Z_OOPS(K_SYSCALL_VERIFY_MSG(sequence.options->callback == NULL,
8585
"ADC sequence callbacks forbidden from user mode"));
8686
}
87-
Z_OOPS(Z_SYSCALL_OBJ(async, K_OBJ_POLL_SIGNAL));
87+
Z_OOPS(K_SYSCALL_OBJ(async, K_OBJ_POLL_SIGNAL));
8888

8989
return z_impl_adc_read_async((const struct device *)dev, &sequence,
9090
(struct k_poll_signal *)async);

drivers/auxdisplay/auxdisplay_handlers.c

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,37 +9,37 @@
99

1010
static inline int z_vrfy_auxdisplay_display_on(const struct device *dev)
1111
{
12-
Z_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
12+
Z_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
1313
return z_impl_auxdisplay_display_on(dev);
1414
}
1515
#include <syscalls/auxdisplay_display_on_mrsh.c>
1616

1717
static inline int z_vrfy_auxdisplay_display_off(const struct device *dev)
1818
{
19-
Z_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
19+
Z_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
2020
return z_impl_auxdisplay_display_off(dev);
2121
}
2222
#include <syscalls/auxdisplay_display_off_mrsh.c>
2323

2424
static inline int z_vrfy_auxdisplay_cursor_set_enabled(const struct device *dev, bool enabled)
2525
{
26-
Z_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
26+
Z_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
2727
return z_impl_auxdisplay_cursor_set_enabled(dev, enabled);
2828
}
2929
#include <syscalls/auxdisplay_cursor_set_enabled_mrsh.c>
3030

3131
static inline int z_vrfy_auxdisplay_position_blinking_set_enabled(const struct device *dev,
3232
bool enabled)
3333
{
34-
Z_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
34+
Z_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
3535
return z_impl_auxdisplay_position_blinking_set_enabled(dev, enabled);
3636
}
3737
#include <syscalls/auxdisplay_position_blinking_set_enabled_mrsh.c>
3838

3939
static inline int z_vrfy_auxdisplay_cursor_shift_set(const struct device *dev, uint8_t direction,
4040
bool display_shift)
4141
{
42-
Z_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
42+
Z_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
4343
return z_impl_auxdisplay_cursor_shift_set(dev, direction, display_shift);
4444
}
4545
#include <syscalls/auxdisplay_cursor_shift_set_mrsh.c>
@@ -48,15 +48,15 @@ static inline int z_vrfy_auxdisplay_cursor_position_set(const struct device *dev
4848
enum auxdisplay_position type,
4949
int16_t x, int16_t y)
5050
{
51-
Z_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
51+
Z_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
5252
return z_impl_auxdisplay_cursor_position_set(dev, type, x, y);
5353
}
5454
#include <syscalls/auxdisplay_cursor_position_set_mrsh.c>
5555

5656
static inline int z_vrfy_auxdisplay_cursor_position_get(const struct device *dev, int16_t *x,
5757
int16_t *y)
5858
{
59-
Z_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
59+
Z_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
6060
return z_impl_auxdisplay_cursor_position_get(dev, x, y);
6161
}
6262
#include <syscalls/auxdisplay_cursor_position_get_mrsh.c>
@@ -65,93 +65,93 @@ static inline int z_vrfy_auxdisplay_display_position_set(const struct device *de
6565
enum auxdisplay_position type,
6666
int16_t x, int16_t y)
6767
{
68-
Z_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
68+
Z_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
6969
return z_impl_auxdisplay_display_position_set(dev, type, x, y);
7070
}
7171
#include <syscalls/auxdisplay_display_position_set_mrsh.c>
7272

7373
static inline int z_vrfy_auxdisplay_display_position_get(const struct device *dev, int16_t *x,
7474
int16_t *y)
7575
{
76-
Z_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
76+
Z_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
7777
return z_impl_auxdisplay_display_position_get(dev, x, y);
7878
}
7979
#include <syscalls/auxdisplay_display_position_get_mrsh.c>
8080

8181
static inline int z_vrfy_auxdisplay_capabilities_get(const struct device *dev,
8282
struct auxdisplay_capabilities *capabilities)
8383
{
84-
Z_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
84+
Z_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
8585
return z_impl_auxdisplay_capabilities_get(dev, capabilities);
8686
}
8787
#include <syscalls/auxdisplay_capabilities_get_mrsh.c>
8888

8989
static inline int z_vrfy_auxdisplay_clear(const struct device *dev)
9090
{
91-
Z_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
91+
Z_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
9292
return z_impl_auxdisplay_clear(dev);
9393
}
9494
#include <syscalls/auxdisplay_clear_mrsh.c>
9595

9696
static inline int z_vrfy_auxdisplay_brightness_get(const struct device *dev,
9797
uint8_t *brightness)
9898
{
99-
Z_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
99+
Z_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
100100
return z_impl_auxdisplay_brightness_get(dev, brightness);
101101
}
102102
#include <syscalls/auxdisplay_brightness_get_mrsh.c>
103103

104104
static inline int z_vrfy_auxdisplay_brightness_set(const struct device *dev,
105105
uint8_t brightness)
106106
{
107-
Z_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
107+
Z_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
108108
return z_impl_auxdisplay_brightness_set(dev, brightness);
109109
}
110110
#include <syscalls/auxdisplay_brightness_set_mrsh.c>
111111

112112
static inline int z_vrfy_auxdisplay_backlight_get(const struct device *dev,
113113
uint8_t *backlight)
114114
{
115-
Z_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
115+
Z_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
116116
return z_impl_auxdisplay_backlight_get(dev, backlight);
117117
}
118118
#include <syscalls/auxdisplay_backlight_get_mrsh.c>
119119

120120
static inline int z_vrfy_auxdisplay_backlight_set(const struct device *dev,
121121
uint8_t backlight)
122122
{
123-
Z_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
123+
Z_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
124124
return z_impl_auxdisplay_backlight_set(dev, backlight);
125125
}
126126
#include <syscalls/auxdisplay_backlight_set_mrsh.c>
127127

128128
static inline int z_vrfy_auxdisplay_is_busy(const struct device *dev)
129129
{
130-
Z_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
130+
Z_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
131131
return z_impl_auxdisplay_is_busy(dev);
132132
}
133133
#include <syscalls/auxdisplay_is_busy_mrsh.c>
134134

135135
static inline int z_vrfy_auxdisplay_custom_character_set(const struct device *dev,
136136
struct auxdisplay_character *character)
137137
{
138-
Z_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
138+
Z_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
139139
return z_impl_auxdisplay_custom_character_set(dev, character);
140140
}
141141
#include <syscalls/auxdisplay_custom_character_set_mrsh.c>
142142

143143
static inline int z_vrfy_auxdisplay_write(const struct device *dev, const uint8_t *data,
144144
uint16_t len)
145145
{
146-
Z_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
146+
Z_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
147147
return z_impl_auxdisplay_write(dev, data, len);
148148
}
149149
#include <syscalls/auxdisplay_write_mrsh.c>
150150

151151
static inline int z_vrfy_auxdisplay_custom_command(const struct device *dev,
152152
struct auxdisplay_custom_data *data)
153153
{
154-
Z_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
154+
Z_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
155155
return z_impl_auxdisplay_custom_command(dev, data);
156156
}
157157
#include <syscalls/auxdisplay_custom_command_mrsh.c>

drivers/bbram/bbram_handlers.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,47 +9,47 @@
99

1010
static inline int z_vrfy_bbram_check_invalid(const struct device *dev)
1111
{
12-
Z_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_BBRAM));
12+
Z_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_BBRAM));
1313
return z_impl_bbram_check_invalid(dev);
1414
}
1515
#include <syscalls/bbram_check_invalid_mrsh.c>
1616

1717
static inline int z_vrfy_bbram_check_standby_power(const struct device *dev)
1818
{
19-
Z_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_BBRAM));
19+
Z_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_BBRAM));
2020
return z_impl_bbram_check_standby_power(dev);
2121
}
2222
#include <syscalls/bbram_check_standby_power_mrsh.c>
2323

2424
static inline int z_vrfy_bbram_check_power(const struct device *dev)
2525
{
26-
Z_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_BBRAM));
26+
Z_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_BBRAM));
2727
return z_impl_bbram_check_power(dev);
2828
}
2929
#include <syscalls/bbram_check_power_mrsh.c>
3030

3131
static inline int z_vrfy_bbram_get_size(const struct device *dev, size_t *size)
3232
{
33-
Z_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_BBRAM));
34-
Z_OOPS(Z_SYSCALL_MEMORY_WRITE(size, sizeof(size_t)));
33+
Z_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_BBRAM));
34+
Z_OOPS(K_SYSCALL_MEMORY_WRITE(size, sizeof(size_t)));
3535
return z_impl_bbram_get_size(dev, size);
3636
}
3737
#include <syscalls/bbram_get_size_mrsh.c>
3838

3939
static inline int z_vrfy_bbram_read(const struct device *dev, size_t offset,
4040
size_t size, uint8_t *data)
4141
{
42-
Z_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_BBRAM));
43-
Z_OOPS(Z_SYSCALL_MEMORY_WRITE(data, size));
42+
Z_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_BBRAM));
43+
Z_OOPS(K_SYSCALL_MEMORY_WRITE(data, size));
4444
return z_impl_bbram_read(dev, offset, size, data);
4545
}
4646
#include <syscalls/bbram_read_mrsh.c>
4747

4848
static inline int z_vrfy_bbram_write(const struct device *dev, size_t offset,
4949
size_t size, const uint8_t *data)
5050
{
51-
Z_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_BBRAM));
52-
Z_OOPS(Z_SYSCALL_MEMORY_READ(data, size));
51+
Z_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_BBRAM));
52+
Z_OOPS(K_SYSCALL_MEMORY_READ(data, size));
5353
return z_impl_bbram_write(dev, offset, size, data);
5454
}
5555
#include <syscalls/bbram_write_mrsh.c>

drivers/cache/cache_handlers.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,23 @@
99

1010
static inline int z_vrfy_sys_cache_data_flush_range(void *addr, size_t size)
1111
{
12-
Z_OOPS(Z_SYSCALL_MEMORY_WRITE(addr, size));
12+
Z_OOPS(K_SYSCALL_MEMORY_WRITE(addr, size));
1313

1414
return z_impl_sys_cache_data_flush_range(addr, size);
1515
}
1616
#include <syscalls/sys_cache_data_flush_range_mrsh.c>
1717

1818
static inline int z_vrfy_sys_cache_data_invd_range(void *addr, size_t size)
1919
{
20-
Z_OOPS(Z_SYSCALL_MEMORY_WRITE(addr, size));
20+
Z_OOPS(K_SYSCALL_MEMORY_WRITE(addr, size));
2121

2222
return z_impl_sys_cache_data_invd_range(addr, size);
2323
}
2424
#include <syscalls/sys_cache_data_invd_range_mrsh.c>
2525

2626
static inline int z_vrfy_sys_cache_data_flush_and_invd_range(void *addr, size_t size)
2727
{
28-
Z_OOPS(Z_SYSCALL_MEMORY_WRITE(addr, size));
28+
Z_OOPS(K_SYSCALL_MEMORY_WRITE(addr, size));
2929

3030
return z_impl_sys_cache_data_flush_and_invd_range(addr, size);
3131
}

0 commit comments

Comments
 (0)