Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CSEP551
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Krishna Vinnakota
CSEP551
Commits
b738a4f1
Commit
b738a4f1
authored
14 years ago
by
Frans Kaashoek
Browse files
Options
Downloads
Patches
Plain Diff
kill TLB shoot down code
parent
de40730d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
defs.h
+0
-1
0 additions, 1 deletion
defs.h
lapic.c
+0
-38
0 additions, 38 deletions
lapic.c
trap.c
+0
-4
0 additions, 4 deletions
trap.c
traps.h
+0
-1
0 additions, 1 deletion
traps.h
vm.c
+0
-5
0 additions, 5 deletions
vm.c
with
0 additions
and
49 deletions
defs.h
+
0
−
1
View file @
b738a4f1
...
...
@@ -73,7 +73,6 @@ int cpunum(void);
extern
volatile
uint
*
lapic
;
void
lapiceoi
(
void
);
void
lapicinit
(
int
);
void
lapic_tlbflush
(
uint
);
void
lapicstartap
(
uchar
,
uint
);
void
microdelay
(
int
);
...
...
This diff is collapsed.
Click to expand it.
lapic.c
+
0
−
38
View file @
b738a4f1
...
...
@@ -47,27 +47,6 @@ lapicw(int index, int value)
lapic
[
ID
];
// wait for write to finish, by reading
}
static
uint
lapicr
(
uint
off
)
{
return
lapic
[
off
];
}
static
int
apic_icr_wait
()
{
uint
i
=
100000
;
while
((
lapicr
(
ICRLO
)
&
BUSY
)
!=
0
)
{
nop_pause
();
i
--
;
if
(
i
==
0
)
{
cprintf
(
"apic_icr_wait: wedged?
\n
"
);
return
-
1
;
}
}
return
0
;
}
//PAGEBREAK!
void
lapicinit
(
int
c
)
...
...
@@ -151,23 +130,6 @@ microdelay(int us)
{
}
// Send IPI
void
lapic_ipi
(
int
cpu
,
int
ino
)
{
lapicw
(
ICRHI
,
cpu
<<
24
);
lapicw
(
ICRLO
,
FIXED
|
DEASSERT
|
ino
);
if
(
apic_icr_wait
()
<
0
)
panic
(
"lapic_ipi: icr_wait failure"
);
}
void
lapic_tlbflush
(
uint
cpu
)
{
lapic_ipi
(
cpu
,
T_TLBFLUSH
);
}
#define IO_RTC 0x70
// Start additional processor running bootstrap code at addr.
...
...
This diff is collapsed.
Click to expand it.
trap.c
+
0
−
4
View file @
b738a4f1
...
...
@@ -73,10 +73,6 @@ trap(struct trapframe *tf)
cpu
->
id
,
tf
->
cs
,
tf
->
eip
);
lapiceoi
();
break
;
case
T_TLBFLUSH
:
lapiceoi
();
lcr3
(
rcr3
());
break
;
//PAGEBREAK: 13
default:
...
...
This diff is collapsed.
Click to expand it.
traps.h
+
0
−
1
View file @
b738a4f1
...
...
@@ -25,7 +25,6 @@
// These are arbitrarily chosen, but with care not to overlap
// processor defined exceptions or interrupt vectors.
#define T_SYSCALL 64 // system call
#define T_TLBFLUSH 65 // flush TLB
#define T_DEFAULT 500 // catchall
#define T_IRQ0 32 // IRQ 0 corresponds to int T_IRQ
...
...
This diff is collapsed.
Click to expand it.
vm.c
+
0
−
5
View file @
b738a4f1
...
...
@@ -137,11 +137,6 @@ loadvm(struct proc *p)
lcr3
(
PADDR
(
p
->
pgdir
));
// switch to new address space
popcli
();
// Conservatively flush other processor's TLBs
// XXX lazy--just 2 cpus, but xv6 doesn't need shootdown anyway.
if
(
cpu
->
id
==
0
)
lapic_tlbflush
(
1
);
else
lapic_tlbflush
(
0
);
}
// Setup kernel part of a page table. Linear adresses map one-to-one
...
...
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