all: Update reserved function names
Update reserved function names starting with one underscore, replacing them as follows: '_k_' with 'z_' '_K_' with 'Z_' '_handler_' with 'z_handl_' '_Cstart' with 'z_cstart' '_Swap' with 'z_swap' This renaming is done on both global and those static function names in kernel/include and include/. Other static function names in kernel/ are renamed by removing the leading underscore. Other function names not starting with any prefix listed above are renamed starting with a 'z_' or 'Z_' prefix. Function names starting with two or three leading underscores are not automatcally renamed since these names will collide with the variants with two or three leading underscores. Various generator scripts have also been updated as well as perf, linker and usb files. These are drivers/serial/uart_handlers.c include/linker/kobject-text.ld kernel/include/syscall_handler.h scripts/gen_kobject_list.py scripts/gen_syscall_header.py Signed-off-by: Patrik Flykt <patrik.flykt@intel.com>
This commit is contained in:
parent
cf2d57952e
commit
4344e27c26
324 changed files with 2264 additions and 2263 deletions
|
@ -10,13 +10,13 @@
|
|||
#define UART_SIMPLE(op_) \
|
||||
Z_SYSCALL_HANDLER(uart_ ## op_, dev) { \
|
||||
Z_OOPS(Z_SYSCALL_DRIVER_UART(dev, op_)); \
|
||||
return _impl_uart_ ## op_((struct device *)dev); \
|
||||
return z_impl_uart_ ## op_((struct device *)dev); \
|
||||
}
|
||||
|
||||
#define UART_SIMPLE_VOID(op_) \
|
||||
Z_SYSCALL_HANDLER(uart_ ## op_, dev) { \
|
||||
Z_OOPS(Z_SYSCALL_DRIVER_UART(dev, op_)); \
|
||||
_impl_uart_ ## op_((struct device *)dev); \
|
||||
z_impl_uart_ ## op_((struct device *)dev); \
|
||||
return 0; \
|
||||
}
|
||||
|
||||
|
@ -26,14 +26,14 @@ Z_SYSCALL_HANDLER(uart_poll_in, dev, p_char)
|
|||
{
|
||||
Z_OOPS(Z_SYSCALL_DRIVER_UART(dev, poll_in));
|
||||
Z_OOPS(Z_SYSCALL_MEMORY_WRITE(p_char, sizeof(unsigned char)));
|
||||
return _impl_uart_poll_in((struct device *)dev,
|
||||
return z_impl_uart_poll_in((struct device *)dev,
|
||||
(unsigned char *)p_char);
|
||||
}
|
||||
|
||||
Z_SYSCALL_HANDLER(uart_poll_out, dev, out_char)
|
||||
{
|
||||
Z_OOPS(Z_SYSCALL_DRIVER_UART(dev, poll_out));
|
||||
_impl_uart_poll_out((struct device *)dev, out_char);
|
||||
z_impl_uart_poll_out((struct device *)dev, out_char);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -53,14 +53,14 @@ UART_SIMPLE(irq_update)
|
|||
Z_SYSCALL_HANDLER(uart_line_ctrl_set, dev, ctrl, val)
|
||||
{
|
||||
Z_OOPS(Z_SYSCALL_DRIVER_UART(dev, line_ctrl_set));
|
||||
return _impl_uart_line_ctrl_set((struct device *)dev, ctrl, val);
|
||||
return z_impl_uart_line_ctrl_set((struct device *)dev, ctrl, val);
|
||||
}
|
||||
|
||||
Z_SYSCALL_HANDLER(uart_line_ctrl_get, dev, ctrl, val)
|
||||
{
|
||||
Z_OOPS(Z_SYSCALL_DRIVER_UART(dev, line_ctrl_get));
|
||||
Z_OOPS(Z_SYSCALL_MEMORY_WRITE(val, sizeof(u32_t)));
|
||||
return _impl_uart_line_ctrl_get((struct device *)dev, ctrl,
|
||||
return z_impl_uart_line_ctrl_get((struct device *)dev, ctrl,
|
||||
(u32_t *)val);
|
||||
}
|
||||
#endif /* CONFIG_UART_LINE_CTRL */
|
||||
|
@ -69,6 +69,6 @@ Z_SYSCALL_HANDLER(uart_line_ctrl_get, dev, ctrl, val)
|
|||
Z_SYSCALL_HANDLER(uart_drv_cmd, dev, cmd, p)
|
||||
{
|
||||
Z_OOPS(Z_SYSCALL_DRIVER_UART(dev, drv_cmd));
|
||||
return _impl_uart_drv_cmd((struct device *)dev, cmd, p);
|
||||
return z_impl_uart_drv_cmd((struct device *)dev, cmd, p);
|
||||
}
|
||||
#endif /* CONFIG_UART_DRV_CMD */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue