x86, mm: Set first MB as RW+NX
hi,
Quoted 6 lines
Special accommodations have been made for BIOS32/PCI BIOS services:
according to BIOS32 specification
(http://members.datafast.net.au/dft0802/specs/bios32.pdf), at most two pages per BIOS32 service should be set executable and no pages need to be writeable.
From my understanding only the service directory take 2 pages.
The no info for the pci service :
- the length field could be used to find the number of page it takes.
- could we assume data ro ?
Also for easier debugging, set_2_pages_rox should print some info.
Matthieu
Selon [email protected]:
Quoted 7 lines
hi,
Quoted 5 lines
Special accommodations have been made for BIOS32/PCI BIOS services:
according to BIOS32 specification
(http://members.datafast.net.au/dft0802/specs/bios32.pdf), at most two pages per BIOS32 service should be set executable and no pages need to be writeable.
Quoted 6 lines
From my understanding only the service directory take 2 pages.
The no info for the pci service :
- the length field could be used to find the number of page it takes.
- could we assume data ro ?
http://members.datafast.net.au/dft0802/specs/bios21.pdf got all info for pci bios [1].
So I was right : we shouldn't assume pci bios routine take only 2 pages, but use the length parameter.
Matthieu
[1]
The 32-bit PCI BIOS functions must be accessed using CALL FAR. The CS and DS descriptors must be setup to encompass the physical addresses specified by the Base and
Length parameters returned by the BIOS32 Service Directory. The CS and DS descriptors must have the same base. The calling environment must allow access to IO
space and provide at least 1K of stack space. Platform BIOS writers must assume that CS
is execute-only and DS is read-only.
Quoted 12 lines
Quoted 11 lines
Quoted 5 lines
Special accommodations have been made for BIOS32/PCI BIOS services:
according to BIOS32 specification
(http://members.datafast.net.au/dft0802/specs/bios32.pdf), at most two pages per BIOS32 service should be set executable and no pages need to be writeable.From my understanding only the service directory take 2 pages.
The no info for the pci service :
- the length field could be used to find the number of page it takes.
- could we assume data ro ?
Quoted 4 lines
http://members.datafast.net.au/dft0802/specs/bios21.pdf got all info for pci bios [1].
So I was right : we shouldn't assume pci bios routine take only 2 pages, but use the length parameter.
Thanks for looking into this. I will be posting another patch shortly.