Permalink
Browse files

virual memory

  • Loading branch information...
1 parent 64ee9e8 commit 9f0040aa981ba41e8ef45b73f53d93a480dda3d1 @dr-itz committed Oct 22, 2012
Showing with 19 additions and 0 deletions.
  1. +19 −0 W43-virtual-memory/answers.txt
View
19 W43-virtual-memory/answers.txt
@@ -0,0 +1,19 @@
+E4.1
+====
+
+a) 0
+b) Right shift: x / (2^n) wird zu x >> n
+c) Block 0x00034af6
+d) RelAdr = Adresse MOD Blockgrösse
+e) Lower n Bits maskieren: Offset = Adresse & ~(~0 << n)
+f) Offset = 0x00000784
+
+E4.2
+====
+
+a) 2KB = 2^11 => 2^21 Pages = 2'097'152 Pages
+b) 24bit Addressraum, 2KB Pages => 2^24/2^11 = 2^13 = 8192 Page frames
+c) siehe a
+d) 13
+e) Maskierung: Offset = Address & 0x7FF
+

0 comments on commit 9f0040a

Please sign in to comment.