# HG changeset patch # User alex # Date 1037554879 0 # Node ID a88e53ef3029243e06b9cf0ed0ab2fe0d5f75191 # Parent c8677169cc2ce425381f260e97fa10d12592a4f2 exporting fs_seg diff -r c8677169cc2c -r a88e53ef3029 loader/ldt_keeper.c --- a/loader/ldt_keeper.c Sun Nov 17 17:35:31 2002 +0000 +++ b/loader/ldt_keeper.c Sun Nov 17 17:41:19 2002 +0000 @@ -161,7 +161,7 @@ } #endif -//void* fs_seg=0; +void* fs_seg=0; ldt_fs_t* Setup_LDT_Keeper(void) { @@ -177,7 +177,7 @@ perror( "Cannot open /dev/zero for READ+WRITE. Check permissions! error: "); return NULL; } -// fs_seg= + fs_seg= ldt_fs->fs_seg = mmap(NULL, getpagesize(), PROT_READ | PROT_WRITE, MAP_PRIVATE, ldt_fs->fd, 0); if (ldt_fs->fs_seg == (void*)-1)