-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tests: kernel: App to validate boot time page table #1286
tests: kernel: App to validate boot time page table #1286
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like a pretty x86 specific test, can we rename so its clear that its x86 specific.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please add a README explaining what is being tested here and give more details?
@@ -0,0 +1,13 @@ | |||
#include <ztest.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing copyright/license header
@@ -0,0 +1,28 @@ | |||
#ifndef X86_MMU_GET_PT_ADDR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing copyright/license header
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you also need a header guard here
@@ -0,0 +1,110 @@ | |||
#include <zephyr.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing copyright/license header
ff1eab5
to
bb0cb51
Compare
Missing copyright/license header is added to the necessary files. README file is added with details. The header guards are also added. |
#define STARTING_ADDR_RANGE_LMT 0x0009ff | ||
#define START_ADR_RANGE_OVRLP_LMT 0x001000 | ||
#define REGION_PERM (MMU_READ_WRITE | MMU_PAGE_USER) | ||
#endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move line 37 (#endif )to line 27
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#endif moved to line 27
#include <ztest.h> | ||
#include "boot_page_table.h" | ||
|
||
MMU_BOOT_REGION(START_ADDR_RANGE, ADDR_SIZE, REGION_PERM); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add multiple regions into the test. as of now it is testing a single memory region.
Create multiple memory regions and validate them with the below APIs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
multiple memory regions has been created and added to validate upon.
02e4f9c
to
d69c2bc
Compare
zassert_true(ending_start_addr_range() == TC_PASS, NULL); | ||
} | ||
|
||
void test_starting_addr_range1(void) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pass arguments into the same function. if arguments== 1 then take start addr 1 if argument == 2 then take start addr2 so on.
Don't duplicate the code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AdithyaBaglody . The memory address are already passed based on the arguments.
d69c2bc
to
5952bf6
Compare
…ct-rtos#1286) This includes base configuration common to all platforms. Fixes zephyrproject-rtos#1260. Signed-off-by: Geoff Gustafson <[email protected]>
5899ded
to
85e5da1
Compare
@galak Could you please review the changes requested by you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
copyright/license header, header guard and line breaking has been addressed. Approved.
@SebastianBoe @galak : Can you please review the changes. This PR is planned for R-1.10. |
I am not able to review, removed myself from reviewers list. |
My comment about renaming since this is x86 specific is still valid. |
85e5da1
to
3745262
Compare
@galak . Could you please check, the renaming is done for x86. |
3745262
to
88ec235
Compare
@@ -0,0 +1,4 @@ | |||
tests: | |||
- test: | |||
platform_whitelist: qemu_x86 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any reason this test will not run on any x86 platform?
Seems like we should have:
arch_whitelist: x86
for sure in here.
88ec235
to
f90caf6
Compare
@galak . The changes have been addressed for arch_whitelist: x86 |
@akhileshupadhyay thanks. I removed my 'requests changes'. I leave this up to @nashif to decide if he's ok with it and wants it merged in 1.10. |
3e73924
to
761e7b0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove x86 from the path name x86boot_page_table/...
Testcase developed to validate x86 specific boot time page table faults. Signed-off-by: Akhilesh Kumar Upadhyay <[email protected]>
761e7b0
to
eec3a3f
Compare
@nashif Could please check, removed x86 from x86boot_page_table path name. |
Testcase developed to validate boot time page table faults.
Signed-off-by: Akhilesh Kumar Upadhyay [email protected]