Patent ID: 8819384
Filing Date: 2014-08-26
Classification: G06F

Abstract:
1. A method for managing memory, comprising: detecting a change from a first scenario that uses a first communication protocol to a second scenario that uses a second communication protocol in a system, the first scenario requiring execution of a first code module, and the second scenario requiring execution of a second code module, the first code module, the second code module, and a third code module co-existing in a static memory; matching the detected second scenario with a predefined scenario that includes a pre-set mapping relationship of the second code module to a dynamic memory address within a first portion of a dynamic memory, the predefined scenario being at least based on a type of a communication port of the system, wherein the pre-set mapping relationship maps the third code module to another dynamic memory address within a second portion of the dynamic memory and the pre-set mapping relationship of the third code module stays the same independent of the change, the second portion being reserved as a performance critical portion of the dynamic memory that is unaffected by the change; and writing the second code module from the static memory to the first portion of the dynamic memory at the dynamic memory address to replace the first code module in the dynamic memory.