<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test2/sys/amd64/include/sysarch.h, branch release/5.2.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F5.2.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F5.2.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/'/>
<updated>2003-10-23T06:06:14Z</updated>
<entry>
<title>Use a more robust API altogether for the amd64_get_fsbase() etc functions.</title>
<updated>2003-10-23T06:06:14Z</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>2003-10-23T06:06:14Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=63f2bb5ff17d83ea018c6c9bbc980651d6e31add'/>
<id>urn:sha1:63f2bb5ff17d83ea018c6c9bbc980651d6e31add</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Renumber the sysarch vectors for amd64 specific syscalls so that I can</title>
<updated>2003-10-23T05:31:23Z</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>2003-10-23T05:31:23Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=c0432d033e292851f0925e9fbd81cc36b9248688'/>
<id>urn:sha1:c0432d033e292851f0925e9fbd81cc36b9248688</id>
<content type='text'>
implement i386 compat numbers where it makes sense.  This would save a
syscall translation layer.  Yes, this breaks the abi slightly again, but
fortunately its just a recompile rather than tweaking the source.  I will
be fixing the libc stubs while I'm here.
</content>
</entry>
<entry>
<title>Give a %fs and %gs to userland.  Use swapgs to obtain the kernel %GS.base</title>
<updated>2003-05-12T02:37:29Z</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>2003-05-12T02:37:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=bf1e897425bc2ec1bea8b4a3b09e2b89bbfeb58f'/>
<id>urn:sha1:bf1e897425bc2ec1bea8b4a3b09e2b89bbfeb58f</id>
<content type='text'>
value on entry and exit.  This isn't as easy as it sounds because when
we recursively trap or interrupt, we have to avoid duplicating the
swapgs instruction or we end up back with the userland %gs.  I implemented
this by testing TF_CS to see if we're coming from supervisor mode
already, and check for returning to supervisor. To avoid a race with
interrupts in the brief period after beginning executing the handler and
before the swapgs, convert all trap gates to interrupt gates, and reenable
interrupts immediately after the swapgs.  I am not happy with this.
There are other possible ways to do this that should be investigated.
(eg: storing the GS.base MSR value in the trapframe)

Add some sysarch functions to let the userland code get to this.

Approved by:	re (blanket amd64/*)
</content>
</entry>
<entry>
<title>Commit MD parts of a loosely functional AMD64 port.  This is based on</title>
<updated>2003-05-01T01:05:25Z</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>2003-05-01T01:05:25Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=afa8862328041298fe0c059d65cea406f92bad4b'/>
<id>urn:sha1:afa8862328041298fe0c059d65cea406f92bad4b</id>
<content type='text'>
a heavily stripped down FreeBSD/i386 (brutally stripped down actually) to
attempt to get a stable base to start from.  There is a lot missing still.
Worth noting:
- The kernel runs at 1GB in order to cheat with the pmap code.  pmap uses
  a variation of the PAE code in order to avoid having to worry about 4
  levels of page tables yet.
- It boots in 64 bit "long mode" with a tiny trampoline embedded in the
  i386 loader.  This simplifies locore.s greatly.
- There are still quite a few fragments of i386-specific code that have
  not been translated yet, and some that I cheated and wrote dumb C
  versions of (bcopy etc).
- It has both int 0x80 for syscalls (but using registers for argument
  passing, as is native on the amd64 ABI), and the 'syscall' instruction
  for syscalls.  int 0x80 preserves all registers, 'syscall' does not.
- I have tried to minimize looking at the NetBSD code, except in a couple
  of places (eg: to find which register they use to replace the trashed
  %rcx register in the syscall instruction).  As a result, there is not a
  lot of similarity.  I did look at NetBSD a few times while debugging to
  get some ideas about what I might have done wrong in my first attempt.
</content>
</entry>
<entry>
<title>There is no need for start/num to be signed in i386_ldt_args.</title>
<updated>2002-09-28T20:42:04Z</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>2002-09-28T20:42:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=feea0ab05b97f41e7b7ff0be021c8e8d126db6cc'/>
<id>urn:sha1:feea0ab05b97f41e7b7ff0be021c8e8d126db6cc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove __P.</title>
<updated>2002-03-20T05:48:58Z</updated>
<author>
<name>Alfred Perlstein</name>
<email>alfred@FreeBSD.org</email>
</author>
<published>2002-03-20T05:48:58Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=b63dc6ad473b82b196386d0c3dcbd1056cea81df'/>
<id>urn:sha1:b63dc6ad473b82b196386d0c3dcbd1056cea81df</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make the style a little bit more consistant by removing parameter</title>
<updated>2002-02-03T11:21:22Z</updated>
<author>
<name>Mark Murray</name>
<email>markm@FreeBSD.org</email>
</author>
<published>2002-02-03T11:21:22Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=9a29e3250ddbdb3a2b6187c77f77bf42be1ada9c'/>
<id>urn:sha1:9a29e3250ddbdb3a2b6187c77f77bf42be1ada9c</id>
<content type='text'>
names from some prototypes. (Other prototypes here already have
these removed).
</content>
</entry>
<entry>
<title>Add a couple of debug register helper functions to assist in setting</title>
<updated>2000-09-21T17:07:27Z</updated>
<author>
<name>Brian S. Dean</name>
<email>bsd@FreeBSD.org</email>
</author>
<published>2000-09-21T17:07:27Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=9d90941a83120e31a1000ded6e1231c521c0f5ba'/>
<id>urn:sha1:9d90941a83120e31a1000ded6e1231c521c0f5ba</id>
<content type='text'>
and clearing watchpoints.

Reviewed by:	jwd@FreeBSD.org, -hackers@
</content>
</entry>
<entry>
<title>Change #ifdef KERNEL to #ifdef _KERNEL in the public headers.  "KERNEL"</title>
<updated>1999-12-29T04:46:21Z</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>1999-12-29T04:46:21Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=664a31e4967a61ec61870f45adc2f1400617993e'/>
<id>urn:sha1:664a31e4967a61ec61870f45adc2f1400617993e</id>
<content type='text'>
is an application space macro and the applications are supposed to be free
to use it as they please (but cannot).  This is consistant with the other
BSD's who made this change quite some time ago.  More commits to come.
</content>
</entry>
<entry>
<title>Some reorganization of sysarch() interface:</title>
<updated>1999-09-02T20:59:50Z</updated>
<author>
<name>Luoqi Chen</name>
<email>luoqi@FreeBSD.org</email>
</author>
<published>1999-09-02T20:59:50Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=7a2bb3b800667397d41ad7324c4d8f2911fb8ebb'/>
<id>urn:sha1:7a2bb3b800667397d41ad7324c4d8f2911fb8ebb</id>
<content type='text'>
1. Move definitions of struct i386_*_args to the header file sysarch.h,
   since they are part of the sysarch API. struct i386_get_ldt_args and
   i386_set_ldt_args were identical, therefore make them into one
   struct i386_ldt_args. Libc should use these definitions as well.
2. Return a more sensible EOPNOTSUPP for unknown operations.

Reviewed by:	marcel
</content>
</entry>
</feed>
