1. A method for improving operating system resilience to memory errors using firmware assistance, comprising: detecting a memory failure in a memory address allocated to an active process, prior to the occurrence of a machine check interrupt resulting from the execution of an instruction of the active process; sending an indication of the detected memory failure in the memory address to an instance of an operating system in which the active process is executing; determining, by the operating system, a memory region that includes the memory address; and upon determining that the memory address is in an ejectable memory region, perform a discard procedure for the memory region.