← Latest papers
💻 computer science

Resolving Conflicts Between RTOS Timekeeping and Uninterruptable Trusted Computing

This paper resolves the conflict between real-time operating system timekeeping and atomic trusted computing services on low-power microcontrollers by introducing a Secure-driven synchronization mechanism that compensates for missed interrupts without modifying the RTOS or incurring significant runtime overhead.

Original authors: Antonio Joia Neto, Amarin Amarin, Norrathep Rattanavipanon, Ivan De Oliveira Nunes

Published 2026-04-28
📖 4 min read☕ Coffee break read

Original authors: Antonio Joia Neto, Amarin Amarin, Norrathep Rattanavipanon, Ivan De Oliveira Nunes

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine a high-security bank vault (the Secure World) and a busy, bustling office next door (the Non-Secure World).

In this office, there is a very important clock on the wall that ticks every 10 milliseconds. This clock is the heartbeat of the office. It tells the workers when to start a task, when to take a break, and when to stop a machine. This is how RTOS (Real-Time Operating Systems) work on tiny computer chips in devices like smart home gadgets or medical equipment.

The Problem: The "Uninterruptible" Vault

Now, imagine the bank vault needs to perform a critical, secret operation—like changing the combination lock or verifying a signature. To ensure no one can sneak in and tamper with the process, the vault manager locks the doors and turns off the intercom system for the entire duration of the job.

In computer terms, this is called atomic execution. The Secure World disables all interrupts (including the office clock's signal) to protect its secrets.

Here is the conflict:
While the vault is locked down and the intercom is off, the office clock keeps ticking in the real world, but the office workers don't hear it.

  • If the vault job takes a long time, the clock might tick 100 times while the workers are deaf to it.
  • When the vault finally opens and the intercom turns back on, the clock hardware only remembers one missed tick. It says, "Okay, here is one tick!" and moves on.
  • The other 99 ticks are lost forever.

The office workers now think only 10 milliseconds have passed, but in reality, 1,000 milliseconds have gone by. Their internal schedule is now completely out of sync with reality. If they are controlling a robot arm or a car brake, this "time drift" could cause them to move too late or too fast, leading to accidents.

The Paper's Solution: The "Secret Timekeeper"

The authors of this paper realized that simply waiting for the office to catch up doesn't work because the clock hardware can't remember all the missed ticks.

They proposed a clever workaround: The Vault Manager becomes the Office Timekeeper.

Here is how their system works:

  1. Before the Vault Locks: The office clock's signal is rerouted. Instead of going to the office workers, it goes directly to the Vault Manager.
  2. During the Lockdown: Even though the office workers are silent, the Vault Manager is listening to the clock. Every time the clock ticks, the Manager counts it.
    • Analogy: Imagine the Manager has a notepad. Every time the clock ticks, they write down "1, 2, 3..." on the pad.
  3. After the Vault Opens: Once the secret job is done, the Manager hands the notepad back to the office.
    • Instead of just saying "Here is one tick," the Manager says, "I counted 100 ticks while you were busy. Here is the updated schedule for all 100 of them."
  4. The Result: The office workers instantly update their internal clocks, release any tasks that were supposed to start during the delay, and get back on track.

Why This is Special

The paper highlights three main achievements:

  • No Construction Needed: They didn't have to rebuild the office (the operating system) or install new clocks (hardware). They just changed who listens to the clock during the vault job.
  • It's Invisible: The office workers (the applications) don't know the vault was ever closed. They just see that time passed correctly.
  • It Works for Real Machines: The authors tested this on actual hardware (like the Raspberry Pi Pico 2 and STM32 chips) and even simulated a motor controller. They showed that without this fix, the motor would drift and lose control, but with the fix, it runs perfectly smooth.

The Bottom Line

In a world where tiny computers need to be both super secure (locking down to protect secrets) and super fast (keeping perfect time for real-time tasks), these two goals usually fight each other.

This paper provides a "translator" that lets the secure world count the time for the insecure world while it's busy, ensuring that when the secure job is done, the rest of the system knows exactly what time it is and can keep working safely.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →