mirror of https://gitlab.com/nakst/essence
cleanup
This commit is contained in:
parent
f140770dac
commit
98cb1c0400
|
@ -80,8 +80,8 @@ ProcessorCheckStackAlignment:
|
||||||
jne $
|
jne $
|
||||||
ret
|
ret
|
||||||
|
|
||||||
[global ProcessorRBPRead]
|
[global ProcessorGetRBP]
|
||||||
ProcessorRBPRead:
|
ProcessorGetRBP:
|
||||||
mov rax,rbp
|
mov rax,rbp
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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])) {
|
||||||
|
|
Loading…
Reference in New Issue