Skip to content

Implement KRF_SAFE_WRITE for FreeBSD #24

@woodruffw

Description

@woodruffw

KRF_SAFE_WRITE is currently a no-op on FreeBSD:

#define KRF_SAFE_WRITE(x) x // ???

We should check whether FreeBSD provides cr0 manipulation functions/macros. If it doesn't, then we should add our own like the ones used in this blog post (under "Disabling CPU write protection").

ccing @roachspray as a source of expertise about write protection/safe locking in FreeBSD.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions