X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fgeekos%2Ftss.c;h=3a72fb04185bde1b182740f010b591af9a25f8d8;hb=091d8b1fcfc3a766f6603d4c1c69d9f8f4bf3031;hp=350cb98bf53fbec5648e89b2cdce9a90454e3a03;hpb=190b2ef9470c23c275754b74745933d973f8c439;p=palacios.git diff --git a/palacios/src/geekos/tss.c b/palacios/src/geekos/tss.c index 350cb98..3a72fb0 100644 --- a/palacios/src/geekos/tss.c +++ b/palacios/src/geekos/tss.c @@ -1,7 +1,7 @@ /* * x86 TSS data structure and routines * Copyright (c) 2001,2004 David H. Hovemeyer - * $Revision: 1.3 $ + * $Revision: 1.4 $ * * This is free software. You are permitted to use, * redistribute, and modify it as specified in the file "COPYING". @@ -82,3 +82,21 @@ void Set_Kernel_Stack_Pointer(ulong_t esp0) */ Load_Task_Register(); } + + +/* JRL THIS FUCKING SUCKS */ + +uint_t GetTR_Base() { + return (uint_t)(&s_theTSS); +} +uint_t GetTR_Limit() { + return sizeof(struct TSS); +} + +ushort_t GetTR_Selector() { + return s_tssSelector; +} + + + +/* ** */