#include <sys/segments.h> unsigned short _my_cs();
Returns the current CS. This is useful for setting up interrupt vectors and such.
CS