This commit is contained in:
nakst 2021-09-11 19:02:30 +01:00
parent f140770dac
commit 98cb1c0400
4 changed files with 5 additions and 6 deletions

View File

@ -80,8 +80,8 @@ ProcessorCheckStackAlignment:
jne $ jne $
ret ret
[global ProcessorRBPRead] [global ProcessorGetRBP]
ProcessorRBPRead: ProcessorGetRBP:
mov rax,rbp mov rax,rbp
ret ret

View File

@ -557,7 +557,7 @@ void SettingsPageDisplay(EsElement *element, SettingsPage *page) {
} }
void SettingsPageTheme(EsElement *element, SettingsPage *page) { void SettingsPageTheme(EsElement *element, SettingsPage *page) {
// TODO. // TODO Fonts, theme file, etc.
EsElementSetHidden(((SettingsInstance *) element->instance)->undoButton, false); EsElementSetHidden(((SettingsInstance *) element->instance)->undoButton, false);

View File

@ -303,7 +303,6 @@ SYSCALL_IMPLEMENT(ES_SYSCALL_PROCESS_CREATE) {
// Start the process. // Start the process.
if (error != ES_SUCCESS || !process->StartWithNode(executableObject)) { if (error != ES_SUCCESS || !process->StartWithNode(executableObject)) {
// TODO Confirm that this frees the handle table.
error = ES_ERROR_UNKNOWN; // TODO. error = ES_ERROR_UNKNOWN; // TODO.
CloseHandleToObject(process, KERNEL_OBJECT_PROCESS); CloseHandleToObject(process, KERNEL_OBJECT_PROCESS);
} else { } else {

View File

@ -45,7 +45,7 @@ static uintptr_t HeapCalculateIndex(uintptr_t size) {
} }
#ifdef MEMORY_LEAK_DETECTOR #ifdef MEMORY_LEAK_DETECTOR
extern "C" uint64_t ProcessorRBPRead(); extern "C" uint64_t ProcessorGetRBP();
struct MemoryLeakDetectorEntry { struct MemoryLeakDetectorEntry {
void *address; void *address;
@ -122,7 +122,7 @@ static void MemoryLeakDetectorAdd(EsHeap *heap, void *address, size_t bytes) {
entry->bytes = bytes; entry->bytes = bytes;
entry->seenCount = 0; entry->seenCount = 0;
uint64_t rbp = ProcessorRBPRead(); uint64_t rbp = ProcessorGetRBP();
uintptr_t traceDepth = 0; uintptr_t traceDepth = 0;
while (rbp && traceDepth < sizeof(entry->stack) / sizeof(entry->stack[0])) { while (rbp && traceDepth < sizeof(entry->stack) / sizeof(entry->stack[0])) {