Displaying 3 results from an estimated 3 matches for "delay_loop".
Did you mean:
delay_load
2013 Jul 12
0
[PATCH 001/001] core/serial: Add support for serial output functions.
...ston, MA 02111-1307, USA.
+*/
+
+#include <sys/io.h>
+#include <serial.h>
+#include <stdint.h>
+#include <stdio.h>
+#include <stdarg.h>
+
+extern void writestr(const char *);
+
+/*
+ * Taken from linux/arch/x86/lib/delay.c
+ * simple loop based delay:
+ */
+static void delay_loop(unsigned long loops)
+{
+ asm volatile(
+ " test %0,%0 \n"
+ " jz 3f \n"
+ " jmp 1f \n"
+
+ ".align 16 \n"
+ "1: jmp 2f \n"
+
+ ".align 16 \n&...
2013 Jul 12
2
[PATCH 001/001] core/serial: Add support for serial output functions.
...ston, MA 02111-1307, USA.
+*/
+
+#include <sys/io.h>
+#include <serial.h>
+#include <stdint.h>
+#include <stdio.h>
+#include <stdarg.h>
+
+extern void writestr(const char *);
+
+/*
+ * Taken from linux/arch/x86/lib/delay.c
+ * simple loop based delay:
+ */
+static void delay_loop(unsigned long loops)
+{
+ asm volatile(
+ " test %0,%0 \n"
+ " jz 3f \n"
+ " jmp 1f \n"
+
+ ".align 16 \n"
+ "1: jmp 2f \n"
+
+ ".align 16 \n"
+ "2:...
2008 Jan 08
8
Shorewall and LVS-NAT (via fwmark) nat'd machines can't access the outside world directly
...fw lvs ACCEPT
lvs fw ACCEPT
/etc/shorewall/tcrules
1 0.0.0.0/0 202.45.102.90 tcp 80
/etc/shorewall/rules
ACCEPT all fw:202.45.102.90 tcp 80
My keepalived config is very simple
virtual_server fwmark 1 {
delay_loop 6
lb_algo rr
lb_kind NAT
protocol TCP
real_server 192.168.1.10 80 {
weight 1
TCP_CHECK {
connect_timeout 3
connect_port 80
}
}
real_server 192.168.1.11 80 {...