cosmetic change for mem_apis.c
This commit is contained in:
@ -142,13 +142,13 @@ static void do_nx_demo(bool cause_fault)
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
bits 32
|
bits 32
|
||||||
page0:
|
page0: @0
|
||||||
times 4091 inc eax
|
times 4091 inc eax
|
||||||
jmp page2
|
jmp page2
|
||||||
page1:
|
page1: @1000
|
||||||
times 4095 inc eax
|
times 4095 inc eax (or INC ECX)
|
||||||
hlt
|
hlt
|
||||||
page2:
|
page2: @2000
|
||||||
jmp page1
|
jmp page1
|
||||||
*/
|
*/
|
||||||
memset(code_buf, 0x40, sizeof(code_buf)); // fill with inc eax
|
memset(code_buf, 0x40, sizeof(code_buf)); // fill with inc eax
|
||||||
|
Reference in New Issue
Block a user