diff options
author | David Crocker <dcrocker@eschertech.com> | 2021-04-02 13:46:24 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2021-04-02 13:46:24 +0300 |
commit | 52afd5e7f34200a7ae9d3d9b56e95acc5300c6d0 (patch) | |
tree | d57d39053510c8ea26e23b4e3bc1c5cabbf70141 /src/Storage/FileStore.cpp | |
parent | a38e510ce9bd34bce7fab6923297cb11b0e161a7 (diff) |
Use new interrupt enable/disable functions in CoreN2G
Diffstat (limited to 'src/Storage/FileStore.cpp')
-rw-r--r-- | src/Storage/FileStore.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/Storage/FileStore.cpp b/src/Storage/FileStore.cpp index d6eaff2e..cc82d483 100644 --- a/src/Storage/FileStore.cpp +++ b/src/Storage/FileStore.cpp @@ -170,22 +170,22 @@ bool FileStore::Close() noexcept case FileUseMode::readOnly: case FileUseMode::readWrite: { - const irqflags_t flags = cpu_irq_save(); + const irqflags_t flags = IrqSave(); if (openCount > 1) { --openCount; - cpu_irq_restore(flags); + IrqRestore(flags); return true; } else if (inInterrupt()) { closeRequested = true; - cpu_irq_restore(flags); + IrqRestore(flags); return true; } else { - cpu_irq_restore(flags); + IrqRestore(flags); return ForceClose(); } } @@ -193,7 +193,7 @@ bool FileStore::Close() noexcept case FileUseMode::invalidated: default: { - const irqflags_t flags = cpu_irq_save(); + const irqflags_t flags = IrqSave(); if (openCount > 1) { --openCount; @@ -202,7 +202,7 @@ bool FileStore::Close() noexcept { usageMode = FileUseMode::free; } - cpu_irq_restore(flags); + IrqRestore(flags); return true; } } @@ -422,9 +422,9 @@ void FileStore::Duplicate() noexcept case FileUseMode::readOnly: case FileUseMode::readWrite: { - const irqflags_t flags = cpu_irq_save(); + const irqflags_t flags = IrqSave(); ++openCount; - cpu_irq_restore(flags); + IrqRestore(flags); } break; |