search for: inb

Displaying 20 results from an estimated 89 matches for "inb".

Did you mean: in
2015 Apr 14
5
[LLVMdev] [cfe-dev] A problem with names that can not be demangled.
...showed up using LTO, but we can illustrate this by using llvm-link as well. > > > > Say we have two files with the same named static symbol Bye > > > > --------------- t1.cpp --------- > > static void Bye(int* ba1) { ba1[0] /= ba1[2] - 2; } > > void main_a( int* inB) { void (*func)(int*) = Bye; func(inB); } > > --------------- t2.cpp --------- > > static void Bye(int* ba1) { ba1[0] *= ba1[2] + 2; } > > void main_b( int* inB) { void (*func)(int*) = Bye; func(inB+1); } > > > > --------- cmd sequence ------- > > $ clang++ -c -e...
2010 Jun 19
1
more powerful iconv
...mark = asLogical(CAD4R(args)); if(mark == NA_LOGICAL) @@ -584,7 +585,7 @@ PROTECT(ans = duplicate(x)); R_AllocStringBuffer(0, &cbuff); /* 0 -> default */ for(i = 0; i < LENGTH(x); i++) { - si = STRING_ELT(x, i); + si = isRawx ? x : STRING_ELT(x, i); top_of_loop: inbuf = CHAR(si); inb = LENGTH(si); outbuf = cbuff.data; outb = cbuff.bufsize - 1; @@ -622,7 +623,7 @@ goto next_char; } - if(res != -1 && inb == 0) { + if(res != -1 && inb == 0 && !isRawx) { cetype_t ienc = CE_NATIVE; nout = cbuff.bufsize - 1 -...
2015 Apr 14
0
[LLVMdev] [cfe-dev] A problem with names that can not be demangled.
...ated by renaming of static symbols by llvm-link. It first showed up using LTO, but we can illustrate this by using llvm-link as well. Say we have two files with the same named static symbol Bye --------------- t1.cpp --------- static void Bye(int* ba1) { ba1[0] /= ba1[2] - 2; } void main_a( int* inB) { void (*func)(int*) = Bye; func(inB); } --------------- t2.cpp --------- static void Bye(int* ba1) { ba1[0] *= ba1[2] + 2; } void main_b( int* inB) { void (*func)(int*) = Bye; func(inB+1); } --------- cmd sequence ------- $ clang++ -c -emit-llvm t1.cpp -o t1.bc $ clang++ -c -emit-llvm t1.cpp -o...
2012 Mar 01
3
[PATCH v2] x86: Use deep C states for off-lined CPUs
...PI_CSTATE_EM_SYSIO ) + { + /* Intel prefers not to use SYSIO */ + + /* Avoid references to shared data after the cache flush */ + u32 address = cx->address; + u32 pmtmr_ioport_local = pmtmr_ioport; + + wbinvd(); + + while ( 1 ) + { + inb(address); + inl(pmtmr_ioport_local); + } } default_halt:
2008 Apr 10
8
[PATCH][RFC]Move PCI Configuration Spaces from Dom0 to Xen
Hi, Keir, This patch will move reading and writing of PCI configuration spaces from dom0 to Xen. It also changes VTD code, so that they can touch the PCI configuration spaces with proper lock. This will also benefit MSI support in Xen. Can you give some comments? Thanks! <<pci_conf_xen.patch>> Best Regards Haitao Shan _______________________________________________ Xen-devel
2004 Jan 26
1
need a few additions
I have my VBIOS reset program working on klibc now. I think I have tracked down and fixed all of the problems I was having. So to make this official I need a few minor klibc additions: 1) fix inb/w/l to return the right variable. 2) implement getpagesize() 3) add support for vm86 - one function and one header file. Later, if you're interested, we could modify the vm86 function to call the x86 emulator lib on non-X86 machines. This would make more x86 video cards usable on these machin...
2018 May 31
0
Help in dynamic simulation using deSolve
...) # Define time sequence from 0 to 12 by 1 time <- seq(0,12, by=1) # Define the function? Mod <- function (t, parms){? derivs <- function(t, state, parms){? ? with(as.list (c(state, parms)), {? ? ??? ? ? #Fluxes? ? ??? ? ? inA <- kinA? ? ? AtoB <- kAtoB*A? ? ? Aout <- kAout*A? ? ? inB <- kinB? ? ? BtoA <- kBtoA*B? ? ? Bout <- kBout*B? ? ??? ? ? # Rate of change? ? ? dA <- inA+BtoA-AtoB-Aout? ? ? dB <- inB+AtoB-BtoA-Bout? ? ??? ? ??? ? ? return (list (c(dA, dB)))? ? })? }??? #Step 4: Define some starting values for the pools??? state <- c(A=5, B=3)??? ?return (o...
2020 Jan 22
0
[PATCH] com32/modules: introduce play module
...+#define PIT_SPK_TMR2 0x01 +#define PIT_SPK_DATA 0x02 +#define PIT_SPK_TMR2_LATCH 0x20 +#define PIT_CTRL_SELECT_2 0x80 +#define PIT_CTRL_READLOAD_WORD 0x30 +#define PIT_CTRL_SQUAREWAVE_GEN 0x06 +#define PIT_CTRL_COUNT_BINARY 0x00 + +static void beep_off(void) +{ + unsigned char status; + + status = inb(PIT_SPEAKER_PORT); + outb(status & ~(PIT_SPK_TMR2 | PIT_SPK_DATA), PIT_SPEAKER_PORT); +} + +static void beep_on(uint16_t pitch) +{ + unsigned char status; + unsigned int counter; + + if (pitch < 20) + pitch = 20; + else if (pitch > 20000) + pitch = 20000; + + counter = SPEAKER_PIT_FREQU...
2004 Jan 24
1
get rid of various warnings, errors in io.h
In 0.97 io.h is wrong in several places. it should be returning __v, not v. static __inline__ unsigned char inb(unsigned short __p) { unsigned char __v; asm volatile("inb %1,%0" : "=a" (__v) : "dN" (__p)); return v; } How do I get rid of these warnings? /home/mesa/boot/klibc/klibc/include/stdlib.h:21: warning: shadowing built-in function `abs' /home/mesa/boot/klibc/...
2004 Jan 24
1
Supporting multiple video cards under Linux
...go into VM86 mode, or on non-86 architectures run a x86 emulator if need be. You can't call the VBIOS from a device driver becuase it has been written assuming that it will be run in real mode, not protected mode. I tried linking to klibc but I'm missing some key pieces. I need things like inb/w/l(), outb/w/l(), iopl(), and vm86 support. Is it possible to get these added to klibc? These are probably all macros simply generating ASM instructions or calling the kernel VM86 entry point. ===== Jon Smirl jonsmirl@yahoo.com __________________________________ Do you Yahoo!? Yahoo! SiteBuilde...
2023 Mar 15
0
[PATCH v3 07/38] drm: handle HAS_IOPORT dependencies
On Tue, 14 Mar 2023, Niklas Schnelle <schnelle at linux.ibm.com> wrote: > In a future patch HAS_IOPORT=n will result in inb()/outb() and friends > not being declared. We thus need to add HAS_IOPORT as dependency for > those drivers using them. In the bochs driver there is optional MMIO > support detected at runtime, warn if this isn't taken when > HAS_IOPORT is not defined. Not that I care a whole lot,...
2010 Oct 04
8
Can I "upgrade" a striped pool of vdevs to mirrored vdevs?
Hi, once I created a zpool of single vdevs not using mirroring of any kind. Now I wonder if it''s possible to add vdevs and mirror the currently existing ones. Thanks, budy -- This message posted from opensolaris.org
2012 Aug 29
0
[PATCH V2] x86/i8259: Handle bogus spurious interrupts more quietly
...nsigned long flags; + bool_t real_irq = 1; /* Assume real unless spurious */ + bool_t need_eoi = i8259A_irq_type.ack != disable_8259A_irq; spin_lock_irqsave(&i8259A_lock, flags); /* @@ -270,15 +275,19 @@ static void _mask_and_ack_8259A_irq(unsi if (irq & 8) { inb(0xA1); /* DUMMY - (do we need this?) */ outb(cached_A1,0xA1); - outb(0x60 + (irq & 7), 0xA0);/* ''Specific EOI'' to slave */ - outb(0x62,0x20); /* ''Specific EOI'' to master-IRQ2 */ + if ( need_eoi ) + { +...
2018 Aug 26
2
Mail has quit working
...ins.com>, orig_to=<root>, relay=none, delay=0.58, delays=0.58/0/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused) > > Really appreciate everyone's help and patience! That part of the log just indicates that your service which is called inb port 10024 isn't running. In your setup that is likely the amavisd-new filter service. Make sure it runs or take it out of your Postfix configuration. Alexander
2013 Jul 12
0
[PATCH 001/001] core/serial: Add support for serial output functions.
..._CTRL_REG); + + /* Enable FIFO, clear them, with 14-byte threshold */ + outb(0xC7, com_port + COM_FIFO_CTRL_REG); + + /* IRQs enabled, RTS/DSR set */ + outb(0x0B, com_port + COM_MODEM_CTRL_REG); + + /* COM_LINE_STATUS_REG returns 0xFF if serial port doesn't exist. */ + return (inb(COM_LINE_STATUS_REG) == 0xFF); +} + +/* Write one byte to the serial line */ +static void serial_putc(uint8_t byte) +{ + int i; + + /* Wait for transmitter to be ready */ + for (i = 0; i < 128; i++) { + if (inb(COM1_PORT + COM_LINE_STATUS_REG) & COM_LINE_STATUS_RDY) + brea...
2016 Feb 24
2
iconv to UTF-16 encoding produces error due to embedded nulls (write.table with fileEncoding param)
...-369,7 +369,7 @@ > /* is this safe? */ > warning(_("invalid char string in output conversion")); > *ob = '\0'; > - con->write(outbuf, 1, strlen(outbuf), con); > + con->write(outbuf, 1, ob - outbuf, con); > } while(again && inb > 0); /* it seems some iconv signal -1 on > zero-length input */ > } else > > >> >> But just looking a bit at such a file() object with writeLines() >> seems slightly revealing, as e.g., 'eol' does not seem to >> "work" fo...
2013 Jul 29
1
Joystick axis mapping issue (wine/linux)
Good day to you wine users I've following problem, I've a cheap joystick which is recognized as DragonRise Inc. - however many of them are I guess. It's some china stuff which is each time labeled different but almost always the same device (or so I've heard). Everything works great except the joystick is recognized as being 7 axis one - I really dont know why it does this. It
2016 Feb 23
4
iconv to UTF-16 encoding produces error due to embedded nulls (write.table with fileEncoding param)
>>>>> nospam at altfeld-im de <nospam at altfeld-im.de> >>>>> on Mon, 22 Feb 2016 18:45:59 +0100 writes: > Dear R developers > I think I have found a bug that can be reproduced with two lines of code > and I am very thankful to get your first assessment or feed-back on my > report. > If this is the wrong mailing list or I
2016 Feb 25
2
iconv to UTF-16 encoding produces error due to embedded nulls (write.table with fileEncoding param)
...; @@ -369,7 +369,7 @@ > /* is this safe? */ > warning(_("invalid char string in output conversion")); > *ob = '\0'; > - con->write(outbuf, 1, strlen(outbuf), con); > + con->write(outbuf, 1, ob - outbuf, con); > } while(again && inb > 0); /* it seems some iconv signal -1 on > zero-length input */ > } else > > >> >> But just looking a bit at such a file() object with writeLines() >> seems slightly revealing, as e.g., 'eol' does not seem to >> "work" fo...
2013 Jul 12
2
[PATCH 001/001] core/serial: Add support for serial output functions.
..._CTRL_REG); + + /* Enable FIFO, clear them, with 14-byte threshold */ + outb(0xC7, com_port + COM_FIFO_CTRL_REG); + + /* IRQs enabled, RTS/DSR set */ + outb(0x0B, com_port + COM_MODEM_CTRL_REG); + + /* COM_LINE_STATUS_REG returns 0xFF if serial port doesn't exist. */ + return (inb(COM_LINE_STATUS_REG) == 0xFF); +} + +/* Write one byte to the serial line */ +static void serial_putc(uint8_t byte) +{ + int i; + + /* Wait for transmitter to be ready */ + for (i = 0; i < 128; i++) { + if (inb(COM1_PORT + COM_LINE_STATUS_REG) & COM_LINE_STATUS_RDY) + break; + d...