Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F162582137
D52483.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
967 B
Referenced Files
None
Subscribers
None
D52483.diff
View Options
diff --git a/stand/efi/loader/framebuffer.c b/stand/efi/loader/framebuffer.c
--- a/stand/efi/loader/framebuffer.c
+++ b/stand/efi/loader/framebuffer.c
@@ -880,14 +880,16 @@
sprintf(command_errbuf, "mode is an integer");
return (CMD_ERROR);
}
- status = gop->SetMode(gop, mode);
- if (EFI_ERROR(status)) {
- snprintf(command_errbuf, sizeof(command_errbuf),
- "%s: Unable to set mode to %u (error=%lu)",
- argv[0], mode, EFI_ERROR_CODE(status));
- return (CMD_ERROR);
+ if (gop->Mode->Mode != mode) {
+ status = gop->SetMode(gop, mode);
+ if (EFI_ERROR(status)) {
+ snprintf(command_errbuf, sizeof(command_errbuf),
+ "%s: Unable to set mode to %u (error=%lu)",
+ argv[0], mode, EFI_ERROR_CODE(status));
+ return (CMD_ERROR);
+ }
+ (void) cons_update_mode(true);
}
- (void) cons_update_mode(true);
} else if (strcmp(argv[1], "blt") == 0) {
/*
* "blt on" does allow gop->Blt() to be used (default).
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jul 15, 6:38 PM (10 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35110261
Default Alt Text
D52483.diff (967 B)
Attached To
Mode
D52483: loader: gop set with current mode should be nop
Attached
Detach File
Event Timeline
Log In to Comment