"H. Peter Anvin" <[email protected]> writes: > yhlu wrote: >> so the kexec tools need to scan the pci devices list, and find out how >> to set real_mode.isVGA and orig_video_mode, also need to parse the >> comand line about vga console. > > BTW, welcome to the hell of bypassing setup. Well in this case things are so very much better then attempting to us setup.S it isn't a real option. In general BIOS calls just don't work reliably after linux has been running for a while. As for YH's point it does look like there are a few ways to poke the linux kernel to see what is happening. We can look in /proc/ioports and see what has reserved the video resources. That should give us a reasonable estimate of the video adapter. We can do an ioctl to the console and see how many lines and columns we have. Reusing boot_params could be nice but if we have the information available in other ways digging it out that way is quite possibly better. Eric - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- References:
- Re: [patches] [PATCH] [21/22] x86_64: Extend bzImage protocol for relocatable bzImage
- From: Jeremy Fitzhardinge <[email protected]>
- Re: [patches] [PATCH] [21/22] x86_64: Extend bzImage protocol for relocatable bzImage
- From: "H. Peter Anvin" <[email protected]>
- Re: [patches] [PATCH] [21/22] x86_64: Extend bzImage protocol for relocatable bzImage
- From: yhlu <[email protected]>
- Re: [patches] [PATCH] [21/22] x86_64: Extend bzImage protocol for relocatable bzImage
- From: "H. Peter Anvin" <[email protected]>
- Re: [patches] [PATCH] [21/22] x86_64: Extend bzImage protocol for relocatable bzImage
- From: [email protected] (Eric W. Biederman)
- Re: [patches] [PATCH] [21/22] x86_64: Extend bzImage protocol for relocatable bzImage
- From: "H. Peter Anvin" <[email protected]>
- Re: [patches] [PATCH] [21/22] x86_64: Extend bzImage protocol for relocatable bzImage
- From: [email protected] (Eric W. Biederman)
- Re: [patches] [PATCH] [21/22] x86_64: Extend bzImage protocol for relocatable bzImage
- From: yhlu <[email protected]>
- Re: [patches] [PATCH] [21/22] x86_64: Extend bzImage protocol for relocatable bzImage
- From: "H. Peter Anvin" <[email protected]>
- Re: [patches] [PATCH] [21/22] x86_64: Extend bzImage protocol for relocatable bzImage
- From: "H. Peter Anvin" <[email protected]>
- Re: [patches] [PATCH] [21/22] x86_64: Extend bzImage protocol for relocatable bzImage
- From: yhlu <[email protected]>
- Re: [patches] [PATCH] [21/22] x86_64: Extend bzImage protocol for relocatable bzImage
- From: "H. Peter Anvin" <[email protected]>
- Re: [patches] [PATCH] [21/22] x86_64: Extend bzImage protocol for relocatable bzImage
- Prev by Date: Re: [PATCH 1/5] fallocate() implementation in i86, x86_64 and powerpc
- Next by Date: Re: [patch 8/9] lguest: the block driver
- Previous by thread: Re: [patches] [PATCH] [21/22] x86_64: Extend bzImage protocol for relocatable bzImage
- Next by thread: Re: [patches] [PATCH] [21/22] x86_64: Extend bzImage protocol for relocatable bzImage
- Index(es):