File tree Expand file tree Collapse file tree 4 files changed +28
-0
lines changed Expand file tree Collapse file tree 4 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,13 @@ impl GlobalDescriptorTable {
117
117
}
118
118
}
119
119
120
+ impl Default for GlobalDescriptorTable {
121
+ #[ inline]
122
+ fn default ( ) -> Self {
123
+ Self :: new ( )
124
+ }
125
+ }
126
+
120
127
impl < const MAX : usize > GlobalDescriptorTable < MAX > {
121
128
/// Creates an empty GDT which can hold `MAX` number of [`Entry`]s.
122
129
#[ inline]
Original file line number Diff line number Diff line change @@ -565,6 +565,13 @@ impl InterruptDescriptorTable {
565
565
}
566
566
}
567
567
568
+ impl Default for InterruptDescriptorTable {
569
+ #[ inline]
570
+ fn default ( ) -> Self {
571
+ Self :: new ( )
572
+ }
573
+ }
574
+
568
575
impl Index < u8 > for InterruptDescriptorTable {
569
576
type Output = Entry < HandlerFunc > ;
570
577
Original file line number Diff line number Diff line change @@ -97,6 +97,13 @@ impl PageTableEntry {
97
97
}
98
98
}
99
99
100
+ impl Default for PageTableEntry {
101
+ #[ inline]
102
+ fn default ( ) -> Self {
103
+ Self :: new ( )
104
+ }
105
+ }
106
+
100
107
impl fmt:: Debug for PageTableEntry {
101
108
fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
102
109
let mut f = f. debug_struct ( "PageTableEntry" ) ;
Original file line number Diff line number Diff line change @@ -43,6 +43,13 @@ impl TaskStateSegment {
43
43
}
44
44
}
45
45
46
+ impl Default for TaskStateSegment {
47
+ #[ inline]
48
+ fn default ( ) -> Self {
49
+ Self :: new ( )
50
+ }
51
+ }
52
+
46
53
#[ cfg( test) ]
47
54
mod tests {
48
55
use super :: * ;
You can’t perform that action at this time.
0 commit comments