| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: cpufunc.S,v 1.2 2008/04/28 20:23:25 martin Exp $ */ | | 1 | /* $NetBSD: cpufunc.S,v 1.3 2008/10/22 08:42:38 ad Exp $ */ |
2 | | | 2 | |
3 | /*- | | 3 | /*- |
4 | * Copyright (c) 2007 The NetBSD Foundation, Inc. | | 4 | * Copyright (c) 2007 The NetBSD Foundation, Inc. |
5 | * All rights reserved. | | 5 | * All rights reserved. |
6 | * | | 6 | * |
7 | * This code is derived from software contributed to The NetBSD Foundation | | 7 | * This code is derived from software contributed to The NetBSD Foundation |
8 | * by Andrew Doran. | | 8 | * by Andrew Doran. |
9 | * | | 9 | * |
10 | * Redistribution and use in source and binary forms, with or without | | 10 | * Redistribution and use in source and binary forms, with or without |
11 | * modification, are permitted provided that the following conditions | | 11 | * modification, are permitted provided that the following conditions |
12 | * are met: | | 12 | * are met: |
13 | * 1. Redistributions of source code must retain the above copyright | | 13 | * 1. Redistributions of source code must retain the above copyright |
14 | * notice, this list of conditions and the following disclaimer. | | 14 | * notice, this list of conditions and the following disclaimer. |
| @@ -140,13 +140,17 @@ NENTRY(outl) | | | @@ -140,13 +140,17 @@ NENTRY(outl) |
140 | outl %eax, %dx | | 140 | outl %eax, %dx |
141 | ret | | 141 | ret |
142 | | | 142 | |
143 | NENTRY(outsl) | | 143 | NENTRY(outsl) |
144 | pushl %esi | | 144 | pushl %esi |
145 | movl 8(%esp), %edx | | 145 | movl 8(%esp), %edx |
146 | movl 12(%esp), %esi | | 146 | movl 12(%esp), %esi |
147 | movl 16(%esp), %ecx | | 147 | movl 16(%esp), %ecx |
148 | cld | | 148 | cld |
149 | rep | | 149 | rep |
150 | outsl | | 150 | outsl |
151 | popl %esi | | 151 | popl %esi |
152 | ret | | 152 | ret |
| | | 153 | |
| | | 154 | NENTRY(wbinvd) |
| | | 155 | wbinvd |
| | | 156 | ret |