kern: SvcSetHardwareBreakPoint

This commit is contained in:
Michael Scire 2020-07-30 21:41:28 -07:00 committed by SciresM
parent b143f1e05f
commit b88e09de5b
4 changed files with 199 additions and 2 deletions

View file

@ -241,6 +241,10 @@ namespace ams::kern::arch::arm64::cpu {
constexpr ALWAYS_INLINE size_t GetNumBreakpoints() const {
return this->GetBits(12, 4);
}
constexpr ALWAYS_INLINE size_t GetNumContextAwareBreakpoints() const {
return this->GetBits(28, 4);
}
};
MESOSPHERE_CPU_SYSREG_ACCESSOR_CLASS(MonitorDebugSystemControl) {

View file

@ -34,6 +34,8 @@ namespace ams::kern::arch::arm64 {
virtual ~KDebug() { /* ... */ }
static void PostDestroy(uintptr_t arg) { /* ... */ }
public:
static Result SetHardwareBreakPoint(ams::svc::HardwareBreakPointRegisterName name, u64 flags, u64 value);
/* TODO: This is a placeholder definition. */
};