Project

General

Profile

Bug #7958

loader: reset module type search after unload

Added by Toomas Soome about 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
bootloader
Start date:
2017-03-10
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:

Description

file_load() is using local static variable to keep track of successfully used load type, however, if the loaded setup is dropped with unload command, we should also reset the module tracking and the next loading should start from whole list again.

The issue became apparent with multiboot2 work, if the previously loaded kernel was MB1, and the load was dropped, the next load was also done as MB1, and MB2 check was skipped.

History

#1

Updated by Electric Monk about 3 years ago

  • % Done changed from 90 to 100
  • Status changed from In Progress to Closed

git commit 8665881c0dfc6f05581d92376fcc3584444a9c5f

commit  8665881c0dfc6f05581d92376fcc3584444a9c5f
Author: Toomas Soome <tsoome@me.com>
Date:   2017-03-21T16:06:00.000Z

    7958 loader: reset module type search after unload
    Reviewed by: Marcel Telka <marcel@telka.sk>
    Reviewed by: Robert Mustacchi <rm@joyent.com>
    Approved by: Robert Mustacchi <rm@joyent.com>

Also available in: Atom PDF