From 0a70d042d04e084da4226e7d0d684dedcae06d78 Mon Sep 17 00:00:00 2001 From: rtm Date: Tue, 13 Jun 2006 15:50:06 +0000 Subject: more or less take traps/interrupts --- Notes | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Notes') diff --git a/Notes b/Notes index e5e2c5f..cee3b3d 100644 --- a/Notes +++ b/Notes @@ -65,3 +65,11 @@ perhaps have fixed-size stack, put it in the data segment? oops, if kernel stack is in contiguous user phys mem, then moving users' memory (e.g. to expand it) will wreck any pointers into the kernel stack. + +do we need to set fs and gs? so user processes can't abuse them? + +setupsegs() may modify current segment table, is that legal? + +trap() ought to lgdt on return, since currently only done in swtch() + +protect hardware interrupt vectors from user INT instructions? -- cgit v1.2.3