一种嵌入式操作系统运行过程中的内存检测方法和装置
本申请涉及一种嵌入式操作系统运行过程中的内存检测方法、装置、设备及存储介质,所述方法包括:响应内存检测方法的启动,进入异常处理程序,以获得内存管理权限;获取当前内存的分配信息,包括第一空间和当前空闲空间,第一空间为当前已使用空间;根据第一空间的大小,从内存的当前空闲空间中分配一备份空间;在分配备份空间后的内存的当前空闲空间中加载并启动第一内存检测程序,使用第一内存检测程序,对备份空间,或对备份空间和启动第一内存检测程序后的内存的当前空闲空间进行内存检测;第一内存检测程序检测通过后,判断备份空间大于第一空间时,将第一空间中的数据迁移至备份空间中;在备份空间中加载并启动第二内存检测程序,使用第二内...
Saved in:
| Format | Patent |
|---|---|
| Language | Chinese |
| Published |
30.09.2025
|
| Subjects | |
| Online Access | Get full text |
Cover
| Summary: | 本申请涉及一种嵌入式操作系统运行过程中的内存检测方法、装置、设备及存储介质,所述方法包括:响应内存检测方法的启动,进入异常处理程序,以获得内存管理权限;获取当前内存的分配信息,包括第一空间和当前空闲空间,第一空间为当前已使用空间;根据第一空间的大小,从内存的当前空闲空间中分配一备份空间;在分配备份空间后的内存的当前空闲空间中加载并启动第一内存检测程序,使用第一内存检测程序,对备份空间,或对备份空间和启动第一内存检测程序后的内存的当前空闲空间进行内存检测;第一内存检测程序检测通过后,判断备份空间大于第一空间时,将第一空间中的数据迁移至备份空间中;在备份空间中加载并启动第二内存检测程序,使用第二内存检测程序对内存尚未检测的空间进行内存检测;第二内存检测程序检测完成后,将备份空间中的所迁移的数据恢复至第一空间中。如此,本申请解决了现在技术中的嵌入式操作系统无法在运行过程中进行全区域内存自检的问题。
The invention relates to a memory detection method and device in the running process of an embedded operating system, equipment and a storage medium, and the method comprises the following steps: responding to the starting of a memory detection method, and entering an exception handling program to obtain memory management authority; distribution information of a current memory is obtained, the distribution information comprises a first space and a current free space, and the first space is a currently used space; distributing a backup space from the current free space of the memory according to the size of the firs |
|---|---|
| Bibliography: | Application Number: CN202411588897 |