Changeset e292beba in rtems


Ignore:
Timestamp:
Nov 7, 2018, 9:47:48 AM (5 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
2faea99
Parents:
d1f7204
git-author:
Sebastian Huber <sebastian.huber@…> (11/07/18 09:47:48)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/07/18 10:09:51)
Message:

termios: Move default lock functions

Move rtems_termios_device_lock_acquire_default() and
rtems_termios_device_lock_release_default() to a file separate from the
general Termios support. This avoids complex dependencies in printk()
only scenarios.

Location:
cpukit/libcsupport/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/src/termios.c

    rd1f7204 re292beba  
    343343{
    344344  rtems_mutex_unlock (&ctx->lock.mutex);
    345 }
    346 
    347 void
    348 rtems_termios_device_lock_acquire_default(
    349   rtems_termios_device_context *ctx,
    350   rtems_interrupt_lock_context *lock_context
    351 )
    352 {
    353   rtems_interrupt_lock_acquire (&ctx->lock.interrupt, lock_context);
    354 }
    355 
    356 void
    357 rtems_termios_device_lock_release_default(
    358   rtems_termios_device_context *ctx,
    359   rtems_interrupt_lock_context *lock_context
    360 )
    361 {
    362   rtems_interrupt_lock_release (&ctx->lock.interrupt, lock_context);
    363345}
    364346
  • cpukit/libcsupport/src/termiosinitialize.c

    rd1f7204 re292beba  
    2626
    2727rtems_mutex rtems_termios_ttyMutex = RTEMS_MUTEX_INITIALIZER( "termios" );
     28
     29void
     30rtems_termios_device_lock_acquire_default(
     31  rtems_termios_device_context *ctx,
     32  rtems_interrupt_lock_context *lock_context
     33)
     34{
     35  rtems_interrupt_lock_acquire (&ctx->lock.interrupt, lock_context);
     36}
     37
     38void
     39rtems_termios_device_lock_release_default(
     40  rtems_termios_device_context *ctx,
     41  rtems_interrupt_lock_context *lock_context
     42)
     43{
     44  rtems_interrupt_lock_release (&ctx->lock.interrupt, lock_context);
     45}
Note: See TracChangeset for help on using the changeset viewer.