Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement user / superuser mode #18

Open
snim2 opened this issue Jun 4, 2016 · 1 comment
Open

Implement user / superuser mode #18

snim2 opened this issue Jun 4, 2016 · 1 comment

Comments

@snim2
Copy link
Member

snim2 commented Jun 4, 2016

https://parallella.org/forums/viewtopic.php?f=23&t=818&hilit=interrupt

@snim2 snim2 added this to the v0.1 milestone Jun 5, 2016
@snim2
Copy link
Member Author

snim2 commented Jun 26, 2016

From http://blog.alexrp.com/epiphany-notes/ :

User/Superuser Mode

Bit 2 of the STATUS register is documented as reserved, but actually means user/superuser mode, where it being cleared means user mode. This bit only has significance if (the documented as reserved) bit 25 of the CONFIG register is on, which tells the core to use user/superuser mode at all.

When user/superuser mode is in effect, an interrupt sets bit 2 of STATUS, and an RTI instruction unsets it. Among other things, when user/superuser mode is in effect, user mode is not allowed to issue GIE, GID, and RTI, and is not allowed to access system registers.

@snim2 snim2 self-assigned this Jun 27, 2016
@snim2 snim2 modified the milestones: v0.1, v1.0 Aug 5, 2016
@snim2 snim2 changed the title Implement kernel mode Implement user / superuser mode Aug 11, 2016
@snim2 snim2 removed their assignment Aug 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant