Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ITKA203 Avoin kurssimateriaali
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
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
ITKA203 kurssimateriaali
ITKA203 Avoin kurssimateriaali
Commits
a0a9437a
Commit
a0a9437a
authored
2 weeks ago
by
Jonne Itkonen
Browse files
Options
Downloads
Patches
Plain Diff
osoitteenmuutos leikkiarkkitehtuurilla kuvia muokattu
olivat ennen muualla piirrettyjä, nyt bytefieldejä
parent
5e23f91c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
moniste/kayttojarjestelmat.tex
+11
-0
11 additions, 0 deletions
moniste/kayttojarjestelmat.tex
moniste/tex/muistinhallinta.tex
+131
-2
131 additions, 2 deletions
moniste/tex/muistinhallinta.tex
with
142 additions
and
2 deletions
moniste/kayttojarjestelmat.tex
+
11
−
0
View file @
a0a9437a
...
...
@@ -105,6 +105,17 @@
% \renewcommand{\includegraphics}[2][width=\textwidth]{\IfFileExists{#2}{\includegraphicsoriginal[#1]{#2}}{\noimage}}
% pystyteksti bittimerkinnöille
\newlength
{
\bitlabelwidth
}
\newcommand
{
\rotbitheader
}
[1]
{
%
\tiny
\settowidth
{
\bitlabelwidth
}{
\quad
99
}
%
\rotatebox
[origin=B]
{
90
}{
\makebox
[\bitlabelwidth][r]
{
#1
}}
%
}
\begin{document}
%\include{./tex/prologi}
...
...
This diff is collapsed.
Click to expand it.
moniste/tex/muistinhallinta.tex
+
131
−
2
View file @
a0a9437a
...
...
@@ -304,7 +304,97 @@ x86-64 -arkkitehtuurissa hienojakoisemmin niin sanotun
\begin{figure}
[ht]
\centering
\includegraphics
[width=.8\textwidth]
{
osoitteenmuunnos
_
sivutaulu
_
20bit
_
leikkiarkkitehtuuri
}
% \includegraphics[width=.8\textwidth]{osoitteenmuunnos_sivutaulu_20bit_leikkiarkkitehtuuri}
\begin{bytefield}
[leftcurly=.,rightcurly=.,bitwidth=0.9em]
{
32
}
\bitheader
[endianness=big,bitformatting=\rotbitheader]
{
0-31
}
\\
\begin{rightwordgroup}
{
(PTE:n osoite)
}
\begin{leftwordgroup}
{
rivi/indeksi
}
\bitbox
{
8
}{
käyttöj.
}
&
\bitbox
{
12
}{
Fyysisen sivun numero
}
&
\bitbox
{
4
}{
käyttöj.
}
&
\bitbox
{
2
}{
res.
}
&
\bitbox
{
1
}{
D
}
&
\bitbox
{
1
}{
A
}
&
\bitbox
{
1
}{
E
}
&
\bitbox
{
1
}{
U
}
&
\bitbox
{
1
}{
W
}
&
\bitbox
{
1
}{
P
}
\end{leftwordgroup}
\end{rightwordgroup}
\\
\begin{rightwordgroup}
{$
\leftarrow
$
0x027000
}
\begin{leftwordgroup}
{
0x00
}
\bitbox
{
8
}{}
&
\bitbox
{
12
}{
0x000
}
&
\bitboxes
{
1
}{
000000000000
}
\end{leftwordgroup}
\end{rightwordgroup}
\\
\begin{rightwordgroup}
{$
\leftarrow
$
0x027004
}
\begin{leftwordgroup}
{
0x01
}
\bitbox
{
8
}{}
&
\bitbox
{
12
}{
0x345
}
&
\bitboxes
{
1
}{
001000011101
}
\end{leftwordgroup}
\end{rightwordgroup}
\\
\begin{rightwordgroup}
{$
\leftarrow
$
0x027008
}
\begin{leftwordgroup}
{
0x02
}
\bitbox
{
8
}{}
&
\bitbox
{
12
}{
0x88a
}
&
\bitboxes
{
1
}{
000000001101
}
\end{leftwordgroup}
\end{rightwordgroup}
\\
\begin{rightwordgroup}
{$
\leftarrow
$
0x02700c
}
\begin{leftwordgroup}
{
0x03
}
\bitbox
{
8
}{}
&
\bitbox
{
12
}{
0x678
}
&
\bitboxes
{
1
}{
000000010111
}
\end{leftwordgroup}
\end{rightwordgroup}
\\
\begin{rightwordgroup}
{$
\leftarrow
$
0x027010
}
\begin{leftwordgroup}
{
0x04
}
\bitbox
{
8
}{}
&
\bitbox
{
12
}{
0x000
}
&
\bitboxes
{
1
}{
000000000110
}
\end{leftwordgroup}
\end{rightwordgroup}
\\
\begin{rightwordgroup}
{$
\leftarrow
$
0x027014
}
\begin{leftwordgroup}
{
0x05
}
\bitbox
{
8
}{}
&
\bitbox
{
12
}{
0x9ec
}
&
\bitboxes
{
1
}{
010000110111
}
\end{leftwordgroup}
\end{rightwordgroup}
\\
\skippedwords
\\
\begin{rightwordgroup}
{$
\leftarrow
$
0x0271fc
}
\begin{leftwordgroup}
{
0x7f
}
\bitbox
{
8
}{}
&
\bitbox
{
12
}{
0x3c0
}
&
\bitboxes
{
1
}{
000000110111
}
\end{leftwordgroup}
\end{rightwordgroup}
\\
\begin{rightwordgroup}
{$
\leftarrow
$
0x027200
}
\begin{leftwordgroup}
{
0x80
}
\bitbox
{
8
}{}
&
\bitbox
{
12
}{
0x000
}
&
\bitboxes
{
1
}{
000000000000
}
\end{leftwordgroup}
\end{rightwordgroup}
\\
\skippedwords
\\
\begin{rightwordgroup}
{$
\leftarrow
$
0x0273f8
}
\begin{leftwordgroup}
{
0xfe
}
\bitbox
{
8
}{}
&
\bitbox
{
12
}{
0x0e2
}
&
\bitboxes
{
1
}{
000000110011
}
\end{leftwordgroup}
\end{rightwordgroup}
\\
\begin{rightwordgroup}
{$
\leftarrow
$
0x0273fc
}
\begin{leftwordgroup}
{
0xff
}
\bitbox
{
8
}{}
&
\bitbox
{
12
}{
0x0f0
}
&
\bitboxes
{
1
}{
000000011001
}
\end{leftwordgroup}
\end{rightwordgroup}
\\
\end{bytefield}
\caption
{
\label
{
fig:leikkisivutaulu
}
Leikkiesimerkki prosessin
sivutaulusta 20-bittisellä virtuaaliosoiteavaruudella,
24-bittisellä fyysisellä osoiteavaruudella ja 4096 tavun
...
...
@@ -336,7 +426,46 @@ virtuaalinen\footnote{Esimerkiksi AMD64 määrittelee fyysisen
\begin{figure}
[ht]
\centering
\includegraphics
[width=.5\textwidth]
{
osoitteenmuunnos
_
20bit
_
leikkiarkkitehtuuri
}
% \includegraphics[width=.5\textwidth]{osoitteenmuunnos_20bit_leikkiarkkitehtuuri}
\begin{bytefield}
[leftcurly=.,rightcurly=.,bitwidth=0.9em]
{
32
}
\bitbox
[]
{
4
}{
0x
}
\bitboxes
[]
{
4
}{
03cde
}
\\
\bitbox
[]
{
4
}{
Bitit:
}
&
\bitbox
{
4
}
[bgcolor=gray!50]
{
0 0 0 0
}
&
\bitbox
{
4
}
[bgcolor=gray!50]
{
0 0 1 1
}
&
\bitbox
{
4
}
[bgcolor=gray!20]
{
1 1 0 0
}
&
\bitbox
{
4
}
[bgcolor=gray!20]
{
1 1 0 1
}
&
\bitbox
{
4
}
[bgcolor=gray!20]
{
1 1 1 0
}
&
\\
\bitbox
[]
{
4
}{
Osiot:
}
&
\bitbox
[]
{
8
}
[bgcolor=gray!50]
{
Bitit 19…12
}
&
\bitbox
[]
{
12
}
[bgcolor=gray!20]
{
Bitit 11…0
}
\\
\bitbox
[]
{
4
}{}
&
\bitbox
[]
{
8
}
[bgcolor=gray!50]
{
\small
(8 bittiä)
}
&
\bitbox
[]
{
12
}
[bgcolor=gray!20]
{
\small
(12 bittiä)
}
\\
\bitbox
[]
{
4
}{
Indeksit:
}
&
\bitbox
[]
{
8
}
[bgcolor=gray!50]
{
3
}
&
\bitbox
[]
{
12
}
[bgcolor=gray!20]
{
0Xcde (=3294)
}
\\
\bitbox
[]
{
4
}{}
&
\bitbox
[]
{
8
}{}
&
\bitbox
[]
{
12
}{
\raggedright
Osoite sivun sisällä.
}
\\
\bitbox
[]
{
4
}{}
&
\bitbox
[]
{
8
}{
\raggedright
Indeksi sivutaulun riviin.
}
&
\bitbox
[]
{
12
}{
\raggedright
(Pysyy samana fyysisellä Sivulla.)
}
\end{bytefield}
\caption
{
\label
{
fig:leikkiosoite
}
Leikkiesimerkki prosessin
virtuaalimuistiosoitteesta 20-bittisellä
virtuaaliosoiteavaruudella ja 4096 tavun sivukoolla.
}
...
...
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