diff options
Diffstat (limited to 'www-servers/nginx/files/nginx-0.3.29-hardened.patch')
-rw-r--r-- | www-servers/nginx/files/nginx-0.3.29-hardened.patch | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/www-servers/nginx/files/nginx-0.3.29-hardened.patch b/www-servers/nginx/files/nginx-0.3.29-hardened.patch deleted file mode 100644 index 0277697f944c..000000000000 --- a/www-servers/nginx/files/nginx-0.3.29-hardened.patch +++ /dev/null @@ -1,59 +0,0 @@ ---- src/core/ngx_cpuinfo.c Wed Feb 8 14:39:29 2006 -+++ src/core/ngx_cpuinfo.c Wed Feb 22 12:59:56 2006 -@@ -14,6 +14,38 @@ - static ngx_inline void ngx_cpuid(uint32_t i, uint32_t *buf); - - -+#if ( __i386__ ) -+ -+static ngx_inline void -+ngx_cpuid(uint32_t i, uint32_t *buf) -+{ -+ -+ /* -+ * we could not use %ebx as parameter if gcc building with -fPIC -+ * and we could not push %ebx on stack -+ */ -+ -+ __asm__ ( -+ -+ " mov %%ebx, %%esi; " -+ -+ " cpuid; " -+ " mov %%eax, %0; " -+ " mov %%ebx, %1; " -+ " mov %%edx, %2; " -+ " mov %%ecx, %3; " -+ -+ " mov %%esi, %%ebx; " -+ -+ : "=m" (buf[0]), "=m" (buf[1]), "=m" (buf[2]), "=m" (buf[3]) -+ : "a" (i) -+ : "ecx", "edx", "esi" ); -+} -+ -+ -+#else /* __amd64__ */ -+ -+ - static ngx_inline void - ngx_cpuid(uint32_t i, uint32_t *buf) - { -@@ -32,6 +64,8 @@ - } - - -+#endif -+ - /* auto detect the L2 cache line size of modern and widespread CPUs */ - - void -@@ -53,6 +87,8 @@ - if (vbuf[0] == 0) { - return; - } -+ -+ngx_log_error(NGX_LOG_ALERT, ngx_cycle->log, 0, "CPU: \"%s\"", vendor); - - ngx_cpuid(1, cpu); - |