Skip to content

[WIP] Add a new Deadline Param for STOS - #12

Open
lgnashold wants to merge 3 commits into
hudson-ayers:masterfrom
lgnashold:add-syscall-param
Open

lgnashold wants to merge 3 commits into
hudson-ayers:masterfrom
lgnashold:add-syscall-param

Conversation

@lgnashold

Copy link
Copy Markdown

Pull Request Overview

Adds a new system call parameter using R4, to hold the deadline.

Testing Strategy

TBA

TODO or Help Wanted

TBA

Documentation Updated

  • [X ] Updated the relevant files in /docs, or no updates are required.

Formatting

  • [X ] Ran make prepush.

@hudson-ayers hudson-ayers left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The basic changes look right -- though you will also have to make changes to libtock-c for this to work. I have a couple comments.

Once you make the changes to libtock-c and start testing you may find you need to look carefully at all inline asm at the syscall bounary to ensure r4 is being saved/clobbered as needed

@@ -35,7 +35,7 @@ extern "C" {
}

// Space for 8 u32s: r0-r3, r12, lr, pc, and xPSR

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why add 8 bytes? Shouldn't this just be one more u32, so 4 bytes? It would be good to also edit the comment above this

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, apparently I can't do math.

Comment thread kernel/src/syscall.rs
subdriver_number: usize,
arg0: usize,
arg1: usize,
deadline: usize,

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we want to add deadlines to every system call, not just command

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants