Changeset 370 for trunk


Ignore:
Timestamp:
Aug 14, 2017, 12:58:19 PM (7 years ago)
Author:
max@…
Message:

Old can be NULL.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/x86_64/core/hal_irqmask.c

    r336 r370  
    2828        tls_t *tls = curtls();
    2929
    30         *old = tls->tls_intr;
     30        if (old)
     31                *old = tls->tls_intr;
    3132        tls->tls_intr = INTRS_DISABLED;
    3233
     
    3839        tls_t *tls = curtls();
    3940
    40         *old = tls->tls_intr;
     41        if (old)
     42                *old = tls->tls_intr;
    4143        tls->tls_intr = INTRS_ENABLED;
    4244
Note: See TracChangeset for help on using the changeset viewer.