Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FlightOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Armin Luntzer
FlightOS
Commits
e87cfb6e
Commit
e87cfb6e
authored
Apr 10, 2017
by
Armin Luntzer
Browse files
Options
Downloads
Patches
Plain Diff
disable data cache on MPPB
parent
9b9e5e07
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
init/main.c
+20
-10
20 additions, 10 deletions
init/main.c
with
20 additions
and
10 deletions
init/main.c
+
20
−
10
View file @
e87cfb6e
...
@@ -5,15 +5,17 @@
...
@@ -5,15 +5,17 @@
#include
<generated/autoconf.h>
#include
<generated/autoconf.h>
#include
<kernel/init.h>
#include
<kernel/init.h>
#include
<kernel/module.h>
#include
<kernel/module.h>
/* module_load */
#include
<kernel/ksym.h>
#include
<kernel/ksym.h>
/* lookup_symbol */
#include
<kernel/printk.h>
#include
<kernel/printk.h>
#include
<modules-image.h>
#include
<modules-image.h>
#include
"xentium_demo.h"
#ifdef CONFIG_MPPB
#include
<asm/processor.h>
#endif
/* for our demo */
#include
"xentium_demo.h"
#define MSG "MAIN: "
#define MSG "MAIN: "
...
@@ -32,7 +34,6 @@
...
@@ -32,7 +34,6 @@
#ifdef CONFIG_TARGET_COMPILER_BOOT_CODE
#ifdef CONFIG_TARGET_COMPILER_BOOT_CODE
/**
/**
* @brief kernel initialisation routines
* @brief kernel initialisation routines
*/
*/
...
@@ -65,7 +66,6 @@ int main(void)
...
@@ -65,7 +66,6 @@ int main(void)
/* load the embedded AR image */
/* load the embedded AR image */
module_image_load_embedded
();
module_image_load_embedded
();
/* look up a kernel symbol */
/* look up a kernel symbol */
printk
(
MSG
"Looked up symbol %s at %p
\n
"
,
printk
(
MSG
"Looked up symbol %s at %p
\n
"
,
"printk"
,
lookup_symbol
(
"printk"
));
"printk"
,
lookup_symbol
(
"printk"
));
...
@@ -76,10 +76,9 @@ int main(void)
...
@@ -76,10 +76,9 @@ int main(void)
#if 0
#if 0
/* If you have kernel modules embedded in your modules.images, this
/* If you have kernel modules embedded in your modules.images, this
* is how you can access them
* is how you can access them:
* lookup the module containing <symbol>
*/
*/
/* lookup the module containing <symbol> */
addr = module_lookup_symbol_embedded("somefunction");
addr = module_lookup_symbol_embedded("somefunction");
/* XXX the image is not necessary aligned properly, so we can't access
/* XXX the image is not necessary aligned properly, so we can't access
...
@@ -93,6 +92,17 @@ int main(void)
...
@@ -93,6 +92,17 @@ int main(void)
modules_list_loaded();
modules_list_loaded();
#endif
#endif
#ifdef CONFIG_MPPB
/* The mppbv2 LEON's cache would really benefit from cache sniffing...
* Interactions with DMA or Xentiums are a pain when using the lower
* half of the AHB SDRAM memory bank and since we don't create
* a complete memory configuration for this demonstrator, we'll
* to just disable the dcache entirely >:(
*/
cpu_dcache_disable
();
#endif
/* run the demo */
xen_demo
();
xen_demo
();
return
0
;
return
0
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment