Skip to content
This repository was archived by the owner on Dec 23, 2025. It is now read-only.
This repository was archived by the owner on Dec 23, 2025. It is now read-only.

lowlevel-68000.S __hard_irqrestore restores wrong Status Register value #1194

Description

@vinz6751

https://github.com/EtchedPixels/FUZIX/blob/master/Kernel/cpu-68000/lowlevel-68000.S

__hard_irqrestore is restoring the sr from 6(sp) , but I believe it should be 4(sp) since the function is defined as __hard_irqrestore(irqflags_t f), so irqflags_t is immediately after the 4-byte return address on the stack.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions