Skip to content
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

CONFIG_VTX checked within CONFIG_ARCH_ARM block? #54

Open
axel-h opened this issue Aug 29, 2023 · 1 comment
Open

CONFIG_VTX checked within CONFIG_ARCH_ARM block? #54

axel-h opened this issue Aug 29, 2023 · 1 comment

Comments

@axel-h
Copy link
Member

axel-h commented Aug 29, 2023

I'm a but confused about what commit e08dbb4 added. Looking at

#if defined(CONFIG_ARCH_ARM)
CDL_PT = seL4_ARM_PageTableObject,
CDL_PD = seL4_ARM_PageDirectoryObject,
CDL_Frame = seL4_ARM_SmallPageObject,
#ifdef CONFIG_ARCH_AARCH64
CDL_PUD = seL4_ARM_PageUpperDirectoryObject,
#if !(defined(CONFIG_ARM_HYPERVISOR_SUPPORT) && defined (CONFIG_ARM_PA_SIZE_BITS_40))
CDL_PGD = seL4_ARM_PageGlobalDirectoryObject,
#endif
#endif
#ifdef CONFIG_ARM_HYPERVISOR_SUPPORT
CDL_VCPU = seL4_ARM_VCPUObject,
#endif
#ifdef CONFIG_VTX
CDL_VCPU = seL4_X86_VCPUObject,
#endif
#elif defined(CONFIG_ARCH_X86)
, there is a block for CONFIG_VTX within a CONFIG_ARCH_ARM block. Looks to me as if CDL_VCPU is never declared on CONFIG_ARCH_X86 at all then?

@corlewis
Copy link
Member

I have to admit that I don't remember the details for this anymore or what the use case for it was, but it does look like you're right and that that commit is not correct. Looking purely at the code in that file, I would think that the CONFIG_VTX block should be moved to line 193, after the CONFIG_ARCH_X86_64 block and within the CONFIG_ARCH_X86 block.

axel-h added a commit to axel-h/capdl that referenced this issue Aug 30, 2023
Resolves issue seL4#54

Signed-off-by: Axel Heider <[email protected]>
axel-h added a commit to axel-h/capdl that referenced this issue Aug 31, 2023
axel-h added a commit to axel-h/capdl that referenced this issue Sep 10, 2023
axel-h added a commit to axel-h/capdl that referenced this issue Nov 3, 2023
axel-h added a commit to axel-h/capdl that referenced this issue Nov 14, 2023
axel-h added a commit to axel-h/capdl that referenced this issue Mar 22, 2024
axel-h added a commit to axel-h/capdl that referenced this issue Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants