@@ -100,7 +100,7 @@ static dmi_data_t *dmi_freebsd_read_entry(dmi_context_t *context, size_t *plengt
100100 return nullptr ;
101101 }
102102
103- session -> entry = dmi_memory_read (context , DMI_FREEBSD_DEV_MEMORY , addr , DMI_ENTRY_MAX_SIZE );
103+ session -> entry = dmi_memory_get (context , DMI_FREEBSD_DEV_MEMORY , addr , DMI_ENTRY_MAX_SIZE );
104104 if (session -> entry == nullptr )
105105 return nullptr ;
106106
@@ -121,7 +121,7 @@ static dmi_data_t *dmi_freebsd_read_table(dmi_context_t *context, size_t *plengt
121121 dmi_freebsd_session_t * session = dmi_cast (session , context -> session );
122122
123123 if (session -> table == nullptr ) {
124- session -> table = dmi_memory_read (context , DMI_FREEBSD_DEV_MEMORY ,
124+ session -> table = dmi_memory_get (context , DMI_FREEBSD_DEV_MEMORY ,
125125 context -> table_area_addr , context -> table_area_max_size );
126126 if (session -> table == nullptr )
127127 return nullptr ;
@@ -198,12 +198,11 @@ static bool dmi_freebsd_find_entry_addr(dmi_context_t *context, size_t *paddr)
198198 const size_t area_size = 0x10000 ;
199199
200200 dmi_data_t * buffer = nullptr ;
201- size_t addr = 0 ;
202201 bool found = false;
203202
204203 dmi_log_debug (context , "Running memory scan..." );
205204
206- buffer = dmi_memory_read (context , DMI_FREEBSD_DEV_MEMORY , base_addr , area_size );
205+ buffer = dmi_memory_get (context , DMI_FREEBSD_DEV_MEMORY , base_addr , area_size );
207206 if (buffer == nullptr )
208207 return false;
209208
0 commit comments