Skip to content

Conversation

@unknownbrackets
Copy link
Collaborator

This just moves to using a flag so we know if we're in a kernel func or not, and logs a K in standard syscall logging.

If we did want to implement more kernel mode calls (e.g. for plugins or kernel-mode homebrew), this would make it more straight-forward to do so, too.

-[Unknown]

@hrydgard hrydgard merged commit a0a4d3c into hrydgard:master Aug 4, 2016
@unknownbrackets unknownbrackets deleted the kernel-hle branch August 4, 2016 17:22
@sum2012
Copy link
Collaborator

sum2012 commented Aug 4, 2016

Thanks, it move torwards to #7965

HLE_CLEAR_STACK_BYTES = 1 << 10
HLE_CLEAR_STACK_BYTES = 1 << 10,
// Indicates that this call operates in kernel mode.
HLE_KERNEL_SYSCALL = 1 < 11,
Copy link
Contributor

Choose a reason for hiding this comment

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

this was supposed to be so ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, this is the next bit up in the flag. 9, 10, 11.

Basically this is here because sceKernelCreateThread (and many other syscalls) has slightly different behavior when called through ThreadManForKernel, but not really different enough to justify creating an entirely separate function. Also, we could centrally check that the calling thread is in kernel mode for all applicable syscalls (we're not doing either yet, though.)

-[Unknown]

Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't be 1<<11 ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oh, I didn't see that, yes.

-[Unknown]

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants