Changeset 11609


Ignore:
Timestamp:
Jan 12, 2009, 8:52:31 AM (11 years ago)
Author:
gb
Message:

Back out of recent change. FreeBSD amd64 kernels don't change %fs on
return from i386_set_fsbase(), but something else seems to be going on
in 7.1/amd64.

Location:
trunk/source/lisp-kernel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/lisp-kernel/thread_manager.c

    r11608 r11609  
    11641164  extern unsigned short get_fs_register(void);
    11651165
    1166   if ((i386_set_fsbase((void*)tcr))) {
     1166  if (i386_set_fsbase((void*)tcr)) {
    11671167    perror("i386_set_fsbase");
    11681168    exit(1);
    11691169  }
    1170   if (get_fs_register() != GSEL(GUFS_SEL, SEL_UPL)) {
    1171     fprintf(stderr,"i386_set_fsbase didn't set %%fs properly; this my be a problem with the 7.1 FreeBSD-amd64 kernel\n");
    1172     exit(1);
    1173   }
     1170
    11741171
    11751172  /* Once we've called i386_set_fsbase, we can't write to %fs. */
  • trunk/source/lisp-kernel/x86-asmutils32.s

    r11607 r11609  
    277277_endfn                                       
    278278        __endif
    279        
    280 /* Could easily do this as a little bit of inline asm.  If I remembered
    281    how ... */
    282 _exportfn(C(get_fs_register))
    283         __(movl %fs,%eax)
    284         __(ret)
    285 _endfn       
    286 
    287279        _endfile
    288280
Note: See TracChangeset for help on using the changeset viewer.